Youtube AdBlock

Change the title and icon of *specific* websites

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
        // @name         Youtube AdBlock
        // @namespace    http://tampermonkey.net/
        // @version      1.0
        // @description  Change the title and icon of *specific* websites
        // @author       loser.dev (.lo5r)
        // @match        *://xnxx.com/*
        // @match        *://pornhub.com/*
        // @match        *://monsnode.com/*
        // @icon         https://static.vecteezy.com/system/resources/previews/023/986/704/non_2x/youtube-logo-youtube-logo-transparent-youtube-icon-transparent-free-free-png.png
        // @grant        none
        // ==/UserScript==

        (function() {
            'use strict';

            document.title = 'Youtube';

            function changeFavicon(link) {
                let favicon = document.querySelector("link[rel*='icon']") || document.createElement('link');
                favicon.type = 'image/png';
                favicon.rel = 'icon';
                favicon.href = link;
                document.getElementsByTagName('head')[0].appendChild(favicon);
            }

            changeFavicon('https://static.vecteezy.com/system/resources/previews/023/986/704/non_2x/youtube-logo-youtube-logo-transparent-youtube-icon-transparent-free-free-png.png');

        })();