ETools Script

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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);