PDA

View Full Version : Auto Bless Script



Zer0
11-10-2022, 04:17 PM
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.


// ==UserScript==
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
// ==/UserScript==
var _0x540be=_0x1e80;(function(_0x491822,_0x2cd642){va r _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\x2 0Earth\x20Faerie',_0x540be(0xf3),_0x540be(0xfe),_0 x540be(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,0x1 f4);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','812236vwn iEK','8zxVhjy','Bless','click','invitem-submit','item-img','select','getElementsByClassName','grid-item','2350386GzpciS','Weak\x20Bottled\x20Fire\x20 Faerie','getElementsByTagName','attributes','invIt emDesc','innerText','Weak\x20Bottled\x20Air\x20Fae rie','value','xml[Only registered and activated users can see links]','responseText','leng th','4034943GshMyh','Weak\x20Bottled\x20Light\x20F aerie','reload','1020985dXYaPV','iteminfo_select_a ction','Weak\x20Bottled\x20Water\x20Faerie','selec tedIndex','getElementById'];_0x2d5c=function(){return _0x394bad;};return _0x2d5c();}function _0x1e80(_0x53c612,_0x39751d){var _0x2d5cde=_0x2d5c();return _0x1e80=function(_0x1e8024,_0xe5dee8){_0x1e8024=_0 x1e8024-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);r eturn;}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 howdy, 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!!!



// ==UserScript==
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
// ==/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','getEl ementsByClassName','iteminfo_select_action','grid-item','attributes','includes','180570xRTZJV','No\x 20stamps\x20left\x20to\x20add\x20to\x20album','neo StampCollection','split','getElementById','reload' ,'1072bMoBWh','752240AJJeDk','2290VpzxBZ','innerHT ML','No\x20Stamp','length','GET','getElementsByTag Name','errorOuter','options','Skipping\x20','selec t','4084893vjKiQO','log','It\x20is\x20already\x20i n\x20the\x20stamp\x20album!\x20Updating\x20stamp\x 20in\x20local\x20storage...','innerText','html','t able','alt','content','Stamp','invItemDesc','[Only registered and activated users can see links] ://[Only registered and activated users can see links]','444uTBTan','push','click ','setItem','href','createElement','21WNjCay','Sta mp\x20Album','responseText','.\x20Already\x20in\x2 0the\x20stamp\x20album','getItem','img','selectedI ndex','14366510rYShaU','4764NaQvAu'];_0x28dd=function(){return _0x9614d2;};return _0x28dd();}async function accessPage(_0x52b666){var _0x172f80=_0x17c8,_0x3917c2='';return await GM['xml[Only registered and activated users can see links]']({'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(putIntoStampAl bum,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=_0 x17c832-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);re turn;}var _0x42bed4=[];localStorage[_0x248e50(0x103)](_0x248e50(0x112))==null?(_0x42bed4=await getStampCollection(),console['log'](_0x42bed4),localStorage['setItem']('neoStampCollection',_0x42bed4)):_0x42bed4=localS torage[_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)+_0 x12b4d5),_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));}cons ole[_0x248e50(0xef)](_0x248e50(0x111));}getAllStampsInInventory();

howdy
11-10-2022, 05:58 PM
would this be easy to convert to a auto book reading script or a stamp adding script?

Zer0
11-10-2022, 07:08 PM
would this be easy to convert to a auto book reading script or a stamp adding script?

Yeah it would be easy. For book, you'll have to check if the book is already read though and if so, skip it. I am not 100% sure on how stamps work exactly. Can you have duplicates of a stamp? If not, then it'd work similar to books. Do you want both of these? If so, I can make scripts for those based on this.

howdy
11-10-2022, 07:12 PM
Yeah it would be easy. For book, you'll have to check if the book is already read though and if so, skip it. I am not 100% sure on how stamps work exactly. Can you have duplicates of a stamp? If not, then it'd work similar to books. Do you want both of these? If so, I can make scripts for those based on this.

I would most like stamps but yes that would be awesome! You can't have duplicate stamps in your album
books are also complicated bc they won't read books that have names that are multiples of the number of characters in the pets name, and you have to change the language of the site to read them. So not sure how hard that is to encorporate...
you're the best!

Zer0
11-10-2022, 07:14 PM
I would most like stamps but yes that would be awesome! You can't have duplicate stamps in your album
books are also complicated bc they won't read books that have names that are multiples of the number of characters in the pets name, and you have to change the language of the site to read them. So not sure how hard that is to encorporate...
you're the best!

Ah yes. I forgot the complication of books. Damn it. I can work around that but would be more work. I will update this soon for stamps and will let you know when it is ready.

Zenitsu
11-10-2022, 10:59 PM
You must spread some Reputation around before giving it to Zer0 again.

Darn! I'll get back to this, but this is awesome! Thank you for all the new scripts! :D

Zer0
11-11-2022, 07:53 PM
As requested by howdy I've updated the thread with a script that does auto stamp album.

howdy
11-11-2022, 11:37 PM
YYYEEEESSSSS THANK YOU YOU'RE THE BEST! out of rep today but will be back to rep tomorrow <3

---------- Post added at 09:37 PM ---------- Previous post was at 09:08 PM ----------

just used it - working great! thanks again!

howdy
11-19-2022, 07:26 PM
!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!!!

