Forums > MobyGames > MobyGames Opera extension

user avatar

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.

DOWNLOAD.

I'd be glad to hear suggestions and bug reports, so don't hesitate to leave a response.

user avatar

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?

user avatar

Klaster_1 (57610) on 6/14/2012 5:16 PM · edited · Permalink · Report

That would certainly be useful, but speeddial cell can link only to one page, same goes for extension.

user avatar

vedder (71144) on 6/15/2012 9:05 AM · Permalink · Report

Was afraid of that

user avatar

Patrick Bregger (303297) on 6/14/2012 6:33 PM · Permalink · Report

Great, thanks.

user avatar

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

user avatar

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.

user avatar

chirinea (47507) on 6/15/2012 12:06 AM · Permalink · Report

Great, thanks!

user avatar

Klaster_1 (57610) on 6/15/2012 9:14 AM · Permalink · Report

Seems like it's possible to implement link changing via extension settings. I'll investigate that and inform about results.

user avatar

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.

user avatar

MrMamen (11747) on 7/12/2012 10:35 AM · Permalink · Report

Great. Why don't you release it to the official Opera extensions?

user avatar

Klaster_1 (57610) on 7/12/2012 12:35 PM · edited · Permalink · Report

You think it's necessary? I'll give it a try, but moderation process might take awhile.

Update: that was rather fast. Now link leads to official extension page. Thanks for advice, MrMamen :)

user avatar

Klaster_1 (57610) on 8/14/2012 1:19 PM · edited · Permalink · Report

I'm currently making the tool for credits cloning, any wishes on this matter?

user avatar

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?

user avatar

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:

  1. Grab all the developers, roles and groups from step 3.
  2. Grab roles classification from step 5.
  3. Create new entry for another platform.
  4. 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 :)

user avatar

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.

user avatar

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" }] }

user avatar

Sciere (930964) on 8/14/2012 3:27 PM · Permalink · Report

Magic!

user avatar

vedder (71144) on 8/14/2012 3:29 PM · edited · Permalink · Report

Ok, forget I asked :)

user avatar

Klaster_1 (57610) on 10/28/2012 7:16 AM · Permalink · Report

Little update: now you can add space padding to group title, in case there are "ghost" groups and editor will display statistics (number of each entry types and total points score).

user avatar

Klaster_1 (57610) on 8/17/2012 10:15 AM · Permalink · Report

DOWNLOAD Alpha version.

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:

  1. 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".
  2. Return to wizard start and change platform to the destination one.
  3. 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.
  4. 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.
  5. Go to step 5, "Classify roles" and "Update".
  6. 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.

user avatar

Kabushi (261374) on 8/17/2012 10:34 AM · Permalink · Report

I tried it out on Prey (Windows -> 360), however it only copies the first three groups and nothing for the rest.

I'm using Firefox.

user avatar

Klaster_1 (57610) on 8/17/2012 10:46 AM · Permalink · Report

Works for me:

Do you get the same output or only the first three groups? Can you show error console output (Ctrl+Shift+J after page loading)?

user avatar

Kabushi (261374) on 8/17/2012 10:50 AM · Permalink · Report

Oh sorry, I wasn't clear enough. I meant the content of the groups, not the groups themselves.

user avatar

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.

user avatar

Kabushi (261374) on 8/17/2012 11:51 AM · Permalink · Report

Same things happen at second attempt.

Got some errors: TypeError: fields[i] is undefined; uncaught exception: [object Object]

user avatar

Klaster_1 (57610) on 8/17/2012 12:34 PM · Permalink · Report

[Q]TypeError: fields[i] is undefined[/Q] Yeah, that was my mistake – it's a bad idea to iterate over nonexistent elements, fixed now. But I can't reproduce second error.

user avatar

Kabushi (261374) on 8/17/2012 12:53 PM · Permalink · Report

Hmm, the full voice credits didn't get copied. Art Bell (as himself) is missing, I wonder if it might be the paranthesis that is causing the break?

user avatar

Klaster_1 (57610) on 8/17/2012 1:05 PM · Permalink · Report

