Kongregate Multiple Game Opener

Opens all Kongregate games on page in new tabs.

当前为 2016-03-06 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name           Kongregate Multiple Game Opener
// @namespace      Kongregate
// @description    Opens all Kongregate games on page in new tabs.
// @include        http://*.kongregate.com/games*
// @include        http://kongregate.com/games*
// @include        http://*.kongregate.com/*games*
// @include        http://kongregate.com/*games*
// @include        http://*.kongregate.com/my_favorites*
// @include        http://kongregate.com/my_favorites*
// @include        http://*.kongregate.com/game_groups*
// @include        http://kongregate.com/game_groups*
// @version 0.0.1.20160306134658
// ==/UserScript==

var feat = document.getElementById( "feature" ).childNodes[1];
feat.style.textDecoration = "underline";
feat.style.cursor = "pointer";
feat.title = "Click to open these games in new tabs/windows.";
feat.addEventListener('click',function () {
  var games = document.getElementsByClassName("play_link");
	for( var link in games ) {
    if( link >= 0 )
    window.open( games[link].href, "Kong" + link );
  }
},false)