[Js snippet] Auto grant badge (easy)

pepsicolaa
by pepsicolaa · 5 posts
3 years ago in Javascript
Posted 3 years ago · Author
Just go to this url: ( no matter the profile you go actually, it will works, it's just to ensure that the CORS is ok and that the imvu sauce global variable is stored in the browser)

https://avatars.imvu.com/3Zvip

Then open the browser console(ctrl+shift+i on firefox, probably the same on chrome) and copy paste this snippet

Code

(async () => {
    const referrer = '3Zvip';

    const getCid = (name) => {
        return fetch(`https://api.imvu.com/user?username=${name}`, { "credentials": "include" })
            .then(response => response.json())
            .then(data => {
                return Object.entries(data.denormalized)[0][1].data.legacy_cid
            });
    }

    const cid = await getCid(referrer);

    const func = async (i) => {
        await fetch("https://avatars.imvu.com/api/service/grant_badge.php", {
            "credentials": "include",
            "headers": {
                "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0",
                "Accept": "*/*",
                "Accept-Language": "en-US,en;q=0.5",
                "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
                "X-Requested-With": "XMLHttpRequest"
            },
            "referrer": `https://avatars.imvu.com/${referrer}`,
            "body": `sauce=${IMVU.sauce}&badgeid=badge-${cid}-${i}`,
            "method": "POST",
            "mode": "cors"
        })
    }

    const recursive = async (i) => {
        setTimeout(async () => {
            await func(i);
            recursive(i + 1)
        }, 2500);
    }

    recursive(1);

})();


press enter, wait and enjoy, you need to be logged in for it to work.

It will grant you any badge of this creator, greanting one badge every 2.5seconds ( to avoid imvu blacklisting you from making request )
If you want to get the badge of another creator just replace the line
const referrer = '3Zvip'

to
const referrer = 'theAvatarNameOfYourChoice'


You don't need to go on that person's profile, staying on the same profile will work too, enjoy

Of course i'm not responsible if imvu take any action toward you after this, since i know they are doing random stuff with their rules, do it at your own risk, even tho it should be safe, i'm not responsible if you get banned.
Posted 3 years ago
Your right to keep your eyes open to the idea of getting your account banned right now if your not one that knows how to protect yourself online with extra security precautions. IMVU is banning accounts like flys on horse shit right now and has been for a yr now and only getting worse. So yes please be careful if you use your main account because you will get busted just a matter of time and if you will be lucky enough to get your account back. There are imvu free badge sites for free badges and you dont need to go to their home page to get them. If you need help just send me a message and I'll help you with steps how to get them.
Posted 3 years ago
I was using DM script while ago but it wasn't working for some avatar homepages. Still good to have some alternatives.
Posted 3 years ago
@pepsicolaa


Nice to see someone using promises. I only recently started learning to use them in JavaScript a month ago.

@Reemy

This script should be 100% safe to use. You're not violating any of IMVU's rule by using it. You're getting data that is publicly available and using it to grant yourself badges that the user has made publicly available.

Basically, this script is doing the same thing clicking the buttons on the person's homepage would do.


@KokoNyny

Which script and which homepages? Maybe I can update it.
Posted 3 years ago · Author
Promises is a part of Javascript that a lot of people struggles to understand at first. I'm a web developper so it is quite easy to me. I might have other old snippets/scripts that could be useful for members, i might post some more when i'll get some free time.

For the "safety disclaimer" i mentionned it because in the imvu terms of use, it is clearly stated "(...)You will not access the Platform through automated means of any nature(...)", however as you said, this script only send imvu the normally formated request of granting a badge, exactly the same request is being sent when they click on the badge manually, So unless they get crazy and start analyzing all the datas coming from a particular account until they suspect it being an automated task, which is actually very unlikely they do, it is safe. I just added it in my post because of that phrase in their term of use, i wanted to stay clear for everyone. If it can make people feel better, i already used other scripts that was accessing imvu API every few seconds throughout the day for a long periods ( like, 24/7 during months ) and it never banned the used account for that reason so it shouldn't have any risk.

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