I'm a dumbass and just accidentally added a 30m np stamp that I was going to try to sell to my album on a non-stamp account bc I forgot i had this script installed :') I'm a dumbass. I know.
Zer0, it might be cool to add a button on the page to start script running instead of having it run in the inventory automatically. Or maybe people can just be less stupid than me but whatever. lol

Zer0
11-19-2022, 10:23 PM
!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!!!

I'm a dumbass and just accidentally added a 30m np stamp that I was going to try to sell to my album on a non-stamp account bc I forgot i had this script installed :') I'm a dumbass. I know.
Zer0, it might be cool to add a button on the page to start script running instead of having it run in the inventory automatically. Or maybe people can just be less stupid than me but whatever. lol


Oops. I forgot that people sold stamps. I will add a note of that for now and maybe I will tweak the script soon-ish so it doesn't auto add.

boredguy
02-24-2023, 10:57 PM
Can you make another script that reads books in the inventory?

rodelicious
04-19-2023, 12:23 PM
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.


// ==UserScript==
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
// ==/UserScript==
var _0x540be=_0x1e80;(function(_0x491822,_0x2cd642){va r _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\x2 0Earth\x20Faerie',_0x540be(0xf3),_0x540be(0xfe),_0 x540be(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,0x1 f4);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','812236vwn iEK','8zxVhjy','Bless','click','invitem-submit','item-img','select','getElementsByClassName','grid-item','2350386GzpciS','Weak\x20Bottled\x20Fire\x20 Faerie','getElementsByTagName','attributes','invIt emDesc','innerText','Weak\x20Bottled\x20Air\x20Fae rie','value','xml[Only registered and activated users can see links]','responseText','leng th','4034943GshMyh','Weak\x20Bottled\x20Light\x20F aerie','reload','1020985dXYaPV','iteminfo_select_a ction','Weak\x20Bottled\x20Water\x20Faerie','selec tedIndex','getElementById'];_0x2d5c=function(){return _0x394bad;};return _0x2d5c();}function _0x1e80(_0x53c612,_0x39751d){var _0x2d5cde=_0x2d5c();return _0x1e80=function(_0x1e8024,_0xe5dee8){_0x1e8024=_0 x1e8024-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);r eturn;}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 howdy, 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!!!



// ==UserScript==
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
// ==/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','getEl ementsByClassName','iteminfo_select_action','grid-item','attributes','includes','180570xRTZJV','No\x 20stamps\x20left\x20to\x20add\x20to\x20album','neo StampCollection','split','getElementById','reload' ,'1072bMoBWh','752240AJJeDk','2290VpzxBZ','innerHT ML','No\x20Stamp','length','GET','getElementsByTag Name','errorOuter','options','Skipping\x20','selec t','4084893vjKiQO','log','It\x20is\x20already\x20i n\x20the\x20stamp\x20album!\x20Updating\x20stamp\x 20in\x20local\x20storage...','innerText','html','t able','alt','content','Stamp','invItemDesc','[Only registered and activated users can see links] ://[Only registered and activated users can see links]','444uTBTan','push','click ','setItem','href','createElement','21WNjCay','Sta mp\x20Album','responseText','.\x20Already\x20in\x2 0the\x20stamp\x20album','getItem','img','selectedI ndex','14366510rYShaU','4764NaQvAu'];_0x28dd=function(){return _0x9614d2;};return _0x28dd();}async function accessPage(_0x52b666){var _0x172f80=_0x17c8,_0x3917c2='';return await GM['xml[Only registered and activated users can see links]']({'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(putIntoStampAl bum,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=_0 x17c832-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);re turn;}var _0x42bed4=[];localStorage[_0x248e50(0x103)](_0x248e50(0x112))==null?(_0x42bed4=await getStampCollection(),console['log'](_0x42bed4),localStorage['setItem']('neoStampCollection',_0x42bed4)):_0x42bed4=localS torage[_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)+_0 x12b4d5),_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));}cons ole[_0x248e50(0xef)](_0x248e50(0x111));}getAllStampsInInventory();


Hey Zero, any chance you can make it so that we can select the pet we want to apply the bless to?

metawin
06-26-2023, 08:52 PM
How does the script work? I install it and it only click the Bottled Faerie in my inventory but dosen't chose any pets,or we should chose the pet by ourself?

Bat
06-26-2023, 09:22 PM
How does the script work? I install it and it only click the Bottled Faerie in my inventory but dosen't chose any pets,or we should chose the pet by ourself?

The code appears to select the first pet in the drop down list to perform the blessing, but the portion that submits the request to the server is unable to fully execute because the code immediately follows that with a page refresh that cancels the request. In the code portion of the user script, replace:


location[_0xaa0ebd(0xff)]()

with:


setTimeout(function () { location.reload(); }, 2000)

and the script should slow down long enough to let the blessing get through.

metawin
06-26-2023, 10:12 PM
The code appears to select the first pet in the drop down list to perform the blessing, but the portion that submits the request to the server is unable to fully execute because the code immediately follows that with a page refresh that cancels the request. In the code portion of the user script, replace:


location[_0xaa0ebd(0xff)]()

with:


setTimeout(function () { location.reload(); }, 2000)

and the script should slow down long enough to let the blessing get through.

Thank you! I'll try it later

Hall
07-13-2023, 03:40 PM
This works wonderfully, unfortunately since you can't choose the pet to apply the blessings I can't use it to it's full potential.