Travian Any Page Login

By Gabraham Last update Aug 8, 2009 — Installed 1,068 times. Daily Installs: 1, 0, 1, 1, 1, 0, 1, 2, 1, 0, 0, 2, 0, 1, 3, 2, 2, 0, 2, 1, 3, 5, 1, 2, 1, 2, 2, 2, 0, 0, 0

There are 3 previous versions of this script.

// ==UserScript==
// @name           Travian Any Page Login
// @namespace      http://userscripts.org/scripts/show/54825
// @description    Forget about dorf1. Travian will directly login to any page.
// @include        http://s*.travian*.*/*.php*
// @include        http://welt*.travian*.*/*.php*
// @exclude        http://*.travian*.*/log*.php*
// @exclude        http://*.travian*.*/*x.php*
// @author         Gabraham
// @version        1.0.2
// @copyright      Gabraham
// @license        Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Argentina
// ==/UserScript==

/* 
 * This script is licensed under the
 * Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Argentina License.
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/ar/
 */

window.addEventListener('load', function() {
	if (!!((document.evaluate( ".//input[@value='login']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null)).snapshotLength)) {
        var form = ((document.getElementsByTagName('FORM'))[0]);
        form.action = (location.href).split("/")[3];
        form[2].style.borderColor = form[3].style.borderColor = 'lightblue';
        form = null;
    }
},true);