// ==UserScript== // @name ii-mail-check // @namespace http://enquirer.improbableisland.com/dokuwiki/doku.php?id=greasemonkey // @author Tahvohck, modifications by Svedka and Full Metal Lion // @description Checks to see if you have mail, and adds an alert if you do. // @version 3.1 // @match *://*.improbableisland.com/* // @exclude *://enquirer.improbableisland.com/* // @icon https://improbableisland.com/favicon.ico // @grant none // ==/UserScript== var Havemail = document.evaluate("//a[@href='mail.php'][@class='hotmotd']", document, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue; if (Havemail) { var Body = document.evaluate("//body", document, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue; if (Body){ Body.innerHTML += '
'; } }