Debloat Trakt

Removes Ads and banners

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Debloat Trakt
// @namespace    https://greatest.deepsurf.us/en/users/1169041-jothi-prasath
// @version      1.1
// @description  Removes Ads and banners
// @author       Jothi Prasath
// @homepage     https://github.com/jothi-prasath/userscripts
// @supportURL   https://github.com/jothi-prasath/userscripts/issues/new
// @match        https://trakt.tv/*
// @grant        none
// @license      MIT
// ==/UserScript==


(function() {
    'use strict';
    // List of div IDs to remove
    const divIdsToRemove = ['af1a979-be54078-wrapper'];

    divIdsToRemove.forEach((divId) => {
      while (document.getElementById(divId)){
        const divToRemove = document.getElementById(divId);
        if (divToRemove) {
            divToRemove.parentNode.removeChild(divToRemove);
        }
      }
    });
})();