Gamdom Rain Notifier Mimic

Mimic script for Gamdom Rain Notifier

Ce script ne devrait pas être installé directement. C'est une librairie créée pour d'autres scripts. Elle doit être inclus avec la commande // @require https://update.greatest.deepsurf.us/scripts/40823/265980/Gamdom%20Rain%20Notifier%20Mimic.js

// ==UserScript==
// @name        Gamdom Rain Notifier Mimic
// @author      Boris Britva
// @namespace   https://greatest.deepsurf.us/users/173937
// @description Mimic script for Gamdom Rain Notifier
// @version     0.1.0
// ==/UserScript==

function mimic()
{
	if( location.origin.indexOf("gamdom") == -1 )
		return;
	var d = document,
		qs = function(s, e){return (e||d).querySelector(s);},
		start = function(){
			var e = qs("#youdontruntheway");
			e.innerHTML = "The script is running! Just leave this tab open and you'll receive all the rains!";
			e = qs("#versupdv1");
			e.innerHTML = "";
		};
	switch(d.readyState)
	{
		case "loading":
		d.addEventListener("DOMContentLoaded", start);
		break;
		case "interactive":
		case "complete":
		start();
		break;
	}
}