[UserScript] Peer review semi automatic bot

pepsicolaa
by pepsicolaa · 2 posts
2 years ago in Javascript
Posted 2 years ago · Author
Hello.

I just wrote a small imvu script making the peer review less painful.
Imvu started to remove access to peer review to account that were validating any items without checking, so that bot is not entirely autmatic, so you should pay attention and review the product before validating it. That bot automatically click on the "view in 3D" button and check the "No issues - product meets IMVU Virtual Goods Policy" by default.
Also, i noticed that for most items, we are forced to wait 25 seconds before sending the review result, which is bad considering that for most items, only around 5 seconds is really needed to review item, and if you do something else aside, you quickly forget about reviewing the products and you end up losing a lot of time, hence i also added a case "Submit when ready" in the bottom of the blue rectangle in peer review, if you check this case, it means that you reviewed the product before the time, and it will click on the button automatically after 25-35 seconds gap ( it is randomly generated to make sure you don't send the review result after 25 seconds, but it is probably useless, was just an extra safety). So this is more something to prevent you from forgetting about peer review for items simple to review.

You still have to review the product, it is important, as i said, imvu is banning people from peer review, so check the items and give it the real rating if you don't want to lose access to peer review, this bot only make you win some time by clicking on the button, checking the "no issues case" as it is in most of the case the one to pick, but if you notice something that is not fitting, just skip the product if you don't wish to flag it and let other people do it, or review it correctly and change the checked case to the right category.

I only tested on firefox with greasemonkey, but it should work with tampermonkey too for chromium browser ( chrome, edge, brave,... )
here is the code:
Code
// ==UserScript==
// @name     peer review bot
// @version  1
// @grant    GM.setValue
// @grant       GM.getValue
// @match     *://*.imvu.com/peer_review/*
// ==/UserScript==


function rand(min, max) {
    min = Math.ceil(min);
    max = Math.floor(max);
    return Math.floor(Math.random() * (max - min + 1)) + min;
}


function execute() {
    if (document.querySelector('#view_in_3d')) {
        document.querySelector('#view_in_3d').click();
    }
    document.querySelector('#cb_no_issues').click();

    setTimeout(() => {
        if (document.querySelector('#cbSubmit').checked) {
            document.querySelector('#btn_submit_vote').click();
        }
    }, rand(25000, 35000))
}


const createInput = (id) => {
    const x = document.createElement('input');
    x.setAttribute('type', 'checkbox');
    x.setAttribute('name', id);
    x.setAttribute('id', id);
    return x;
}

const createLabel = (elFor) => {
    const x = document.createElement('label');
    x.setAttribute('for', elFor);
    x.innerText = 'Submit when ready';
    return x;
}

const checkbox = createInput('cbSubmit');
const label = createLabel('cbSubmit');

document.querySelector('#btn_submit_vote').after(label);
document.querySelector('#btn_submit_vote').after(checkbox);

execute();


This bot is safe to use, if you get banned from peer review it means you rated products wrongly, hence i'm not responsable.

Installation step:
1. Install greasemonkey on firefox ( Or Tampermonkey on chrome/edge/brave )
2. Click on the Greasemonkey/tampermonkey icon on the browser topbar to open the menu
3. Select "New user script"
4. Copy/Paste the code posted above in the newly opened window
5. Save the script
6. Navigate to peer review (https://www.imvu.com/peer_review/)
7. Enjoy

If you have any problems or any suggestions to improve it, I'm open
Posted 2 years ago
Vary usefull Thank you so much for this tool ")

-- Sun Jul 04, 2021 8:39 pm --

If only there were a script to finish surveys faster :(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts