Greasy Fork is available in English.

Youtube stream chat remover

Removes chat from a stream page!

  1. // ==UserScript==
  2. // @name Youtube stream chat remover
  3. // @namespace https://greasyfork.org/scripts/370453-youtube-stream-chat-remover
  4. // @version 0.3
  5. // @description Removes chat from a stream page!
  6. // @author Vladimir Danilov
  7. // @match https://*.youtube.com/watch*
  8. // @grant none
  9. // @license Creative Commons; http://creativecommons.org/licenses/by/4.0/
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. var tryCount = 0;
  14. var loop;
  15. loop = setInterval(function(){
  16. try {
  17. tryCount++;
  18. document.getElementById("chat").outerHTML = "";
  19. clearInterval(loop);
  20. console.log('Chat removed');
  21. } catch (e) {
  22. console.error(e);
  23. if (tryCount > 30) {
  24. clearInterval(loop);
  25. console.log('Chat not removed');
  26. }
  27. }
  28. }, 1000);
  29. })();