Greasy Fork is available in English.

Discussions » Creation Requests

Script(s) for baronsofthegalaxy.com

§
Posted: 21.09.2017

Script(s) for baronsofthegalaxy.com

I was looking to do some data harvesting from baronsofthegalaxy but found the interesting data behind some nasty looking JS. Well above the level I usually deal with.

So if someone would be interested, here is what I was aiming for:

  • A button to activate the script in just one browser tab
  • The script waits until 1 minute after the existing turn timer (top right of the page, you cannot miss it) has run to 0:00
  • It then (re-)navigates to Corporate>Accounting>Buy/Sell
  • And extracts all rows that match the current turn (I can take care of the data being sent somewhere I can work on it outside of the browser)

The hard one (for me) is the third step... (Aside from the detail I only mess with JS in a browser once a year or so ;) )

Post reply

Sign in to post a reply.