Okay, this is from another forum, but it's pretty much dead, so who cares. Is there some reason this script isn't working for me? Code (Text): // ==UserScript== // @name Neopets Username Checker // @namespace neofreaks.org // @include http://*.neopets.com/* // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html // @copyright 2010+, Freaky (http://neofreaks.org) // ==/UserScript== GM_registerMenuCommand("Neopets Username Checker", checkMain); var bodyHTML = '<body style="background-color:#ccc; margin:20px">\ <h1>Neopets Username Checker</h1>\ <h2>By <a href="http://neofreaks.org">Freaky</a></h2>\ <div id="input">\ <form>\ <label style="display:block" for="users">Usernames to check:</label>\ <textarea id="users" name="users" rows="10" cols="30"></textarea><br />\ <input type="button" id="check" value="Check Availability" />\ </form>\ </div>\ <hr />\ <div id="output">\ <label style="display:block" for="outusers">Usernames available:</label>\ <textarea id="outusers" name="outusers" rows="10" cols="30"></textarea><br />\ <p id="status"></p>\ <label style="display:block" for="errusers">The following usernames were not checked due to errors:</label>\ <textarea id="errusers" name="errusers" rows="5" cols="30"></textarea><br />\ </div>\ </body>' var checkCount=0; var stop=0; var users; function checkMain() { //Open window checkerWindow=window.open("", "checkerWindow"); checkerWindow.document.write(bodyHTML); //Write html to window checkerWindow.document.close(); //Close document to writing // add event listeners checkerWindow.document.getElementById("check").addEventListener("click", checkUsernames, false); checkerWindow.addEventListener("unload", cleanupListener, false); } function checkUsernames() { checkerWindow.document.getElementById("outusers").value = ""; users = checkerWindow.document.getElementById("users").value.split('\n'); checkCount=0; checkInterval(0); } // checks users between start and start+250 in list, then starts next check function checkInterval(start) { for(var i=start; i<Math.min(users.length,start+250); i++) { checkUser(users[i], Math.min(users.length,start+250)); } } function checkUser(user, end) { if (!stop) { GM_xmlhttpRequest({ method: "GET", url: "http://www.neopets.com/reg/process_index.phtml?r=265&dowhat=check_availability&username=" + user + "&destination=dailydare", onload: function(result) { checkCount++; if (result.responseText.indexOf("is available") > -1) checkerWindow.document.getElementById("outusers").value += user + "\n"; checkerWindow.document.getElementById("status").innerHTML = "Checked " + checkCount + " usernames so far"; if (checkCount == end && end != users.length) { checkInterval(end); } }, onerror: function(result) { checkCount++; // report the username that caused the error checkerWindow.document.getElementById("errusers").value += user + "\n"; if (checkCount == end && end != users.length) { checkInterval(end); } } }); } } function cleanupListener() { stop=1; }
Filter doesn't work if posted inside a code box?? Interesting ... Out of curiosity, when did it stop working? And how does it not work?
When I use it, nothing happens :/ A blank tab opens up. If you scan the code some content adn forms should pop up but nothing does. and we probably just didn't block neofreaks because it's pretty dead anyways.