10ff Logout Message

tells you if you aren't logged in anymore

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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);