[Tool] Divination deck pricecheck

Hello

I wanted to check if I have anything of value in my divination stash but was too lazy to pricecheck 1 by 1 or check which of the "top" cards I have, so I wrote a simple script to help me check it out.

The idea is that you go to poe.ninja divination page and check which of the cards you have in your stash.

To do this, You can use the script manually through dev console (F12 in browser) or use "tampermonkey" browser plugin to have the script run automatically every time you open the poe.ninja cards page.

Hope someone finds it usefull!

(P.S. I know it can be done through PriceInfo as well)




Step one, get the data:


Spoiler

To get the list of cards you have in the stash, you need to log in on the poe page and go to:

https://www.pathofexile.com/character-window/get-stash-items?accountName=[ACCOUNT_NAME]&realm=pc&league=Blight&tabs=0&tabIndex=[TAB_INDEX]

Where [ACCOUNT_NAME] is your account name (sourprise) and [TAB_INDEX] is the position at which you have the divination tab in Blight league, so for me it would be

https://www.pathofexile.com/character-window/get-stash-items?accountName=ImAnEngineer&realm=pc&league=Blight&tabs=0&tabIndex=5

because my tab is at 6th position (nerds start counting from 0). As a result you'll get a bunch of text starting with
`{"numTabs":13,"divinationLayout":{`, keep it for later.



Step two, run the script:

Steps to have it run automatically via tampermonkey:


Spoiler

1. install tampermonkey through extensions for the browser you use
2. create a new script by clicking on the tampermonkey icon in the browser and paste the code from the following file into the new file:
Spoiler

https://github.com/ImAnEngineeer/PoeDivinationDeckPricecheck/blob/master/card-pricecheck.user.js


Tampermonkey will execute the script only on divination page on poe ninja. When you refresh the page, an input field and a button will show on top of the list of the list of cards.

Copy the data you got earlier into the text field and click the button, the script will remove the cards you don't have from the list.


Steps to run the script manually:

Spoiler

1. go to https://poe.ninja/challenge/divinationcards
2. open developer console - F12
3. paste the following javascript into the Console tab:

Spoiler

https://github.com/ImAnEngineeer/PoeDivinationDeckPricecheck/blob/master/card-pricecheck.user.js



You should see an input field and a button on the very bottom of the page.

Copy the data you got earlier into the text field and click the button, the script will remove the cards you don't have from the list.

Last edited by ImAnEngineer#6880 on Oct 2, 2019, 1:07:16 PM
Last bumped on Oct 2, 2019, 12:59:20 PM

Report Forum Post

Report Account:

Report Type

Additional Info