Maybe try with Opera? Brackets around alt names are actually processed in the code and paste properly:

user avatar

Kabushi (261374) on 8/17/2012 6:52 PM · Permalink · Report

Doesn't work in Opera either.

user avatar

Sciere (930964) on 8/17/2012 10:57 AM · Permalink · Report

I've been sitting on the credits for Resistance 3 for a while as well. If no one else adds it, I'll add it some time later this year.

user avatar

Klaster_1 (57610) on 8/17/2012 5:15 PM · Permalink · Report

It's pending now, feel free to fix the description and submit credits :)

user avatar

Klaster_1 (57610) on 8/25/2012 12:22 PM · Permalink · Report

I've added functionality to select range of checkboxes in remove section of step 3. Just check start box, then with Shift pressed check end box. Range will have same state as start box.

user avatar

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.

user avatar

Klaster_1 (57610) on 8/26/2012 9:08 AM · Permalink · Report

Open console (Ctrl+Shift+I -> Console tab) and reload credits wizard page. If you don't get "CT loaded" message, then something is probably wrong with the way script was installed.

user avatar

Patrick Bregger (303297) on 8/26/2012 9:41 AM · edited · Permalink · Report

I have a lot of error messages.

http://www.imagebam.com/image/4fd211207735392

user avatar

Klaster_1 (57610) on 8/26/2012 1:47 PM · Permalink · Report

Those aren't actually errors and none of them are related to userscripts. You need to open Konsole tab, reload the page and paste the log here, so I'll try to figure the problem out.

user avatar

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.

user avatar

Klaster_1 (57610) on 8/26/2012 6:07 PM · Permalink · Report

Previous log said that ad scripts behave the same way. It might be caused by adblock and noscript extensions, or disabled JavaScript.

user avatar

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?

user avatar

Klaster_1 (57610) on 8/27/2012 3:34 AM · Permalink · Report

Google says that it's probably result of content blocking. Do you have firewall or proxy? Also, try on another computer and Firefox.

user avatar

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.

user avatar

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.)

user avatar

Sciere (930964) on 8/28/2012 6:20 PM · edited · Permalink · Report

Those take five times as much time as a regular credits listing :/ The 360 credits are pending, so you'll be able to duplicate those.

user avatar

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".

user avatar

Sciere (930964) on 8/28/2012 6:37 PM · Permalink · Report

Yes, those, along with rappers.

user avatar

Pseudo_Intellectual (66423) on 8/28/2012 6:38 PM · Permalink · Report

That's no different from most Japanese credits traditionally, is it?

user avatar

GTramp (81961) on 8/29/2012 12:14 AM · Permalink · Report

What a great tool, man! Used it in latest Firefox, works perfectly. Saves SOOOOOOOO much time!

user avatar

Klaster_1 (57610) on 8/29/2012 4:06 AM · Permalink · Report

I'm glad it works for someone :) Don't forget to pass your suggestions on, though.

user avatar

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).

user avatar

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.

user avatar

Klaster_1 (57610) on 9/3/2012 2:49 AM · edited · Permalink · Report

Wait a second, but that's exactly what MobyGames Credits Tool.user.js does! You are not limited in any way where to paste gathered data.

user avatar

chirinea (47507) on 9/3/2012 2:28 PM · edited · Permalink · Report

I tried copying credts from an Odyssey² game to a Videopac+ game but it didn't work. Maybe it was a problem with the whole extension not working in my computer.

user avatar

Klaster_1 (57610) on 9/3/2012 2:34 PM · Permalink · Report

Just now I've successfully cloned credits from totally unrelated Zeebo to Amiga game.

user avatar

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

user avatar

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.

user avatar

GTramp (81961) on 9/10/2012 4:14 AM · Permalink · Report

Thanks! Now it works.

user avatar

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?

user avatar

Klaster_1 (57610) on 9/10/2012 5:43 AM · Permalink · Report

[Q]Why does that happen?[/Q] У меня кривые руки, очевидно. I've encountered the same behaviour yesterday while dealing with vedder's trouble and will try to look into it later. Thanks for report.

