Youtube AdBlock

Change the title and icon of *specific* websites

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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

        })();