// ==UserScript== // @name NeoQuest II Remote Control // @namespace http://nq2guy.tz/ // @description Automatically moves character based on user defined path. (1=north, 2=south, 3=west, 4=east, 5=northwest, 6=southwest, 7=northeast, 8=southeast // @include http://www.neopets.com/games/nq2/nq2* // @version 0.0.1.20150906031709 // @downloadURL https://update.greasyfork.icu/scripts/12240/NeoQuest%20II%20Remote%20Control.user.js // @updateURL https://update.greasyfork.icu/scripts/12240/NeoQuest%20II%20Remote%20Control.meta.js // ==/UserScript== //Copyright nq2guy 2008 //script licensed under, GNU GPL V3 , see http://www.gnu.org/licenses/gpl.txt for details // Uncomment the below two lines to initialize your variables, but please edit them from about:config , filter:greasmonkey.scriptvals //path = GM_setValue("Path","3"); //pathIndex = GM_setValue("pathIndex",0); path = GM_setValue("Path","**********************PUT YOUR NUMBERS BETWEEN THESE QUOTATION MARKS*************************"); pathIndex = GM_getValue("pathIndex",0); /* Notes on coordinates javascript: dosub(int) 1=north 2=south 3=west 4=east 5=northwest 6=southwest 7=northeast 8= southeast */ var i = 0; var hiccup=1; var divs = document.getElementsByTagName('div'); for(i=0;i