Greasy Fork 还支持 简体中文。

Youtube Annotation Destroyer

If you want those damn annotations to go away at the start of every video, this is the right script for you!

  1. // ==UserScript==
  2. // @name Youtube Annotation Destroyer
  3. // @namespace http://userscripts.org/users/zackton
  4. // @description If you want those damn annotations to go away at the start of every video, this is the right script for you!
  5. // @grant GM_log
  6. // @include http://www.youtube.com/watch*
  7. // @include https://www.youtube.com/watch*
  8. // @include http://www.youtube.com/user/*
  9. // @include https://www.youtube.com/user/*
  10. // @version 1.4
  11. // ==/UserScript==
  12.  
  13. Element.prototype.remove = function() {
  14. this.parentElement.removeChild(this);
  15. };
  16. NodeList.prototype.remove = HTMLCollection.prototype.remove = function() {
  17. for(var i = 0, len = this.length; i < len; i++) {
  18. if(this[i] && this[i].parentElement) {
  19. this[i].parentElement.removeChild(this[i]);
  20. }
  21. }
  22. };
  23.  
  24. document.getElementsByClassName('ytp-player-content ytp-iv-player-content').remove();
  25. document.getElementsByClassName('video-annotations iv-module')[0].style.display = "none";