您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Blocks the Twitch video player and the side ad from loading.
// ==UserScript== // @name Alcasthq twitch and ad video remover // @namespace http://tampermonkey.net/ // @version 0.1 // @description Blocks the Twitch video player and the side ad from loading. // @author You // @match https://alcasthq.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=alcasthq.com // @grant none // ==/UserScript== (function() { 'use strict'; window.addEventListener('load', function() { let log = function(msg) { console.log('[AlCastHq Ad Remover]: ' + msg) } log('loaded') const elementNames = ['custom_html-15', 'nn_player'] elementNames.forEach(function (eleName) { log('Searching for element "' + eleName + '"') const element = document.getElementById(eleName) if (element) { log('found! Removing') element.remove() } else { log('...couldn\'t find') } }) }, false); })();