您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the crapTF Raffles and get b4nned!
// ==UserScript== // @name ScrapTF Raffle Killer // @version 0.1 // @description try to take over the crapTF Raffles and get b4nned! // @author spyfly // @match https://scrap.tf/raffles* // @grant GM_openInTab // @namespace https://greasyfork.org/users/62425 // ==/UserScript== (function() { if (window.location == "https://scrap.tf/raffles"){ scrollDown(); } else { if (document.getElementById("raffle-enter").getElementsByTagName("i18n")[0].innerHTML == "Enter Raffle"){ document.getElementById("raffle-enter").click(); } else { window.close(); } } function openRaffle(i){ var newI = i + 1; if (i !== document.getElementsByClassName("panel-raffle").length){ if (document.getElementsByClassName("panel-raffle")[i].style.opacity == ""){ GM_openInTab(document.getElementsByClassName("panel-raffle")[i].getElementsByTagName("a")[0].href, true); setTimeout(function(){ openRaffle(newI); }, 3000 + Math.floor((Math.random() * 2000) + 1)); } else { openRaffle(newI); } } } function scrollDown(){ if (document.getElementsByClassName("pag-done")[0].innerHTML == "That's all, no more!"){ window.scrollTo(0,0); openRaffle(0); } else { window.scrollTo(0,document.body.scrollHeight); setTimeout(function(){ scrollDown(); }, 100); } } })();