YouTube - Remove Explore button

Hides the Explore button from YouTube

  1. // ==UserScript==
  2. // @name YouTube - Remove Explore button
  3. // @description Hides the Explore button from YouTube
  4. // @version 3
  5. // @grant none
  6. // @include *://youtube.com/*
  7. // @include *://*.youtube.com/*
  8. // @author @sverigevader
  9. // @namespace https://gf.qytechs.cn/users/692021
  10. // ==/UserScript==
  11.  
  12. window.setTimeout(
  13. function check() {
  14. if (document.querySelector('[title="Explore"]')) {
  15. explore();
  16. }
  17. if (document.querySelector('[title="Shorts"]')) {
  18. shorts();
  19. }
  20. window.setTimeout(check, 250);
  21. }, 250
  22. );
  23.  
  24. function explore() {
  25. var node = document.querySelector('[title="Explore"]');
  26. node.style.display = "none";
  27. }
  28.  
  29. function shorts() {
  30. var node = document.querySelector('[title="Shorts"]');
  31. node.style.display = "none";
  32. }

QingJ © 2025

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