Results 1 to 1 of 1

Thread: Gallery Price Checker

  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 10h 15m
    Avg. Time Online
    1m

    Cool Gallery Price Checker

    Hi,

    I saw a few requests for a Gallery Price Checker, so I decided to make one.

    Here is how a gallery would look before:
    (you need an account to see links)

    Here is how a gallery would look after:
    (you need an account to see links)

    Here are some details that you should know before using this script:
    1) You'll need at least one category in your gallery. The script will not work otherwise.
    2) This will only work on your gallery.

    Without a further ado, here you go:

    Code:
    // ==UserScript==
    // @name         Gallery Price Checker Obfuscated
    // @namespace    zer0@clraik
    // @version      0.1
    // @description  Automatically prices your gallery and tells you the net worth of your entire gallery.
    // @author       zer0
    // @match        https://www.neopets.com/gallery/index.phtml
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=neopets.com
    // @grant        GM.xmlHttpRequest
    // ==/UserScript==
    (function(_0x42b203,_0x21420c){var _0x38d33f=_0x1754,_0x101780=_0x42b203();while(!![]){try{var _0x58e9e7=-parseInt(_0x38d33f(0xed))/0x1+-parseInt(_0x38d33f(0xf3))/0x2*(parseInt(_0x38d33f(0xdb))/0x3)+-parseInt(_0x38d33f(0xf8))/0x4*(parseInt(_0x38d33f(0xe0))/0x5)+parseInt(_0x38d33f(0xef))/0x6+parseInt(_0x38d33f(0xf2))/0x7*(-parseInt(_0x38d33f(0xdd))/0x8)+-parseInt(_0x38d33f(0xd7))/0x9+-parseInt(_0x38d33f(0xd1))/0xa*(-parseInt(_0x38d33f(0xe8))/0xb);if(_0x58e9e7===_0x21420c)break;else _0x101780['push'](_0x101780['shift']());}catch(_0x4b8e8c){_0x101780['push'](_0x101780['shift']());}}}(_0x1d86,0x3b30e));async function postForm(_0x2a05b1,_0x53b3c2){var _0x1da30e=_0x1754,_0xfe4a1='';return await GM[_0x1da30e(0xec)]({'method':_0x1da30e(0xeb),'url':_0x2a05b1,'headers':{'Content-type':_0x1da30e(0xdc)},'data':encodeURI(_0x53b3c2),'onload':function(_0x3d351c){_0xfe4a1=_0x3d351c['responseText'];}}),_0xfe4a1;}function _0x1d86(){var _0x1ae0c0=[',\x20\x22quantities\x22:\x20','getElementById','380uETSzh','findIndex','getElementsByTagName','match','center','gallery_form','2091186UTSeSo','innerHTML','<p><b>Price:</b>\x20','name','96513Dcohjg','application/x-www-form-urlencoded','166328AAfgUP','table','https://items.jellyneo.net/tools/price-results/','10tcwNBB','tablestyle','\x20NP','stringify','user_cat_arr\x5c[([0-9]+)\x5c]','push','trim','tbody','333883jbfXZH','{\x22type\x22:\x20\x22item_ids\x22,\x20\x22items\x22:\x20','/each</p><p><b>Total\x20Price:</b>\x20','POST','xmlHttpRequest','439071AYOfpW','large-5\x20columns','2463096sBtguW','getElementsByClassName','html','49YiiIcB','20qDFhSw','price_check_type=sdb&sort=4&sort_dir=asc&show_rarities=0&show_image=1&item_list=','innerText','replaceAll','\x20NP!</h1>','365624PoqPhU','length','Qty:','createElement'];_0x1d86=function(){return _0x1ae0c0;};return _0x1d86();}function isInItemList(_0x522243){return _0x522243==this;}function _0x1754(_0x55f802,_0x313e43){var _0x1d86f1=_0x1d86();return _0x1754=function(_0x17549a,_0xed50bf){_0x17549a=_0x17549a-0xce;var _0x474f73=_0x1d86f1[_0x17549a];return _0x474f73;},_0x1754(_0x55f802,_0x313e43);}async function priceCheckGallery(){var _0xb27a82=_0x1754,_0x8b1d6b=document[_0xb27a82(0xd3)](_0xb27a82(0xd5))[0x0],_0x17958e=document['getElementsByClassName'](_0xb27a82(0xe1))[0x2],_0x22d1c8=document[_0xb27a82(0xd0)](_0xb27a82(0xd6))[_0xb27a82(0xd3)](_0xb27a82(0xde))[0x0][_0xb27a82(0xd3)](_0xb27a82(0xe7))[0x0]['getElementsByTagName']('tr'),_0x471900=[0x0,0x1,0x2],_0x437b29=[],_0x1a400a=[],_0x70cb51=[],_0x451d59=[];for(var _0x41aeba=0x0;_0x41aeba<_0x22d1c8[_0xb27a82(0xf9)];_0x41aeba++){var _0x2a2203=_0x22d1c8[_0x41aeba],_0x28970a=_0x2a2203[_0xb27a82(0xd3)]('td');for(var _0x1dc99e=0x0;_0x1dc99e<_0x28970a['length'];_0x1dc99e++){var _0x247756=_0x28970a[_0x1dc99e];if(_0x41aeba==_0x471900[0x0]){var _0x278399=_0x247756[_0xb27a82(0xf5)][_0xb27a82(0xe6)]();_0x278399!=''&&_0x437b29[_0xb27a82(0xe5)](_0x278399),_0x1dc99e==_0x28970a[_0xb27a82(0xf9)]-0x1&&(_0x471900[0x0]+=0x4);}else{if(_0x41aeba==_0x471900[0x1]){var _0xf86132=_0x247756[_0xb27a82(0xf5)][_0xb27a82(0xe6)]()[_0xb27a82(0xf6)](_0xb27a82(0xfa),'');_0x1a400a[_0xb27a82(0xe5)](_0xf86132),_0x451d59[_0xb27a82(0xe5)](_0x247756),_0x1dc99e==_0x28970a['length']-0x1&&(_0x471900[0x1]+=0x4);}else{if(_0x41aeba==_0x471900[0x2]){var _0x3faa8b=_0x247756[_0xb27a82(0xd3)]('select')[0x0][_0xb27a82(0xda)],_0x4fc3e0=_0x3faa8b[_0xb27a82(0xd4)](_0xb27a82(0xe4)),_0x5712fb=_0x4fc3e0[0x1];_0x70cb51[_0xb27a82(0xe5)](_0x5712fb),_0x1dc99e==_0x28970a['length']-0x1&&(_0x471900[0x2]+=0x4);}}}}}var _0x347f31=_0xb27a82(0xe9)+JSON[_0xb27a82(0xe3)](_0x70cb51)+_0xb27a82(0xcf)+JSON[_0xb27a82(0xe3)](_0x1a400a)+'}',_0x105e40=_0xb27a82(0xf4)+_0x347f31,_0x57ef12=await postForm(_0xb27a82(0xdf),_0x105e40),_0x2b57a5=document[_0xb27a82(0xce)](_0xb27a82(0xf1));_0x2b57a5[_0xb27a82(0xd8)]=_0x57ef12;var _0x4eedf1=_0x2b57a5[_0xb27a82(0xf0)](_0xb27a82(0xde))[0x0],_0x5c7b52=_0x4eedf1[_0xb27a82(0xf0)]('row\x20table-row'),_0x1a3bdb=0x0;for(const _0x108bf6 of _0x5c7b52){var _0x208b46=_0x108bf6[_0xb27a82(0xf0)](_0xb27a82(0xee))[0x0][_0xb27a82(0xd3)]('a')[0x0][_0xb27a82(0xf5)][_0xb27a82(0xe6)](),_0x1b5d60=_0x108bf6[_0xb27a82(0xf0)]('large-2\x20columns')[0x0][_0xb27a82(0xf5)],_0x5f5922=_0x437b29[_0xb27a82(0xd2)](isInItemList,_0x208b46);if(_0x5f5922!=-0x1){var _0x5d7ea6=new Number(_0x1b5d60['replace'](_0xb27a82(0xe2),'')[_0xb27a82(0xe6)]())*new Number(_0x1a400a[_0x5f5922]);_0x1a3bdb+=_0x5d7ea6,_0x451d59[_0x5f5922][_0xb27a82(0xd8)]=_0x451d59[_0x5f5922][_0xb27a82(0xd8)]+(_0xb27a82(0xd9)+_0x1b5d60+_0xb27a82(0xea)+_0x5d7ea6+_0xb27a82(0xe2));}}_0x8b1d6b[_0xb27a82(0xd8)]+='<h1>Your\x20gallery\x27s\x20total\x20worth\x20is\x20'+_0x1a3bdb+_0xb27a82(0xf7);}await priceCheckGallery();

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

    Shawn (11-24-2022),Slowpoke (11-26-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
  •