This is my first time posting to this forum. I hope this is the correct place for this.
I have created an extension for Google chrome (my first chrome extension!) that embeds WSGF rating medals into a games steam store page. I buy most of my games on steam and I found it time consuming to be constantly looking up games on WSGF to see if they had good multi monitor/wide screen support.
The extension injects a content script into the steam store page that pulls the name of the game and builds a URL to its page on WSGF (e.g. http://www.wsgf.org/df/borderlands-2/en/). This URL is then used in a YQL query to pull back the two rating medal images. These are then inserted into the steam store page.
Since technically this is a form of screen scraping, I wanted to post it here first to make sure that this was OK with the Admins. If Admins approve, this is something i would (eventually) like to publish in the chrome app store (free of course). In addition, I felt that, many people could help me test this thing. For the most part it works. Dirt 2, Dead Space 1 & 2, Skyrim are all examples of ones that work. The naming conventions for games on this site is somewhat inconsistent with steams naming convention. I tried to fix most of these with regular expressions, but there are still some that don't work.
e.g.
Steam name: Amnesia: The Dark Descent
WSGF url: http://www.wsgf.org/dr/Amnesia-dark-descent/
> This works.
Steam name: The Witcher 2: Assassins of Kings Enhanced Edition
WSGF url: http://www.wsgf.org/dr/witcher-2-assassins-kings
> Doesn't work. Too difficult to fix with regex.
Steam name: The Elder Scrolls IV: Oblivion® Game of the Year Edition Deluxe
WSGF url: http://www.wsgf.org/dr/elder-scrolls-iv-oblivion
> Doesn't work. Too difficult to fix with regex.
I have a few ideas on how to handle these weird conner cases but I haven't implemented it yet.
Currently, If my script can't find the game it prints a "not found" message where the medals would normally appear. I have also added a search bar that will open a WSGF search for that game in a new tab. This way if something doesn't show up that you know is on WSGF, you can easily search it.
Anyways, if do try this, could you report back any games that you know are on WSGF whose medals don't load on steam. I will try to fix as many as I can. Please report back bugs/weirdness that occur. Also, ideas/improvements are welcome. If anyone is interested in the source code please let me know.
I have uploaded the crx to my google drive: https://docs.google.com/open?id=0B_ZUZJqAIdYDcEhPdG4wZzZoaTQ
To install:
-Download wsgf_medals_for_steam_pkg.crx from download link above.
-Open url: chrome://chrome/extensions/ (or go to Settings > Extensions)
-Drag and drop the wsgf_medals_for_steam_pkg.crx into the extensions page ("Drop to install" message should appear)
-Go test this thing out on your favorite steam game's store page.
Thanks!
Screenshot:







