Youtube Dislike String Remover

Hide the useless "dislike" string (not the button) to save some space

  1. // ==UserScript==
  2. // @name Youtube Dislike String Remover
  3. // @namespace https://github.com/Amadeus-AI
  4. // @version 1.0
  5. // @description Hide the useless "dislike" string (not the button) to save some space
  6. // @icon https://www.youtube.com/s/desktop/3748dff5/img/favicon_48.png
  7. // @author AmadeusAI
  8. // @match *://www.youtube.com/*
  9. // @license MIT
  10. // @run-at document-start
  11. // ==/UserScript==
  12. /*jshint esversion: 6 */
  13.  
  14.  
  15. let styleNode = document.createElement("style");
  16. styleNode.appendChild
  17. (
  18. document.createTextNode
  19. (
  20. `ytd-toggle-button-renderer.style-text.force-icon-button.ytd-menu-renderer.style-scope:nth-of-type(2) yt-formatted-string.style-text.ytd-toggle-button-renderer.style-scope { display: none }`
  21. )
  22. );
  23. (document.querySelector("head") || document.documentElement).appendChild(styleNode);