IGM bookmarklets/scripts

Updated this thread to show my bookmarklets and give a link to where I will put any other scripts I write for IGM.

Import/Export saves:
javascript:(function(){with(document)(head.appendChild(createElement('script')).src='http://pastebin.com/raw.php?i=C1kJemmr')._})();
Adds Import/Export buttons to the save box and a text box. The export save button outputs the code to the text box. The import one brings up a prompt.

Buy 10/100 of a building at a time:
javascript:(function(){with(document)(head.appendChild(createElement('script')).src='http://pastebin.com/raw.php?i=hCTuvzBf')._})();
Adds a drop menu containing all visible buildings and buy 10/buy 100 buttons to the save box. Currently you will need to refresh the page and reload the script after new buildings are unlocked.

If you try to use it to buy a building that is no longer visible then nothing will happen. It also stops buying it if the building is locked while being bought. So don't think about using it to cheat! :P

Short numbers:
javascript:with(document)(head.appendChild(createElement('script')).src='http://pastebin.com/raw.php?i=bZVxKpGH')._
Changes numbers to have k, M etc. Can be customised by setting nums as an array using the letter(s) you want after the powers of 1,000. Must start at 1,000 and go up in powers of 1,000. You can use as many or as few as you want.

"Monotheism is progress of a sort because they're getting nearer the true figure all the time." -C. Hitchens"After all, to the well-organized mind, death is but the next great adventure." -A. Dumbledore"If you want to know what a man's like, take a good look at how he treats his inferiors, not his equals." -S. Black“Confidence is ignorance. If you're feeling cocky, it's because there's something you don't know.” -Foaly the Centaur

"Monotheism is progress of a sort because they're getting nearer the true figure all the time." -C. Hitchens"After all, to the well-organized mind, death is but the next great adventure." -A. Dumbledore"If you want to know what a man's like, take a good look at how he treats his inferiors, not his equals." -S. Black“Confidence is ignorance. If you're feeling cocky, it's because there's something you don't know.” -Foaly the Centaur

You define nums as an array of powers of 1k starting at 1k. You can make it as long or as short as you want. It should just return the original number if it is larger than the highest one in the array allows.

Post edited by Chisako on April 2017

I had a dream my life would beSo different from this hell I'm livingSo different now, from what it seemedNow life has killed the dream I dreamed