您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes chat from a stream page!
- // ==UserScript==
- // @name Youtube stream chat remover
- // @namespace https://greasyfork.org/scripts/370453-youtube-stream-chat-remover
- // @version 0.3
- // @description Removes chat from a stream page!
- // @author Vladimir Danilov
- // @match https://*.youtube.com/watch*
- // @grant none
- // @license Creative Commons; http://creativecommons.org/licenses/by/4.0/
- // ==/UserScript==
- (function() {
- var tryCount = 0;
- var loop;
- loop = setInterval(function(){
- try {
- tryCount++;
- document.getElementById("chat").outerHTML = "";
- clearInterval(loop);
- console.log('Chat removed');
- } catch (e) {
- console.error(e);
- if (tryCount > 30) {
- clearInterval(loop);
- console.log('Chat not removed');
- }
- }
- }, 1000);
- })();