/_normal.user.js

http://game-golem.googlecode.com/ · JavaScript · 32 lines · 14 code · 0 blank · 18 comment · 2 complexity · 428ee85e1d27d0d4bc722b6aa5397ad1 MD5 · raw file

  1. // ==UserScript==
  2. // @name Rycochet's Castle Age Golem
  3. // @namespace golem
  4. // @description Auto player for Castle Age on Facebook. If there's anything you'd like it to do, just ask...
  5. // @license GNU Lesser General Public License; http://www.gnu.org/licenses/lgpl.html
  6. // @version 31.6.1119
  7. // @include http://apps.facebook.com/castle_age/*
  8. // @include https://apps.facebook.com/castle_age/*
  9. // @include http://web3.castleagegame.com/castle_ws/index.php
  10. // @resource golem http://game-golem.googlecode.com/svn/trunk/GameGolem.js
  11. // @resource stylesheet http://game-golem.googlecode.com/svn/trunk/golem.css
  12. // ==/UserScript==
  13. // @disabled-include http://apps.facebook.com/reqs.php
  14. // @disabled-include https://apps.facebook.com/reqs.php
  15. //
  16. // For the source code please check the sourse repository
  17. // - http://code.google.com/p/game-golem/
  18. (function () {
  19. var a, b, c = GM_listValues();
  20. // Change old data format to use localStorage instead of GM_*
  21. while ((a = c.pop())){
  22. if (/^golem\./i.test((b = GM_getValue(a)))) {
  23. localStorage.setItem(a, b)
  24. GM_deleteValue(a);
  25. }
  26. }
  27. GM_addStyle(GM_getResourceText('stylesheet'));
  28. a = document.createElement('script');
  29. a['type'] = 'text/javascript';
  30. a['text'] = GM_getResourceText('golem');
  31. (document.getElementsByTagName('head')[0]||document.documentElement).appendChild(a);
  32. }());