Greasemonkey Script Overhaul (new battle order script)

Day 688, 21:32 Published in Greece Canada by Buck Roger

Greasemonkey scripts rely on pattern-matching to determine which pages might possibly be re-written using a script within the addon's arsenal.

Recently, eRepublik released a "cluster" architecture for improved server performance. The impact on scripts and their users is that the URL may now be either "www" or "www2."

I maintain the "eGR_BattleOrders translated" Greasemonkey script, which shows the eGreek battle orders on the home page of the user in their native language, using Google translate.

Following the lead of its antecedent, the eGR_BattleOrders script, I have updated my derivative script to a version 0.2.1 that accomodates the new www2 subdomain. In another change mimicking the parent script, it now has a link to the Greasemonkey script page, where you can click through to find any future versions (without, however, any notification that you should do so... at this time). Unlike the parent, it also supports the five other languages (Spanish, Portuguese, French, German, and Russian).

In the next version, I will most likely generalize the subdomain part of the pattern matching, so that any subdomain is acceptable. I recommend this route also to any other script authors, or to any users of scripts who want to do a very easy "hack" (skill level: able to use Notepad.exe) to fix their scripts to keep working.

Just right click the Monkey in the lower right of the browser, "Manage User Scripts..." and find your script (click on it). Then click on each entry for "Included Pages" and where it says "http://www.erepublik.com/blah" replace it with "http://*.erepublik.com/blah" through use of the "Edit..." button. Done.

Please install the new eGR_BattleOrders translated if you prefer reading a language other than Greek (usually, English) and want the eGreece battle orders on your eRepublik home page.



Bug reports, suggestions, ideas for this or other scripts, and scraps of Q1 Food are gratefully accepted.