SBAuto Randomized (2025 Update)

Automatically answers Swagbucks surveys with randomized dropdown options and submits them until no questions remain. Now more compatible with current site structure (2025). 🌀

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         SBAuto Randomized (2025 Update)
// @namespace    http://tampermonkey.net/
// @version      2.3
// @description  Automatically answers Swagbucks surveys with randomized dropdown options and submits them until no questions remain. Now more compatible with current site structure (2025). 🌀
// @author       Thaswasupbreh
// @match        *://www.swagbucks.com/surveys*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const interval = 1000; // Time interval in milliseconds

    function clickRandomDropdownOption() {
        // Find a visible dropdown
        const dropdown = document.querySelector("div[class*='DropdownContainer'], div[class*='questionDropdown']");
        if (dropdown) dropdown.click();

        // Find options inside an open dropdown
        const options = document.querySelectorAll("div[class*='DropdownOptions'] span, div[class*='questionDropdownOptions'] span");
        if (options.length > 0) {
            const randomIndex = Math.floor(Math.random() * options.length);
            options[randomIndex].click();
        }
    }

    function clickSubmitButton() {
        // Looks for button that continues to next question
        const button = document.querySelector("button[class*='CTA'], button[class*='continue'], button[class*='Next']");
        if (button) button.click();
    }

    function autoAnswer() {
        try {
            clickRandomDropdownOption();
            clickSubmitButton();
        } catch (e) {
            console.error("SBAuto Error:", e);
        }
    }

    window.addEventListener('load', () => {
        setInterval(autoAnswer, interval);
    });
})();