10ff Logout Message

tells you if you aren't logged in anymore

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         10ff Logout Message
// @namespace    http://tampermonkey.net/
// @version      0.111
// @description  tells you if you aren't logged in anymore
// @author       Ayasu/godsblade
// @match        *://10fastfingers.com/typing-test/*
// @match        *://10fastfingers.com/widget*
// @match        *://10fastfingers.com/competition/*
// @match        *://10fastfingers.com/advanced-typing-test/*
// @match        *://10fastfingers.com/top1000/*
// @grant        none
// ==/UserScript==
setInterval(function() {
	var cookies = document.cookie;

	if (!(cookies.includes("CakeCookie[remember_me_cookie]")))
	{

		var notLoggedInEle = document.getElementById("notLoggedIn");
		if(!notLoggedInEle){
			$('#words').before("<div id='notLoggedIn'></div>");
		}
		$('#notLoggedIn').html("Might not be logged in anymore...");

		document.getElementById("notLoggedIn").style.color = "red";
		document.getElementById("notLoggedIn").style.fontSize = "2em";
		document.getElementById("notLoggedIn").style.textAlign = "center";
	}
	else
	{
		var notLoggedInEle = document.getElementById("notLoggedIn");
		if(notLoggedInEle){
			notLoggedInEle.remove();
		}
	}
} , 100);