ETools Script

Interact from the game's page of OGame (Gameforge) with ETools

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name           ETools Script
// @namespace      etools.user.js
// @source         http://vld.altervista.org/etools/
// @description    Interact from the game's page of OGame (Gameforge) with ETools
// @version        1.0
// @author         vld
// @contributor    The Empire
// @icon           http://vld.altervista.org/etools/etools32.ico
// @icon64         http://vld.altervista.org/etools/etools64.ico
// @grant          none
// @noframes
// @run-at         document-end
// @include        http://s*-*.ogame.gameforge.com/game/index.php?page=*
// @exclude        http://s*-*.ogame.gameforge.com/game/index.php?page=buddies*
// @exclude        http://s*-*.ogame.gameforge.com/game/index.php?page=notices*
// @exclude        http://s*-*.ogame.gameforge.com/game/index.php?page=showmessage*
// @exclude        http://s*-*.ogame.gameforge.com/game/index.php?page=search*
// @exclude        http://s*-*.ogame.gameforge.com/game/index.php?page=trader*
// @exclude        http://s*-*.ogame.gameforge.com/game/index.php?page=empire*
// ==/UserScript==

var tab = document.getElementById ("bar");
if ((tab === null) || (tab.length < 8)) return;
var li8 = tab.getElementsByTagName ("li") [8];
var li = document.createElement ("li");
var a = document.createElement ("a");
a.setAttribute ("href", "http://vld.altervista.org/etools/");
a.setAttribute ("target", "_blank");
a.appendChild (document.createTextNode ("ETools"));
li.appendChild (a);
li8.parentNode.insertBefore (li, li8);