Let's remove youtube title

I hate title AT FULLSCREEN. F*** THAT

  1. // ==UserScript==
  2. // @name Let's remove youtube title
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description I hate title AT FULLSCREEN. F*** THAT
  6. // @author Alexandria96
  7. // @match *.youtube.com/*
  8. // @require http://code.jquery.com/jquery-3.3.1.min.js
  9. // @icon https://stickershop.line-scdn.net/stickershop/v1/product/1100/LINEStorePC/main.png;compress=true
  10. // @grant none
  11. // @noframes
  12. // @run-at document-body
  13. // ==/UserScript==
  14.  
  15. 'use strict'
  16.  
  17. let init = () => {
  18. let targets = [];
  19. targets = targets.concat(Array.from(document.getElementsByClassName('ytp-gradient-top')));
  20. targets = targets.concat(Array.from(document.getElementsByClassName('ytp-gradient-bottom')));
  21. targets = targets.concat(Array.from(document.getElementsByClassName('ytp-chrome-top')));
  22.  
  23. for (let i = targets.length - 1; i >= 0; i--) {
  24. let elem = targets[i];
  25. if (elem) {
  26. elem.parentNode.removeChild(elem);
  27. }
  28. }
  29. }
  30.  
  31. let href = '';
  32. setInterval(() => {
  33. if (location.href !== href) {
  34. href = location.href;
  35. let pageLoadingInterval = setInterval(() => {
  36. if (document.readyState === 'complete') {
  37. clearInterval(pageLoadingInterval);
  38. init();
  39. }
  40. }, 1000);
  41. }
  42. }, 1000);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址