Enquirer Home Page | Twitter | Back to Improbable Island
 

ii-distract-more

ii-distract-more.user.js
// ==UserScript==
// @name       ii-distractmore
// @namespace  http://thedarkworld.net/projects/ii-distractmore/
// @version    0.1
// @description  Makes the "Distractions" link more distracting when you have a new Distraction.
// @match      http://improbableisland.com/*
// @match      http://www.improbableisland.com/*
// @copyright  2013+, Rentoraa
// ==/UserScript==
 
(function() {
    var a = document.querySelector("a[href='mail.php']"), t = a ? a.textContent || a.innerText : "";
	if( t.match(/ \d+ new/) && !t.match(/ 0 new/)) {
		a.style.fontSize = "32pt";
		a.style.transition = "opacity 1s linear";
        a.style.color = "white";
		a.style.opacity = 1;
        a.style.position = "fixed";
        a.style.zIndex = 1000;
        a.style.backgroundColor = "rgba(0,0,0,0.5)";
		window.setInterval(function() {a.style.opacity = 1.5-a.style.opacity;},1000);
	}
}());

Version 0.1 by Rentoraa (archive.org link)

 
Logged in as: Guest (Guest)
greasemonkey/ii-distract-more.txt · Last modified: 2019/12/30 18:50 by Full Metal Lion