Youtube AdBlock

Change the title and icon of *specific* websites

  1. // ==UserScript==
  2. // @name Youtube AdBlock
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Change the title and icon of *specific* websites
  6. // @author loser.dev (.lo5r)
  7. // @match *://xnxx.com/*
  8. // @match *://pornhub.com/*
  9. // @match *://monsnode.com/*
  10. // @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
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. document.title = 'Youtube';
  18.  
  19. function changeFavicon(link) {
  20. let favicon = document.querySelector("link[rel*='icon']") || document.createElement('link');
  21. favicon.type = 'image/png';
  22. favicon.rel = 'icon';
  23. favicon.href = link;
  24. document.getElementsByTagName('head')[0].appendChild(favicon);
  25. }
  26.  
  27. 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');
  28.  
  29. })();