Large

Castle Age Golem

By Rycochet Last update May 20, 2011 — Installed 28,819 times.

There are 56 previous versions of this script.

// ==UserScript==
// @name		Rycochet's Castle Age Golem
// @namespace	golem
// @description	Installer for Game Golem - Austoplayer for Castle Age.
// @license		GNU Lesser General Public License; http://www.gnu.org/licenses/lgpl.html
// @version		1.1
// @include		http://apps.facebook.com/castle_age/*
// @include		https://apps.facebook.com/castle_age/*
// ==/UserScript==
//
// This is the *Installer* for Game Golem - due to userscripts.org only allowing
// a single developer to update the scripts. Pop up a requester asking to install
// the latest release, and giving reasons for it.
//
// For the source code please check the sourse repository
// - http://code.google.com/p/game-golem/
//
// For the unshrunk Work In Progress version (which may introduce new bugs)
// - http://game-golem.googlecode.com/svn/trunk/greasemonkey/GameGolem.user.js

if (/^apps\.facebook\.com$/i.test(window.location.host)) {
	var text = "Golem Installer\n\n" +
	"Unfortunately userscripts.org only allows a single developer to release updates. Golem is developed by a group of people on code.google.com so we have updated userscripts to simply install the current version.\n\n" +
	"Please note that Golem is *not* currently installed!\n\n" +
	"Would you like to install the current version of Game Golem?";

	window.setTimeout(function(){// Act 5 seconds after page load to prevent lockups etc
		if (confirm(text)) {
			window.location.href = 'http://game-golem.googlecode.com/svn/trunk/greasemonkey/GameGolem.user.js';
		}
	},5000);
}