NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Hacker Experience Helper // @description This userscript will help you during gameplay. It will automatically remove your IP from logs, and many things more! // @include https://hackerexperience.com/* // @include http://hackerexperience.com/* // @exclude http://hackerexperience.com/ // @exclude https://hackerexperience.com/ // @copyright 2014+, TheEvilSocks // @namespace https://openuserjs.org/users/TheEvilSocks/scripts // @version 1.0.1.2 // @oujs:author TheEvilSocks // @updateURL https://raw.githubusercontent.com/TheEvilSocks/GreaseMonkey/master/HackerExperience.user.js // @downloadURL https://raw.githubusercontent.com/TheEvilSocks/GreaseMonkey/master/HackerExperience.user.js // ==/UserScript== var evt = document.createEvent("HTMLEvents"); evt.initEvent("click", true, true); window.addEventListener('load', function() { setTimeout(function() { var IP = document.getElementsByClassName('header-ip-show')[0].innerText; var page = document.location['href'].split('/')[3]; //alert("Page: " + page + "\nIP: " + IP); if(page == "internet?view=logs" || page == "internet"){ var logBox = document.getElementsByName('log')[0]; if(!(logBox===null) ){ var btn = document.createElement("BUTTON"); var t = document.createTextNode("Clear Log"); btn.appendChild(t); btn.setAttribute("class", "btn btn-inverse"); document.getElementsByClassName('log')[0].appendChild(btn); btn.addEventListener('click', function() { logBox.value = ""; document.getElementsByClassName('btn btn-inverse')[5].dispatchEvent(evt); },true); if(logBox.value.indexOf(IP) > -1){ logBox.value = logBox.value.replace(new RegExp(IP, 'g'), ""); document.getElementsByClassName('btn btn-inverse')[5].dispatchEvent(evt); } } } if(page == "log"){ var logBox = document.getElementsByName('log')[0]; if(!(logBox===null) ){ var btn = document.createElement("BUTTON"); var t = document.createTextNode("Clear Log"); btn.appendChild(t); btn.setAttribute("class", "btn btn-inverse"); document.getElementsByClassName('log')[0].appendChild(btn); btn.addEventListener('click', function() { logBox.value = ""; document.getElementsByClassName('btn btn-inverse')[4].dispatchEvent(evt); },true); } } }, 500); }, false);