您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
igg-games ad skipper
// ==UserScript== // @name igg-games.com ad skip // @namespace https://igg-games.com/ // @version 0.1 // @description igg-games ad skipper // @author _Chelos_ // @match bluemediafiles.com/creatinglinks* // @match megaup.net/*/* // @grant none // ==/UserScript== switch(window.location.host){ case "bluemediafiles.com":{ window.location = "http"+getParameterByName("xurl"); break; } case "megaup.net":{ let checktick = setInterval(()=>{ let el = document.querySelector("a.btn") if(el){ clearInterval(checktick); window.open( el.href, '_blank' // <- This is what makes it open in a new window. ); window.open('','_self').close() } },100) break; } } function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, '\\$&'); var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, ' ')); }