User Tools

Site Tools


greasemonkey:ii-distract-more

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)

greasemonkey/ii-distract-more.txt · Last modified: 2023/11/21 18:04 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki