Created
November 27, 2020 17:27
-
-
Save Dennis14e/781fdc7b94177ae097aaa4287d1cf7c1 to your computer and use it in GitHub Desktop.
turnip.exchange sorting script (save as browser bookmark and open on turnip.exchange)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:var parent=document.querySelector("[data-turnip-code]").parentElement;function g_price(e){m=e.textContent.match(/([0-9]+) Bells/);return m!==null?Number(m[1]):0}[].slice.call(parent.children).sort(function(e,t){return g_price(t)-g_price(e)}).forEach(function(e){parent.appendChild(e)}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment