A few days ago someone asked about a stake all button for hive-engine. Nobody there did anything of the sort so I decided to take it upon myself to help them and create a small little program in order to get the job done. Along with that, engine hasn't updated the url for the scot api on https://hive-engine.com so anyone wants to get data from the scot apis can't do so. The main use of that would be claiming tokens when they have less than 1 of it(after that point, scot auto claims them).
For now you can find the stake all program over at: https://cdn.rishipanthee.com/enginestakeall.html (REMEMBER THIS STAKES EVERYTHING YOU HAVE THAT CAN BE STAKED, IF YOU WANT TO SELL THEM LATER YOU WILL HAVE TO UNSTAKE THEM AND WAIT THE TIME) and the claim all program at https://cdn.rishipanthee.com/engineclaimall.html.
Initially I was thinking of adding an active key field onto the site as well so that users could claim using their key right on the site, but I decided against it because if anything happened to their keys, I wouldn't want it to be me in any way. Unless I say so, if you have to enter your keys directly on my site, IT WAS NOT MADE BY ME BE CAREFUL ON IT. You should be using either hivesigner or hive keychain(preferred).
The pages look ugly as hell because its just HTML with no css at all, but who cares about how well it looks right? It does the job just fine.
Writing small little HTML ui's has been nice. I can't make anything fancy like @cadawg does, but when you need no styling and just want it to get to the point, I can make them work.
How it functions under the hood(high level overview)
Creating the stake all program was incredibly easy. All I had to get all the tokens and seeing which can be staked. I didn't properly write this and it will break once there are more than 1,000 tokens since I only look at the top 1000, but thats a problem for another day. Then I fetch the users' balance. Anything that has a non 0 balance and is stake-able gets put into a list of tokens to stake. Once all that is done, a hivesigner url or hive keychain popup is created for you to sign to transaction to stake them all. This is the only time you can view the tokens and how much you are staking.
The program to claim all was very similar. Using scot's api (https://scot-api.hive-engine.com/@rishi556?hive=1) I can get user's pending balances. I just take a look for whatever has a positive balance and add it to a list of tokens to claim. Then a hivesigner url or a keychain popup is crated to do the signing.
All simple stuff that I hope ends up helping people out.