Hide YouTube Dislike

Hides the YouTube dislike button.

  1. // ==UserScript==
  2. // @name Hide YouTube Dislike
  3. // @icon https://www.youtube.com/img/favicon_48.png
  4. // @author ElectroKnight22
  5. // @namespace electroknight22_namespace
  6. // @version 0.0.1
  7. // @match *://www.youtube.com/*
  8. // @grant GM.addStyle
  9. // @noframes
  10. // @run-at document-start
  11. // @license MIT
  12. // @description Hides the YouTube dislike button.
  13. // ==/UserScript==
  14.  
  15. /*jshint esversion: 11 */
  16.  
  17. (function () {
  18. "use strict";
  19.  
  20. GM.addStyle(`
  21. dislike-button-view-model {
  22. display: none !important;
  23. }
  24. .yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--segmented-start {
  25. border-radius: 18px !important;
  26. }
  27. .yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--segmented-start::after {
  28. display: none !important;
  29. }
  30. `);
  31. })();

QingJ © 2025

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