[chrome extension] NeoTools for your basic needs

So, have been wanting to do this since charity corner, but it got more complex that expected and ended up with little time as I had a lot of exams. Now that the exams are over, was finally able to fix several bugs I still had (though it probably still has some) and so have decided that the current version is good enough to post here. Works the fastest it can be with javascript

Features it has:

quickStock: can deposit items from inventory really fast (have had trouble when I had over 1k items on inv myself, takes so long to do it manually). Can also just deposit items matching x such as "dung"

moneyTree: can try to get 10 random items from money tree donations that have not yet appeared on the donations page. Basically gets items from the "future", a few minutes before they should appear. Its a gamble, but for a daily its not bad and have gotten some nc items a few times

wishingWell: makes a donation of 21np of the item you want to the wishing well. If you haven't reached 7 cap limit, it auto-donates again

generalStore: autobuys the amount you want of an item from general store (used this to buy 5k jingle bells on charity event xD)

accountInfo: useless stats such as np, nc, username, activepet name

shopWizard: autobuys an item from user shops really efficiently. Can set min, max, exact or containing, qty of items to buy, qty of times to run the search, and wait time between searches

​

First version so expecting some feedback to add/fix things, feel free to comment

How to install it:

Extract the folder somewhere on your computer

Open chrome and go to chrome://extensions/

Click on the developer mode checkbox

Click on load unpacked extension

Select the folder you extracted on step 1

Done

How to use it:

Open chrome and go to chrome://extensions/

Click reload under NeoTools

Click inspect views: background.html (or the incognito version if you are in incognito (will have to click on allow in incognito))

Developers tools should now be open. Go to console tab

Enter neoTools.command

Wait for results

​

Commands examples:

neoTools.quickStock() --> deposits all items in inv

neoTools.quickStock({match: "dung"}) --> deposits all items in inv that have dung in its name

neoTools.quickStock({all: false}) --> deposits only up to one page of items (70)

neoTools.shopWizard({name:"pile of dung"}) --> searches sw for a pile of dung and buys it

neoTools.shopWizard({name:"dung", criteria: "containing"}) --> searches sw for something containing dung until it finds one and buys it

neoTools.shopWizard({name:"pile of dung", min: 200, max: 1000}) --> searches sw for pile of dung between 200np and 1000np and buys it

neoTools.shopWizard({name:"pile of dung", qty: 10, max: 200}) --> searches sw for pile of dung for less than 200np and buys 10

neoTools.shopWizard({name:"pirate draik morphing potion", stopWhenBanned: false}) --> searches sw until it buys a pirate draik morphing potion, and if banned will auto-run again when the banning time has ended

neoTools.shopWizard({name:"pile of dung", spendUntil: 200, qty: 100}) --> in theory it should buy pile of dungs until it has spent 200np or more on them, have't tested it much. Or stops if it buys 100 of them, whichever happens first

neoTools.shopWizard({name:"pile of dung", maxRuns: 10, max: 10}) --> will either buy a pile of dung for less than 10np, or will stop searching after 10 searches

Sw autobuyer is not stopping or I accidentally put to buy 100 pile of dungs but did not put max on it so it could buy some for 99999 np

do neoTools.clearRequests() --> should work 99% of cases

do neoTools.requestManager.stop() --> won't do any further request until neoTools.requestManager.play() + (neoTools.requestManager.run() or any other command) is used

go to chrome://extensions/ and click on reload, then close the developer tools window you had, and open it again

exit chrome --> should never reach this point

Advanced examples: (for coding users)

neoTools.quickStock({match: function(name){if(name== 'pile of dung' || name.indexOf('nerkmid') != -1){return true;}else{return false}}}) --> deposits all items matching the name pile of dung or items which name includes the word nerkmid

Made a new version, just added 2 new options for shop wizard search: waitTime to set time between each sw search, and maxRuns to limit the amount of searches made. New version is v0.11 and have added examples of both options. Not sure if I should remove older version or just add new ones though?

Made a new version, just added 2 new options for shop wizard search: waitTime to set time between each sw search, and maxRuns to limit the amount of searches made. New version is v0.11 and have added examples of both options. Not sure if I should remove older version or just add new ones though?

Because I'm very hiperactive!!

You really did a great job. Well, if you think the new version is better, you should add a new one.