User:Lost Labyrinth/QReportRemoval.js

/* This script is still being tested and is not perfect. Anyone is welcome to make changes to repair. Reports can still be removed manually. */   window.onload = function  { // This is an imported script and still not perfect. wgPageQuery caused the script to not work at all. /*var cake = (unescape(Query)); if (cake.indexOf("remove=") > 0) { var mhm = cake.substring(unescape(Query).indexOf("remove=") + 7, cake.indexOf("&section=1")); var oldtext = document.getElementById('wpTextbox1').value; if (oldtext.indexOf("{{Report|" + mhm) > 0) { var cake = oldtext.substring(oldtext.indexOf("{{Report|" + mhm)); var cak3 = cake.substring(0, cake.indexOf("}}") + 2); document.getElementById('wpTextbox1').value = oldtext.replace(cak3, "{{Report|Example}}"); document.editform.wpSave.click; }       }*/    }