Forums > MobyGames > MobyGames Opera extension
Klaster_1 (57610) on 6/14/2012 3:16 PM · edited · Permalink · Report
Hello, everyone.
Since old thread is locked, I'll start a new one. This time it's Opera speeddial extension :) Check the shots:
As you can see, extension shows your stats in tile. Number of rows depends from size, since it's impossible to fit everything into provided space. In the options (Right click\Config) you can change refresh time from 5 minutes to 1 hour.
I'd be glad to hear suggestions and bug reports, so don't hesitate to leave a response.
vedder (71144) on 6/14/2012 4:35 PM · Permalink · Report
Cool! Installed it. If I encounter any bugs I'll let you know.
As for suggestions, I don't know what kind of functionality is possible on the speed dial, but perhaps the lines about messages and notifications could link directly to the relevant URLs?
Patrick Bregger (303297) on 6/14/2012 6:33 PM · Permalink · Report
Great, thanks.
chirinea (47507) on 6/14/2012 11:24 PM · Permalink · Report
Awesome as always, Klaster_1! If you would take a suggestion, make the link go to http://www.mobygames.com/user/sheet/view/approvals
Klaster_1 (57610) on 6/14/2012 11:45 PM · Permalink · Report
Not a problem, but I personally prefer it to link to the main page. You can easily edit almost anything, though. Just unpack (it's a renamed ZIP) and change this string in config.xml:
No need to even compress stuff back, just drag config.xml at Opera window and extension gets installed in developer mode.
Daniel Saner (3503) on 6/15/2012 9:02 PM · Permalink · Report
Cool, thanks! =)
At the moment I hate all browser, but Opera is the one I currently hate the least, so this will be useful.
chirinea (47507) on 8/14/2012 1:49 PM · Permalink · Report
[Q --start Klaster_1 wrote--]I'm currently making the tool for credits cloning, any wishes on this matter? [/Q --end Klaster_1 wrote--]Will it be able to clone only approved credits or will it also support submitting several platforms together?
Klaster_1 (57610) on 8/14/2012 3:03 PM · Permalink · Report
Currently, It grabs credits from steps 3 and 5 of submission process, so you will be able to process both approved and in progress entries.
The full cycle looks like that:
- Grab all the developers, roles and groups from step 3.
- Grab roles classification from step 5.
- Create new entry for another platform.
- Semi-automatically fill all the fields.
There are still numerous questions about best organization of whole process. How should data be exchanged between steps: via localStorage or copy-pasting raw JSON? If credits have slight differences, when you should add them: at step 3 as usual, by manually editing JSON or even maybe in special editor?
I still have to rewrite grabbing functionality and build some sort of control panel, because console only interface is too hardcore :)
vedder (71144) on 8/14/2012 3:14 PM · Permalink · Report
A request I would have for it is some kind of verification if the new set is identical to the one being cloned.
Regularly when entering names the system auto-corrects the name to something similar, even though an identical match is on file. Some kind of verification would prevent such errors from popping up.
Klaster_1 (57610) on 8/14/2012 3:25 PM · edited · Permalink · Report
Instead of pasting text into forms as MegamanX64 did, I chose more low level approach when hidden inputs of data are created, so you always get the same result.
Look at the part of data: it stores role classification, developer id and differentiate between persons and text entities.
{ "name": "Zlib", "clas": "20", "devs": [{ "type": "text", "name": "Copyright © 1995 - 2005" }, { "type": "person", "id": "94174", "name": "Jean-loup Gailly" }, { "type": "person", "id": "94175", "name": "Mark Adler" }] }
Klaster_1 (57610) on 8/17/2012 10:15 AM · Permalink · Report
Tested on Opera 12.01 and Mozilla Firefox 14.0.1 with Scriptish. Do expect bugs, since it's the first build which works. Install as any other user script for aforementioned browsers.
Instruction guide:
- First of all, you'll have to get data. Go to credits submission wizard of desired game, choose source platform and proceed to step 3 (Add). In the bottom right corner press "Grab developers" button, then go to step 5 (Classify) and press "Grab roles".
- Return to wizard start and change platform to the destination one.
- Proceed to step 2 (Groups). "Insert groups" button will add groups, but there might be not enough fields, so "Update" after pasting them and repeat until everything is in place.
- At step 3 (Add), press "Insert developers". That might take a while, especially on slow systems and long credits (thousands of entries). DO NOT ADD OR REMOVE ROLES, that'll mess up classification part.
- Go to step 5, "Classify roles" and "Update".
- Now you can edit anything at step 3, in case of differences between actual credits. Obviously, you'll have to deal with as usual, script won't help with that.
Have fun :)
P.S.: Anyone willing to write description or add whole Resistance 3? I've got a bunch of shots ready for submission, but writing good enough text isn't easy for me.
Klaster_1 (57610) on 8/17/2012 11:12 AM · Permalink · Report
I tried to repeat your case two times:
The first one was a royal mess - groups didn't add correctly, "Insert devs" stopped worked. The second attempt was more successful. I still had to rename some groups due to name collision with "ghost" groups. After that, everything worked as intended.
Try removing the credits ("Remove credits"), getting them again. While adding groups, check if everything went at the right place and isn't repeating.
Patrick Bregger (303297) on 8/26/2012 8:56 AM · edited · Permalink · Report
Opera 12.01, never used user scripts before. I specified a user script folder in the Opera javascript options and put your script in said folder. But I don't see a grab developer button when I am in step 3 of the credits wizard.
Patrick Bregger (303297) on 8/26/2012 9:41 AM · edited · Permalink · Report
I have a lot of error messages.
Patrick Bregger (303297) on 8/26/2012 2:27 PM · Permalink · Report
Opera/9.80 (Windows NT 6.0; U; de) Presto/2.10.289 Version/12.01 (Core 2.10.289)
"clear()" eintippen, um die Konsole zu löschen.
"// help()" für weitere Informationen eintippen.
Das verlinkte Skript wurde nicht geladen.>>>
"The linked script was not loaded." That is all it says.
Patrick Bregger (303297) on 8/26/2012 7:12 PM · Permalink · Report
Javascript is activated in the Opera settings and up-to-date. The only extension I have installed is your MobyGames extension for the speeddial.
However, I have some custom entries in urlfilter.ini (Roaming). When I remove the "exclude" entries (or the whole urlfilter.ini altogether), I get a new error message: Syntax error at line 1 while loading: unexpected character: U+0001 GIF89a?
Patrick Bregger (303297) on 8/27/2012 3:45 AM · Permalink · Report
I use Kaspersky, but disabling it was one of the first things I tried.
Patrick Bregger (303297) on 8/28/2012 5:19 PM · edited · Permalink · Report
With Firefox, it works like charm (at least with the one credits set I tried). I can't even begin to give my gratitude, you saved many hours of my life. And that is only counting the next few credits sets I have lined up.
Especially because Sciere is so keen on providing the Xbox 360 credits of all those multiplatform games where I own the PC version :) I was not very pleased when I took screenshots of the Sleeping Dogs credits (128 shots overall and 75 of them are music credits. I hate music credits.)
Patrick Bregger (303297) on 8/28/2012 6:27 PM · edited · Permalink · Report
The worst ones are the sets which only credit the songwriters as "A. Something".
Pseudo_Intellectual (66423) on 8/28/2012 6:38 PM · Permalink · Report
That's no different from most Japanese credits traditionally, is it?
Patrick Bregger (303297) on 9/2/2012 8:40 PM · Permalink · Report
Again, I want to say how awesome this mod is.
However, it would be nice if you could copy the credits from one game entry to another game entry (useful for special editions and re-releases).
chirinea (47507) on 9/2/2012 10:18 PM · Permalink · Report
[Q --start Patrick Bregger wrote--]Again, I want to say how awesome this mod is.
However, it would be nice if you could copy the credits from one game entry to another game entry (useful for special editions and re-releases). [/Q --end Patrick Bregger wrote--]I second that.
GTramp (81961) on 9/10/2012 3:22 AM · edited · Permalink · Report
Well, it does it's job at cloning credits for different platforms of a single game, but today I tried to copy credits from one game to another and it didn't work. It just says "credits not loaded"... What may be the matter? I'll try it later today on another computer though.
Namely from this game http://www.mobygames.com/game/windows/luntik-poznajot-mir to this one http://www.mobygames.com/game/windows/luntik-uchit-bukvy
Klaster_1 (57610) on 9/10/2012 4:03 AM · Permalink · Report
You have to stay in same browser window, since all the data is stored is sessionStorage.
GTramp (81961) on 9/10/2012 5:18 AM · Permalink · Report
Now there seems to be another issue - or maybe it's just me. Anyway, I've got credits in 'work in progress", actually fully compete entry, just sitting there waiting. When I try to copy them to a new entry, only groups and Titles are copied, but people are left out. Why does that happen?
GTramp (81961) on 1/14/2013 5:19 AM · Permalink · Report
Today I finally finished working of Call of Duty: Black Ops 2 PC credits and submitted them. I thought then, maybe if I grab all the info with your script I could paste it all into a new X360 credits entry for this game. Alas, it only pasted groups and titles. So, this bug still remains then?
vedder (71144) on 9/8/2012 4:41 PM · edited · Permalink · Report
Here's the case:
There's a half-filled in credit entry pending in the credits queue. The submitter wants to abandon it, so I figured to try to copy the existing info to my own entry in the hope I can finish it myself.
However I get an error.
When opening the credits wizard through the approval backend the URL is slightly different so I added a "// @include" and "// @match" line to the userscript with the matching URL in the hope that that would work. I get the following error though:
It does seem to work in the normal URL. Is there anything else I should change to the script?
Klaster_1 (57610) on 9/9/2012 4:14 AM · edited · Permalink · Report
Looks like that element with body ID is missing. First of all, remove # and try again. If it doesn't help, send me the saved page and it's URL, I'll look into problem. Since I'm not an approver, there was no way to test script there.
Kabushi (261374) on 9/23/2012 9:46 PM · Permalink · Report
Would it be possible to make the copied data editable before transferring them to the new platform? Much of the old credits isn't very accurate, it would be good if these could be edited before so that one doesn't have to delete, reenter and reorder entries.
Klaster_1 (57610) on 10/9/2012 5:51 PM · edited · Permalink · Report
I'm working on external editor right now. Currently, all basics function are available, except adding developers.
<hr>DEMO. It's still in progress, so everything as usual. A bit later I'll implement JSON import and export for the userscript.
<hr>Okay, userscript and editor both now can import / export data, feel free to test.
At the moment, editor allows you to:
- Drag and drop groups, roles and devs freely.
- Add groups and roles.
- Rename, groups and roles, change roles classification.
- Remove anything.
- Select roles with checkboxes (hold SHIFT and hover checkbox for quick select) and move them into new group.
- Have fun with two sets of demo credits. Accessible through LOAD CREDITS dropdown.
Even though there are more actions in interface, some related functions aren't implemented yet.
The major flaw is that you can't queue developers without being logged in or cross domain. If admins remove the restriction, you'll have full fledged open source alternative to default editor.
Klaster_1 (57610) on 10/18/2012 7:27 AM · Permalink · Report
Yeah, this Monday I managed to clone, compare and edit two sets of 1200+ devs credits in a matter of hours. Using the tool is still the best way to improve it, so more feedback means more improvements. Don't hesitate to discuss anything related.
MrMamen (11747) on 9/4/2012 8:20 AM · edited · Permalink · Report
Somewhat inspired by your Opera development, I created another extension for getting hi-res version of app icons on itunes app store. I previously created a bookmarklet (which is must easier to create) that more or less do the same job, but I wanted to test extension development.
Download Opera extension here: coverGrabber.oex
How to use:
- Download and install into Opera.
- Go to any itunes app store page (including mac app store) for example: http://itunes.apple.com/us/app/angry-birds/id343200656 (please not that you need to refresh the page if you loaded this page prior to installing the add-on)
- Click the blue "get app icon" button, normaly located to the right of search field at the top of the browser.
- You should be redirected to the app icon image file in 512x512px version.
For use on mobygames: If you want to submit a cover for an app on mobygames, you could simply copy the url of the hi-res image, and paste it in to the upload window. No need to download the file manually before uploading again. However some files uses opacity that renders incorrectly on mobygames, in that case the image needs to be downloaded and saved into a .jpg before uploded.
Future additions:
- I wanted to disable/remove the button on all other pages except itunes, but it was so many bugs that I removed the code. If anyone has any tips on how to do this, please tell me
- Support google play, steam, etc. However I have not found any way to redirect to a larger version on these sites. If anyone know how, please tell me.
Feel free to test it, and give me feedback if anything doesn't work. Or with possible future additions.
Update 1: Now supports google play & steam
Update 2: Now released officially on opera. Link is updated
Kabushi (261374) on 9/4/2012 8:33 AM · Permalink · Report
[Q --start MrMamen wrote--]
- Support google play, steam, etc. However I have not found any way to redirect to a larger version on these sites. If anyone know how, please tell me.
On Steam change
http://cdn.steampowered.com/v/gfx/apps/206500/header_292x136.jpg
into
MrMamen (11747) on 9/4/2012 12:15 PM · Permalink · Report
Soon, with my add-on. :-)
Or else just remove "=w124" at the end of the url.
Like this:
https://lh6.ggpht.com/s39vCe0HHuTfDXS-89lEH2IFkcRoS4nhIFqIqy7Qq6cRd9POFXLiGekbphoBGecH6ew=w124
into
https://lh6.ggpht.com/s39vCe0HHuTfDXS-89lEH2IFkcRoS4nhIFqIqy7Qq6cRd9POFXLiGekbphoBGecH6ew
Klaster_1 (57610) on 9/4/2012 12:24 PM · Permalink · Report
Nice going! We had scripts for full size images for quite some time, though.
MrMamen (11747) on 9/4/2012 7:40 PM · Permalink · Report
[Q --start Klaster_1 wrote--]Nice going! We had scripts for full size images for quite some time, though. [/Q --end Klaster_1 wrote--] I seem to recall that there was a script for iTunes, anyway as mentioned I based it on a bookmarklet I created a long time ago. Also I did it for gaining experience with add-on development.
The userscripts are great since they are cross-browser. The add-on may be a bit easier to install for non-technical users though. (But they rarely use Opera anyway.) ;-D
Klaster_1 (57610) on 11/4/2012 10:08 AM · Permalink · Report
Credits score bookmarklet: [Q]javascript:alert(document.querySelectorAll("span>a[href^='/developer']").length*0.25+2)[/Q]
Klaster_1 (57610) on 11/7/2012 9:09 AM · Permalink · Report
User script to enable permalinks for posts.
Klaster_1 (57610) on 12/10/2012 7:56 PM · edited · Permalink · Report
Script to hightlight certain entries in update list. Edit rules array inside for your needs. Properties title, year, changes, date are optional and use regular expressions while style is required and uses CSS.
If server is unavailable, try again several hours later.
Update: Same thing for new games.
Klaster_1 (57610) on 12/23/2012 2:48 PM · edited · Permalink · Report
Some time ago Rola asked me for a way to get whole platform list of titles. The way isn't perfect, but does the job. I hope rest of you find it useful.
[Q]
Recently, I discovered that MG actually have whole platform listings available for sitemap here. With a bit of XSLT magic you can get it into more digestible form:
simpsons-bart-vs-the-space-mutants budokan-the-martial-spirit james-pond-2-codename-robocod lemmings zak-mckracken-and-the-alien-mindbenders marble-madness
If that's OK, here's the instruction:
- Download XML for platforms in question into single folder.
- Create sitemap_games.xsl (any text editor would do) with current contents. You need this only once.
- In each XML, replace first 4 lines with that.
Now you can open those XML with any browser and have list of all games. After that, I'd sort whole list alphabetically to use with any diff software.
[/Q]