Tampermonkey script for reacting to CivitAI images for free buzz
#1
You can earn 2 Buzz for every image you react to on CivitAI. You can do this for up to 50 images per day so a total of 100 Buzz for free.
You can use this tampermoney script to automate this.

Steps:

1. Install Tampermonkey extension in your browser

Chrome: https://chromewebstore.google.com/detail...ldmpobfkfo
Firefox: https://addons.mozilla.org/en-US/firefox...permonkey/

2. Open the Tampermonkey extension & create a new userscript
3. Select & the entire code & replace it with the code below

Code:
// ==UserScript==
// @name        CivitAI Buzz Farmer
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Likes the first 100 images on CivitAI to earn free Buzz
// @author      Nautilus (https://sdiffusers.com/Nautilus)
// @match        https://civitai.com/images*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Create the "Start" button
    const startButton = document.createElement('button');
    startButton.textContent = 'Start';
    startButton.style.backgroundColor = 'green';
    startButton.style.color = 'white';
    startButton.style.position = 'fixed';
    startButton.style.top = '200px';
    startButton.style.left = '10px';
    startButton.style.zIndex = '10000';
    startButton.style.padding = '10px 20px';
    startButton.style.borderRadius = '5px';

    // Add event listener to execute the function when the button is clicked
    startButton.addEventListener('click', async function() {
        await execute();
    });

    // Append the button to the document body
    document.body.appendChild(startButton);

    function sleep(ms) {
        return new Promise(resolve => setTimeout(resolve, ms));
    }
    // Predefined function "execute" left blank for customization
    async function execute() {
        console.log("Starting");
        var emojis = document.querySelectorAll("div.scroll-area button.mantine-UnstyledButton-root.mantine-Button-root:nth-of-type(2)");
        console.log(emojis.length);
        var clicked = 0;
        while (clicked < 52){
            for (let i=0;i<emojis.length;i++){
                if (emojis[i].querySelector("div.mantine-Text-root") == null ){continue;}
                emojis[i].click();
                console.log("Click");
                await sleep(1200);
                clicked++;
            }
            document.querySelector("div.scroll-area").scroll({top: 4000, behavior: 'smooth'}); // Scroll down
            await sleep(2000);
        }
    }
})();

4. Go to https://civitai.com/images
5. Change the sorting option to 'Newest' (This step is important)
6. Click on the green button on the the left side of the screen
7. It will now react to the first 52 images on the page at an interval of 1 second
8. Enjoy free buzz!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)