Multiple Game Opener *OLD*

Opens all games in new tabs

  1. // ==UserScript==
  2. // @name Multiple Game Opener *OLD*
  3. // @namespace Kongregate
  4. // @description Opens all games in new tabs
  5. // @include http://*.kongregate.com/games*
  6. // @include http://kongregate.com/games*
  7. // @include http://*.kongregate.com/*games*
  8. // @include http://kongregate.com/*games*
  9. // @include http://*.kongregate.com/my_favorites*
  10. // @include http://kongregate.com/my_favorites*
  11. // @include http://*.kongregate.com/game_groups*
  12. // @include http://kongregate.com/game_groups*
  13. // @version 0.0.1.20160422224725
  14. // ==/UserScript==
  15.  
  16. var feat = document.getElementById( "feature" ).childNodes[1];
  17. feat.style.textDecoration = "underline";
  18. feat.style.cursor = "pointer";
  19. feat.title = "Click to open these games in new tabs/windows.";
  20. feat.addEventListener('click',function () {
  21. var games = document.getElementsByClassName("play_link");
  22. for( var link in games ) {
  23. if( link >= 0 )
  24. window.open( games[link].href, "Kong" + link );
  25. }
  26. },false)