user avatar

GTramp (81961) on 9/10/2012 10:30 AM · Permalink · Report

Hope you'll be able to track down this bug. )

user avatar

Klaster_1 (57610) on 11/27/2012 8:08 AM · edited · Permalink · Report

Bug fixed, probably.

user avatar

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?

user avatar

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:

image

It does seem to work in the normal URL. Is there anything else I should change to the script?

user avatar

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.

user avatar

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.

user avatar

Klaster_1 (57610) on 9/24/2012 3:55 AM · Permalink · Report

You can manually edit raw JSON data in sessionStorage, but that's kinda clunky. Making it editable the pleasant way means implementing whole wizard from scratch.

user avatar

Kabushi (261374) on 9/24/2012 7:54 AM · Permalink · Report

I was thinking about just dumping the data to a text file, then editing it there and then copying it back again.

I often use MegamanX64's tool for this but it involves a lot of formatting and inputting takes much longer.

user avatar

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:

  1. Drag and drop groups, roles and devs freely.
  2. Add groups and roles.
  3. Rename, groups and roles, change roles classification.
  4. Remove anything.
  5. Select roles with checkboxes (hold SHIFT and hover checkbox for quick select) and move them into new group.
  6. 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.

user avatar

Klaster_1 (57610) on 10/18/2012 6:24 AM · Permalink · Report

Now you can add developers already present in database (i.e. with ID) and text entries. Had to write and deploy proxy for this.

user avatar

Klaster_1 (57610) on 11/8/2012 6:02 AM · Permalink · Report

It's now possible to add new persons.

user avatar

GTramp (81961) on 11/9/2012 2:00 AM · Permalink · Report

"Ass as text"?

user avatar

vedder (71144) on 10/18/2012 7:21 AM · Permalink · Report

Sounds great!

user avatar

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.

user avatar

Mr. Tae (63) on 12/29/2012 7:45 PM · Permalink · Report

The link you provided doesn’t work.

user avatar

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:

  1. Download and install into Opera.
  2. 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)
  3. Click the blue "get app icon" button, normaly located to the right of search field at the top of the browser.
  4. 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

user avatar

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.
[/Q --end MrMamen wrote--]

On Steam change

http://cdn.steampowered.com/v/gfx/apps/206500/header_292x136.jpg

into

http://cdn.steampowered.com/v/gfx/apps/206500/header.jpg

user avatar

MrMamen (11747) on 9/4/2012 10:38 AM · Permalink · Report

Thanks. I also found a way to get 512px on google play. I'll try to update the add-on for these two sites later this week. Please give me a note if you know any similar online stores where there are hi-res cover images.

user avatar

GTramp (81961) on 9/4/2012 11:29 AM · Permalink · Report

What's the way to get 512px covers on Google Play?

user avatar
user avatar

GTramp (81961) on 9/4/2012 12:23 PM · Permalink · Report

Thanks! I'm using Firefox, so I guess I'll have to do that manually )

user avatar

MrMamen (11747) on 9/4/2012 7:36 PM · Permalink · Report

Great. Now it should support google play & steam as well. Updated the link in the original post.

user avatar

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.

user avatar

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

user avatar

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]

user avatar

Klaster_1 (57610) on 11/7/2012 9:09 AM · Permalink · Report

User script to enable permalinks for posts.

user avatar

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.

user avatar

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:

  1. Download XML for platforms in question into single folder.
  2. Create sitemap_games.xsl (any text editor would do) with current contents. You need this only once.
  3. 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]

user avatar

GTramp (81961) on 2/22/2013 9:19 AM · Permalink · Report

I'm sure I saw a script somewhere that allows you to import arranged credits from .doc into the "add credits" section. Can someone point me where it was?

user avatar

Kabushi (261374) on 2/22/2013 9:27 AM · Permalink · Report

You mean this?

user avatar

GTramp (81961) on 2/22/2013 10:20 AM · Permalink · Report

Exactly. Thanks!