Advertisement
Guest User

Untitled

a guest
Apr 17th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Ikariam Aide-Memoire (Generals Score)
  3. // @namespace http://userscripts.org/scripts/show/49151
  4. // @author Martynius (http://userscripts.org/users/68307)
  5. // @license GNU GPL v3 (http://www.gnu.org/copyleft/gpl.html)
  6. // @homepage http://userscripts.org/scripts/show/49151
  7. // @description Shows the generals score of a player in the island view afer you have looked it up in the highscores.
  8. // @require http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js
  9. // @require http://ikariamscriptresources.googlecode.com/svn/tags/Latest/IkariamHostDetection.js
  10. // @require http://ikariamscriptresources.googlecode.com/svn/tags/Latest/IkariamLanguageDetection.js
  11. // @require http://ikariamscriptresources.googlecode.com/svn/tags/Latest/IkariamLanguage_Highscore.js
  12. // @require http://ikariamscriptresources.googlecode.com/svn/tags/Latest/IkariamLanguage_Time.js
  13. // @require http://userscripts.org/scripts/source/57756.user.js
  14. // @require http://userscripts.org/scripts/source/51116.user.js
  15. // @version 1.0.8b
  16. // @include http://s*.ikariam.*/index.php
  17. // @include http://s*.ikariam.*/index.php*view=city*
  18. // @include http://s*.ikariam.*/index.php*view=island*
  19. // @include http://s*.ikariam.*/index.php*view=highscore*
  20. // @include http://s*.ikariam.*/index.php*view=allyHighscore*
  21. // @include http://s*.ikariam.*/index.php*view=diplomacyAdvisor*&watch=4*
  22. // @include http://s*.ikariam.*/index.php*view=diplomacyAdvisorAlly*
  23. // @include http://s*.ikariam.*/index.php*view=embassy*
  24. // @include http://s*.ikariam.*/index.php*view=options*
  25. // @exclude http://support*.ikariam.*/*
  26. //
  27. // @history 1.0.8b Feature: Updated auto-updater to use PhasmaExMachina's UserScript.
  28. // @history 1.0.8a Bugfix: Fixed issue displaying own scores.
  29. // @history 1.0.8 Feature: Can select whether to show columns in Embassy/Alliance Highscore pages from the Options page.<br />Feature: Moved main code to separate module.
  30. // @history 1.0.7a Bugfix: Fixed issue looking up player names when cached data is cleared.
  31. // @history 1.0.7 Feature: Changed to store data based on player ID rather than name.<br />Feature: Added column to Alliance Highscore showing average generals score and number of players the average is based on.
  32. // @history 1.0.6 Bugfix: Fixed column identifiers to work independently of any extra columns added.
  33. // @history 1.0.5 Feature: Added auto-update checker.
  34. // @history 1.0.4 Feature: Shows generals score in city views of controlling player (own and, when spying, other players).
  35. // @history 1.0.3 Feature: Shows generals scores in embassy/alliance diplomacy views.
  36. // @history 1.0.2 Bugfix: Fixed page parsing/detection.
  37. // @history 1.0.1 Bugfix: Fixed @include pages.
  38. //
  39. // ==/UserScript==
  40.  
  41. if ( PAGE_ID !== undefined ) {
  42. new IkariamAideMemoire( {
  43. SCORE_TYPE: "army_score_main",
  44. SCRIPT_ID: 49151,
  45. SCRIPT_VERSION: "1.0.8b",
  46. SCRIPT_NAME: "Ikariam Aide-Memoire (Generals Score)"
  47. });
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement