Ikariam notifier

By Weirdowz Last update Jun 29, 2008 — Installed 1,374 times. Daily Installs: 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 0, 2, 2, 2, 3, 0, 0, 1, 0, 1, 2, 0
// ==UserScript==
// @name           Ikariam notifier
// @namespace      http://userscripts.org/users/57047/scripts
// @description    A script which creates a popup message when one of the 4 advisors has something to say, it also moves you to the ikariam tab (if you are doing something else).
// @include        http://*.Ikariam.*/*
// @include        http://Ikariam.*/*
// @exclude        http://board.ikariam.*/*
// ==/UserScript==

if (['advCities', 'advMilitary', 'advResearch', 'advDiplomacy'].some(function(e) {
    if (document.evaluate('.//a[@class="normalactive"]', document.getElementById(e), null, 8, null).singleNodeValue) return true;
})) alert('One of your Advisors has something to report to you!');