Logout links
by math_explorer, Nov 30, 2014, 4:25 AM
This post has been edited 1 time. Last edited by math_explorer, Nov 30, 2014, 4:29 AM
// ==UserScript== // @name AoPS Logout Guard // @namespace math_explorer // @include *artofproblemsolving* // @version 1 // @grant none // ==/UserScript== var ts = document.getElementsByTagName('a'); for (var i = 0; i < ts.length; i++){ var t = ts[i]; if (decodeURI(t.href).match(/logout/) && t.parentNode.id !== 'top-actions') { var s = t.href; if (s.length >= 24) s = "..." + s.substr(s.length - 20, 20); var newElt = content.document.createElement('span'); newElt.textContent = "[LOGOUT? " + s + "]"; newElt.style.verticalAlign = 'sub'; newElt.style.backgroundColor = '#f00'; newElt.style.color = '#fff'; newElt.style.fontSize = '75%'; t.appendChild(newElt); } }
by
NeoMathematicalKid, Dec 1, 2014, 1:07 AM
by
math_explorer, Dec 1, 2014, 3:53 AM
by
NeoMathematicalKid, Dec 1, 2014, 1:30 PM
♪ i just hope you understand / sometimes the clothes do not make the man ♫ // https://beta.vero.site/
Something appears to not have loaded correctly.