Youtube AdBlock

Change the title and icon of *specific* websites

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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');

        })();