Alright so here's an update.
There are 3 things I need to overcome to make this work again:
1) XSS (Cross-Site Scripting) prevention (
Sucessfully solved)
Most sites these days use XSS prevention to prevent hackers from stealing your info and doing other nefarious stuff.
2) Cross domain permissions (
Sucessfully solved)
IMVU does not let you run their code to grant badges on any other domain other then
avatars.imvu.com. But in order to get the badge info automatically with code, I need to run the code while on
imvu-customer-sandbox.com.
3) Data persistence
Because of the cross domain issue above, I need to be able to store data somewhere where it will persist through page reloads and be usable across domains.
As you can see above I've successfully solved 2 of these issues. The third issue is proving tricky however because the only place I know of that I could store the data is not usable cross domain.
So, to solve this third issue I've decided to turn this into a web tool rather than a bookmarklet. Not only will the web tool be less confusing to use but it should also give me a place I can store the data I need between
avatars.imvu.com and
imvu-customer-sandbox.com: our site.
The web tool is about 40% complete at this point. I've ran into a few issues I need to solve but I am working on it.
EDIT:
The badge script works as long as you have the badge ideas already:
Unfortunately I need to be able to get them automatically