Results 1 to 10 of 16

Thread: Auto Bless Script

Threaded View

  1. #1
    Zer0's Avatar
    Joined
    Oct 2013
    Posts
    79
    Userbars
    2
    Thanks
    18
    Thanked
    115/37
    DL/UL
    13/0
    Mentioned
    2 times
    Time Online
    4d 11h 7m
    Avg. Time Online
    1m

    Cool Auto Bless and Auto Stamp Album Scripts

    Hi,

    I got bored today, so I decided to write another script. Below is a script that opens up all Faerie Bottles in your inventory, and blesses your pet.

    Code:
    // ==UserScript==
    // @name         Auto-Bless Obfuscated
    // @namespace    zer0@clraik
    // @version      0.1
    // @description  Automatically blesses you using all the Bottled Faeries that you have in your inventory.
    // @author       zer0
    // @match        https://www.neopets.com/inventory.phtml
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=neopets.com
    // @grant        GM.xmlHttpRequest
    // ==/UserScript==
    var _0x540be=_0x1e80;(function(_0x491822,_0x2cd642){var _0x3ce393=_0x1e80,_0x522cbd=_0x491822();while(!![]){try{var _0x1e8137=parseInt(_0x3ce393(0xe7))/0x1+parseInt(_0x3ce393(0xe8))/0x2*(-parseInt(_0x3ce393(0xe3))/0x3)+parseInt(_0x3ce393(0xe9))/0x4*(-parseInt(_0x3ce393(0xe2))/0x5)+parseInt(_0x3ce393(0xf2))/0x6+-parseInt(_0x3ce393(0x100))/0x7*(-parseInt(_0x3ce393(0xea))/0x8)+parseInt(_0x3ce393(0xfd))/0x9+-parseInt(_0x3ce393(0xe6))/0xa*(parseInt(_0x3ce393(0x106))/0xb);if(_0x1e8137===_0x2cd642)break;else _0x522cbd['push'](_0x522cbd['shift']());}catch(_0x4eebb1){_0x522cbd['push'](_0x522cbd['shift']());}}}(_0x2d5c,0x39607));const FAERIE_BOTTLE_NAMES=[_0x540be(0xf8),_0x540be(0x105),'Weak\x20Bottled\x20Earth\x20Faerie',_0x540be(0xf3),_0x540be(0xfe),_0x540be(0x102),_0x540be(0xe5)];async function accessPage(_0x2c54fa){var _0x232ef7=_0x540be,_0x4e3efb='';return await GM[_0x232ef7(0xfa)]({'method':'GET','url':_0x2c54fa,'onload':function(_0x76cf34){var _0x3cffc5=_0x232ef7;_0x4e3efb=_0x76cf34[_0x3cffc5(0xfb)];}}),_0x4e3efb;}function doBlessing(){var _0xaa0ebd=_0x540be;if(document[_0xaa0ebd(0x104)](_0xaa0ebd(0xf6))==null){setTimeout(doBlessing,0x1f4);return;}var _0x9223fd=document['getElementById'](_0xaa0ebd(0xf6))['innerText'];if(_0x9223fd!=_0xaa0ebd(0x107)){var _0x3ca722=document['getElementById'](_0xaa0ebd(0x101))[_0xaa0ebd(0xf4)](_0xaa0ebd(0xef))[0x0],_0x417ace=_0x3ca722['options'][0x1][_0xaa0ebd(0xf7)];if(_0x417ace['includes'](_0xaa0ebd(0xeb))){_0x3ca722[_0xaa0ebd(0x103)]=0x1;var _0x25574e=document['getElementsByClassName'](_0xaa0ebd(0xed))[0x0];_0x25574e[_0xaa0ebd(0xec)](),location[_0xaa0ebd(0xff)]();}}}function _0x2d5c(){var _0x394bad=['Weak\x20Bottled\x20Dark\x20Faerie','124718OqSTFR','Loading...','5vqVYbw','5193joCtMC','item-name','Unidentifiable\x20Weak\x20Bottled\x20Faerie','670hIqOXd','279316jQYVmI','78FjQaMk','812236vwniEK','8zxVhjy','Bless','click','invitem-submit','item-img','select','getElementsByClassName','grid-item','2350386GzpciS','Weak\x20Bottled\x20Fire\x20Faerie','getElementsByTagName','attributes','invItemDesc','innerText','Weak\x20Bottled\x20Air\x20Faerie','value','xmlHttpRequest','responseText','length','4034943GshMyh','Weak\x20Bottled\x20Light\x20Faerie','reload','1020985dXYaPV','iteminfo_select_action','Weak\x20Bottled\x20Water\x20Faerie','selectedIndex','getElementById'];_0x2d5c=function(){return _0x394bad;};return _0x2d5c();}function _0x1e80(_0x53c612,_0x39751d){var _0x2d5cde=_0x2d5c();return _0x1e80=function(_0x1e8024,_0xe5dee8){_0x1e8024=_0x1e8024-0xe2;var _0x344118=_0x2d5cde[_0x1e8024];return _0x344118;},_0x1e80(_0x53c612,_0x39751d);}function getAllBottleFaerieItems(){var _0x13a8e9=_0x540be,_0x39485c=document[_0x13a8e9(0xf0)](_0x13a8e9(0xf1));if(_0x39485c[_0x13a8e9(0xfc)]==0x0){setTimeout(getAllBottleFaerieItems,0x1f4);return;}for(var _0x129a0d=0x0;_0x129a0d<_0x39485c[_0x13a8e9(0xfc)];_0x129a0d++){var _0x4fd863=_0x39485c[_0x129a0d][_0x13a8e9(0xf0)](_0x13a8e9(0xe4))[0x0]['innerText'];if(FAERIE_BOTTLE_NAMES['includes'](_0x4fd863)){var _0x573398=document[_0x13a8e9(0xf0)](_0x13a8e9(0xee))[_0x129a0d],_0x14efcd=_0x573398[_0x13a8e9(0xf5)]['data-objid']['value'],_0x5570ca=_0x573398['attributes']['data-itemquantity'][_0x13a8e9(0xf9)];_0x573398[_0x13a8e9(0xec)](),doBlessing();return;}}}getAllBottleFaerieItems();
    EDIT: As requested by @(you need an account to see links), I have made a script based on the Bottled Faerie script to automatically put stamps into your album.

    Just a few things to note:
    1) The first run of this will take longer as it takes time for the script to gather together all the stamps that you already have. After the first run, it will be faster since it is aware of what stamps you already have.
    2) As mentioned by howdy:
    !URGENT NOTE!

    The stamp adding script automatically adds any stamps in your inventory to your stamp album.
    IF YOU ARE USING THIS SCRIPT
    TURN IT OFF AFTER USING
    TO AVOID ACCIDENTALLY ADDING STAMPS
    FROM YOU INVENTORY TO YOUR ALBUM!

    Stamps are not removable from your album once they're added!!!


    Code:
    // ==UserScript==
    // @name         Auto Stamp Album Obfuscated
    // @namespace    zer0@clraik
    // @version      0.1
    // @description  Automatically puts the stamp into your stamp album if it isn't already in.
    // @author       zer0
    // @match        https://www.neopets.com/inventory.phtml
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=neopets.com
    // @grant        GM.xmlHttpRequest
    // ==/UserScript==
    (function(_0x5d5beb,_0x501184){var _0x131a8b=_0x17c8,_0x4a95d7=_0x5d5beb();while(!![]){try{var _0x426f74=parseInt(_0x131a8b(0x110))/0x1+-parseInt(_0x131a8b(0x109))/0x2+parseInt(_0x131a8b(0x107))/0x3*(-parseInt(_0x131a8b(0xe2))/0x4)+-parseInt(_0x131a8b(0xe4))/0x5*(-parseInt(_0x131a8b(0xf9))/0x6)+parseInt(_0x131a8b(0xff))/0x7*(-parseInt(_0x131a8b(0xe3))/0x8)+-parseInt(_0x131a8b(0xee))/0x9+parseInt(_0x131a8b(0x106))/0xa;if(_0x426f74===_0x501184)break;else _0x4a95d7['push'](_0x4a95d7['shift']());}catch(_0x15af65){_0x4a95d7['push'](_0x4a95d7['shift']());}}}(_0x28dd,0x612f9));function _0x28dd(){var _0x9614d2=['item-img','182978vNJaCG','\x20Object\x20ID:\x20','getElementsByClassName','iteminfo_select_action','grid-item','attributes','includes','180570xRTZJV','No\x20stamps\x20left\x20to\x20add\x20to\x20album','neoStampCollection','split','getElementById','reload','1072bMoBWh','752240AJJeDk','2290VpzxBZ','innerHTML','No\x20Stamp','length','GET','getElementsByTagName','errorOuter','options','Skipping\x20','select','4084893vjKiQO','log','It\x20is\x20already\x20in\x20the\x20stamp\x20album!\x20Updating\x20stamp\x20in\x20local\x20storage...','innerText','html','table','alt','content','Stamp','invItemDesc','https://www.neopets.com/stamps.phtml?type=album','444uTBTan','push','click','setItem','href','createElement','21WNjCay','Stamp\x20Album','responseText','.\x20Already\x20in\x20the\x20stamp\x20album','getItem','img','selectedIndex','14366510rYShaU','4764NaQvAu'];_0x28dd=function(){return _0x9614d2;};return _0x28dd();}async function accessPage(_0x52b666){var _0x172f80=_0x17c8,_0x3917c2='';return await GM['xmlHttpRequest']({'method':_0x172f80(0xe8),'url':_0x52b666,'onload':function(_0x14ba17){var _0x4c49c4=_0x172f80;_0x3917c2=_0x14ba17[_0x4c49c4(0x101)];}}),_0x3917c2;}function waitForResult(){var _0x5c1306=_0x17c8,_0x497dac=document['getElementsByClassName'](_0x5c1306(0xea));_0x497dac[_0x5c1306(0xe7)]!=0x0&&(console[_0x5c1306(0xef)](_0x5c1306(0xf0)),getStampCollection()['then'](_0x5d5a4d=>{var _0x45b600=_0x5c1306;console['log']('Updated!'),localStorage[_0x45b600(0xfc)]('neoStampCollection',_0x5d5a4d);}));}function putIntoStampAlbum(){var _0x1fb584=_0x17c8;if(document[_0x1fb584(0x114)](_0x1fb584(0xf7))==null){setTimeout(putIntoStampAlbum,0x1f4);return;}var _0x486ccc=document[_0x1fb584(0x114)]('invItemDesc')[_0x1fb584(0xf1)];if(_0x486ccc!='Loading...'){var _0x5da5cf=document[_0x1fb584(0x114)](_0x1fb584(0x10c))['getElementsByTagName'](_0x1fb584(0xed))[0x0];console[_0x1fb584(0xef)](_0x5da5cf);var _0x178d07=_0x5da5cf[_0x1fb584(0xeb)][0x1][_0x1fb584(0xf1)];if(_0x178d07[_0x1fb584(0x10f)](_0x1fb584(0x100))){_0x5da5cf[_0x1fb584(0x105)]=0x1;var _0x6eb110=document['getElementsByClassName']('invitem-submit')[0x0];_0x6eb110[_0x1fb584(0xfb)](),setTimeout(waitForResult,0x15e),location[_0x1fb584(0xe1)]();}}}function _0x17c8(_0x166f3c,_0x1683cf){var _0x28ddd4=_0x28dd();return _0x17c8=function(_0x17c832,_0x3f3f19){_0x17c832=_0x17c832-0xe1;var _0x29f6fc=_0x28ddd4[_0x17c832];return _0x29f6fc;},_0x17c8(_0x166f3c,_0x1683cf);}async function getStampCollection(){var _0x4f976b=_0x17c8,_0x4e4639=await accessPage(_0x4f976b(0xf8)),_0x4a5353=document[_0x4f976b(0xfe)](_0x4f976b(0xf2));_0x4a5353[_0x4f976b(0xe5)]=_0x4e4639;var _0x19a7eb=_0x4a5353[_0x4f976b(0x10b)](_0x4f976b(0xf5))[0x0][_0x4f976b(0xe9)]('p')[0x2][_0x4f976b(0xe9)]('a'),_0x1adf2f=[];for(const _0x236abb of _0x19a7eb){if(!_0x236abb['outerHTML'][_0x4f976b(0x10f)]('page_id=0')){var _0x466398=await accessPage(_0x236abb[_0x4f976b(0xfd)]);_0x4a5353=document[_0x4f976b(0xfe)](_0x4f976b(0xf2)),_0x4a5353[_0x4f976b(0xe5)]=_0x466398;var _0x293532=_0x4a5353[_0x4f976b(0x10b)](_0x4f976b(0xf5))[0x0][_0x4f976b(0xe9)](_0x4f976b(0xf3))[0x0][_0x4f976b(0xe9)](_0x4f976b(0x104));for(const _0x3eee6b of _0x293532){_0x3eee6b[_0x4f976b(0xf4)]!=_0x4f976b(0xe6)&&_0x1adf2f[_0x4f976b(0xfa)](_0x3eee6b[_0x4f976b(0xf4)]);}}}return _0x1adf2f;}async function getAllStampsInInventory(){var _0x248e50=_0x17c8,_0x3c2260=document['getElementsByClassName'](_0x248e50(0x10d));if(_0x3c2260[_0x248e50(0xe7)]==0x0){setTimeout(getAllStampsInInventory,0xc8);return;}var _0x42bed4=[];localStorage[_0x248e50(0x103)](_0x248e50(0x112))==null?(_0x42bed4=await getStampCollection(),console['log'](_0x42bed4),localStorage['setItem']('neoStampCollection',_0x42bed4)):_0x42bed4=localStorage[_0x248e50(0x103)]('neoStampCollection')[_0x248e50(0x113)](',');for(var _0x5dad29=0x0;_0x5dad29<_0x3c2260[_0x248e50(0xe7)];_0x5dad29++){var _0x36383d=_0x3c2260[_0x5dad29]['getElementsByClassName']('item-name')[0x0][_0x248e50(0xf1)];if(!_0x42bed4['includes'](_0x36383d)&&_0x36383d[_0x248e50(0x10f)](_0x248e50(0xf6))){var _0x41b7b3=document[_0x248e50(0x10b)](_0x248e50(0x108))[_0x5dad29],_0x12b4d5=_0x41b7b3[_0x248e50(0x10e)]['data-objid']['value'];console['log']('Item\x20Name:\x20'+_0x36383d+_0x248e50(0x10a)+_0x12b4d5),_0x41b7b3[_0x248e50(0xfb)](),putIntoStampAlbum(),_0x42bed4[_0x248e50(0xfa)](_0x36383d),localStorage[_0x248e50(0xfc)](_0x248e50(0x112),_0x42bed4);return;}else _0x42bed4[_0x248e50(0x10f)](_0x36383d)&&_0x36383d[_0x248e50(0x10f)](_0x248e50(0xf6))&&console['log'](_0x248e50(0xec)+_0x36383d+_0x248e50(0x102));}console[_0x248e50(0xef)](_0x248e50(0x111));}getAllStampsInInventory();
    Last edited by Zer0; 11-19-2022 at 10:24 PM.

  2. The Following 16 Users Say Thank You to Zer0 For This Useful Post:

    boredguy (02-24-2023),Cookie Tray (11-11-2022),DarkSkies (11-10-2022),Hall (11-19-2022),howdy (11-10-2022),Ice (11-10-2022),kittyray (11-10-2022),Mothman (11-10-2022),Nyanobyte                      (11-11-2022),Peppercorn (11-24-2022),Pidgey (11-10-2022),Shawn (11-20-2022),Synth Salazzle (11-11-2022),Teakwood (11-10-2022),Totodile (11-10-2022),Zenitsu (11-10-2022)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •