Welcome to my collection of half assed things.
no annoying popup when restocking.
// ==UserScript== // @name No Confirmation On Haggle // @namespace http://your.homepage/ // @version 0.1 // @description 4 lines of goodness // @author Desant // @include *neopets.com/objects.phtml?type=shop&obj_type=* // @include *neopets.com/objects.phtml?obj_type=*&type=shop // ==/UserScript== var items = $('a[href^="haggle.phtml"]'); for (i = 0; i < items.length; i++){ items[i].setAttribute("href",items[i].getAttribute("onClick").split(";")[0].substring(11,71).replace("'+'","")); items[i].setAttribute("onclick",""); }
Simple scorchy "player" (it presses play and collect, ayyy)
// ==UserScript== // @name scorchy "player" // @namespace http://your.homepage/ // @version 0.1 // @description enter something useful // @author Desant // @grant none // @include *neopets.com/games/slots.phtml* // ==/UserScript== var items = document.getElementsByTagName("input"); for(i=0; i < items.length; i++){ if (items[i].getAttribute("type").indexOf("submit") != -1){ if(items[i].getAttribute("value").indexOf("Play") != -1 || items[i].getAttribute("value").indexOf("Collect") != -1){ items[i].click(); } } }
Modified auto shop stock alerter for chrome/fixed alert. All credits to whoever.
// ==UserScript== // @name Neopets Main Shop Restock Alerter // @namespace http://www.userscripts.org/user/46514 // @include *www.neopets.com/objects.phtml?* // @version 1.11 // @grant GM_setValue // @grant GM_getValue // ==/UserScript== var shopId = window.location.href.substring(window.location.href.indexOf("obj_type=")+9,window.location.href.indexOf("obj_type=")+11) if (GM_getValue("stock_"+shopId, -1) === -1) { GM_setValue("stock_"+shopId, $('img[src^="http://images.neopets.com/items/"]').length); setTimeout(function() { window.location.reload(); }, 2000+Math.random()*2000); } else { if ($('img[src^="http://images.neopets.com/items/"]').length > GM_getValue("stock_"+shopId)) { alert("Restock on shop "+shopId);; GM_setValue("stock_"+shopId, $('img[src^="http://images.neopets.com/items/"]').length); } else { GM_setValue("stock_"+shopId, $('img[src^="http://images.neopets.com/items/"]').length); setTimeout(function() { window.location.reload(); }, 2000+Math.random()*2000); } }
Half assed half finished but working shell creator.
Dicearoo "Player"
// ==UserScript== // @name Dicearoo "Player" // @namespace http://your.homepage/ // @version 0.1 // @description enter something useful // @author You // @include *neopets.com/games/dicearoo.phtml* // @include *neopets.com/games/play_dicearoo.phtml* // ==/UserScript== var items = document.getElementsByTagName("input"); for(i=0; i < items.length; i++){ if (items[i].getAttribute("type").indexOf("submit") != -1){ if(items[i].getAttribute("value").indexOf("Play") != -1 || items[i].getAttribute("value").indexOf("Roll") != -1 || items[i].getAttribute("value").indexOf("Press") != -1){ items[i].click(); } } }
Edited by Desant, 01 September 2015 - 06:52 AM.