welcome to track7!

please log in or register:

track7

greasemonkey scripts for spore.com tags:  webdev, javascript, gaming

misterhaan
radar
subject:  greasemonkey scripts for spore.com
posted:  12:22:17 pm, jun 01, 2009

i play spore (check out my stuff on spore.com), and i’m disappointed with the lack of features on the spore.com website.  i find myself looking at an xml file on spore.com to find out how many people have added me as a buddy and going to qualityspore.com to see the rating numbers of my creations.  also it’s kind of stupid that it says something is a vehicle for all combinations of land / sea / air and military / economic / religious / colony, and building for city hall / house / factory / entertainment.

i’m getting better and better with javascript, and firefox has the greasemonkey extension which lets you run custom javascript for any pages you want.  so i’ve started working on a script to add some of the missing information to pages on spore.com.

currently i have it inserting a link on player profile pages that links to their profile on qualityspore.com, and i’m looking to add the number of subscribers next.  i’ll probably end up putting it on userscripts.org at some point since i suspect most spore users would have trouble manually installing a greasemonkey script.

misterhaan
radar
subject:  re: greasemonkey scripts for spore.com
posted:  3:39:09 pm, jun 01, 2009

i now have it showing the number of subscribers, but for people with a lot of subscribers it takes a long time (like a couple minutes) to get the count.  it doesn't seem to matter if i ask for the first 100 results or the first 100000 results either, so i’ve asked in the spore developer forum if someone can suggest a better way.  for now i can see subscriber counts for everyone, even if i have to wait a few minutes for the more popular ones.  if i don’t get a better way of getting the count, i’ll probably put in a loading message.  right now i wait until i have the info before changing the page at all.

misterhaan
radar
subject:  re: greasemonkey scripts for spore.com
posted:  11:29:58 am, jun 04, 2009

i haven’t had a response to my question on the spore developer forum other than someone suggesting that this information should be in the profile info feed, so i went ahead and made it say Subscribers: (counting...) until it actually gets the number.  i also added the number of achievements the user has, which should be faster since there are only 102 possible achievements.  i have it checking for the first 1000 achievements anyway since i think the next expansion will add more.  i’ve made it available in my scripts section (it’s called MoreSpore) and also put it on userscripts.org.  i’ll update both locations whenever i add a new feature.

misterhaan
radar
subject:  re: greasemonkey scripts for spore.com
posted:  5:34:45 am, jun 10, 2009

they unexpectedly made major changes to spore.com (especially user profiles), so i had to modify the script.  there wasn’t a spot for the qualityspore link as obvious as there was before, so i put it between the add buddy button and the user stats.  thankfully, they seem to have put id attributes on almost everything, which actually makes it easier to insert the information i’m inserting.  it just would have been nice if they could have let us know it was coming, and maybe given access to a preview for those interested.  though with how it’s currently working, it kind of feels like a preview.

anonymous
subject:  re: greasemonkey scripts for spore.com
posted:  10:09:24 am, nov 04, 2016

Heh.

add a reply

posting asanonymous (log in or register)