NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Server Quick-change Links // @author Dwarstop // @namespace minethings // @description MT Servers A/B/C/D/E/F // @include http://*.minethings.com* // @version 69.88 // @grant GM_log // ==/UserScript== var currentURL = window.location.href; var loginheader = document.getElementById('login'); var asolink = document.createElement('a'); asolink.href = "http://www.minethings.com/miners/login/1"; asolink.innerHTML = "<span style='background-color: #9c8072; line-height:40px;'> Aso </span>"; var bromolink = document.createElement('a'); bromolink.href = "http://www.minethings.com/miners/login/2"; bromolink.innerHTML = "<span style='background-color: #9c8072;'> Bromo </span>"; var calbucolink = document.createElement('a'); calbucolink.href = "http://www.minethings.com/miners/login/3"; calbucolink.innerHTML = "<span style='background-color: #9c8072;'> Calbuco </span>"; var dempolink = document.createElement('a'); dempolink.href = "http://www.minethings.com/miners/login/6"; dempolink.innerHTML = "<span style='background-color: #9c8072;'> Dempo </span>"; var ebekolink = document.createElement('a'); ebekolink.href = "http://www.minethings.com/miners/login/7"; ebekolink.innerHTML = "<span style='background-color: #9c8072;'> Ebeko </span>"; var fogolink = document.createElement('a'); fogolink.href = "http://www.minethings.com/miners/login/8"; fogolink.innerHTML = "<span style='background-color: #9c8072;'> Fogo </span>"; if(currentURL.substring(0, 10) == "http://aso") { asolink.href = ""; } else if(currentURL.substring(0,10) == "http://bro") { bromolink.href = ""; } else if(currentURL.substring(0,10) == "http://cal") { calbucolink.href= ""; } else if(currentURL.substring(0,10) == "http://dem") { dempolink.href= ""; } else if(currentURL.substring(0,10) == "http://ebe") { ebekolink.href= ""; } else if(currentURL.substring(0,10) == "http://fog") { fogolink.href= ""; } loginheader.appendChild(asolink); loginheader.appendChild(bromolink); loginheader.appendChild(calbucolink); loginheader.appendChild(dempolink); loginheader.appendChild(ebekolink); loginheader.appendChild(fogolink);