您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the 'disable Adblock' nag screen.
当前为
// ==UserScript== // @name SC2Casts.com Adblock Nag Screen Remover // @namespace http://lazy.artifact // @version 0.24 // @description Removes the 'disable Adblock' nag screen. // @author Lazy Artifact // @match http://sc2casts.com/* // @grant none // ==/UserScript== (function() { //hi santah!! :-) var showSignUpElements = document.querySelectorAll('[onclick="showSignUp()"]'), playAllElement, char, i, j, youTube = { url: 'https://www.youtube.com/watch_videos?video_ids=', videoIds: [], videoElements: document.querySelectorAll('iframe#ytplayer') }; //remove nag screen window.showPopup = null; if(youTube.videoElements.length < 1) { return; } //get YouTube video Ids for(i = 0; i < youTube.videoElements.length; i++) { youTube.videoIds[i] = ''; for(j = youTube.videoElements[i].src.lastIndexOf('/') + 1, char = youTube.videoElements[i].src[j]; char !== '?'; j++, char = youTube.videoElements[i].src[j]) { youTube.videoIds[i] += char; } } //remove signup popup listener and add a new play all click event for(i = 0; i < showSignUpElements.length; i++) { if(showSignUpElements[i].textContent && showSignUpElements[i].textContent === 'Play all') { playAllElement = showSignUpElements[i]; playAllElement.removeAttribute('onclick'); break; } } youTube.url += youTube.videoIds.join(','); playAllElement.addEventListener('click', function() { window.open(youTube.url, '_blank'); }, false); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址