您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Automatically answers Swagbucks surveys with random choices and clicks "Next" when enabled.
// ==UserScript== // @name SBAuto for Swagbucks (May 2025 Update) // @namespace http://tampermonkey.net/ // @version 2.4 // @description Automatically answers Swagbucks surveys with random choices and clicks "Next" when enabled. // @author Thaswasupbreh // @match *://www.swagbucks.com/surveys/* // @grant none // ==/UserScript== (function() { 'use strict'; const interval = 1000; function getChoices() { return Array.from(document.querySelectorAll(".choice-option.random-choice")); } function clickRandomChoice() { const choices = getChoices(); if (choices.length === 0) return; const randomIndex = Math.floor(Math.random() * choices.length); const choice = choices[randomIndex]; if (choice) { choice.scrollIntoView({ behavior: "smooth", block: "center" }); choice.click(); } } function clickNextIfEnabled() { const nextButton = document.querySelector("button.next"); if (nextButton && !nextButton.disabled) { nextButton.scrollIntoView({ behavior: "smooth", block: "center" }); nextButton.click(); } } function autoAnswer() { try { clickRandomChoice(); setTimeout(clickNextIfEnabled, 500); } catch (err) { console.error("SBAuto error:", err); } } window.addEventListener('load', () => { setInterval(autoAnswer, interval); }); })();