ensingm2 / SteamMonsterGameScript

A Javascript automator for the 2015 Summer Steam Monster Minigame
78 stars 29 forks source link

Add script name and version number to breadcrumbs #83

Closed arpsmack closed 9 years ago

arpsmack commented 9 years ago

Minor change that adds the name and version of the script in the upper right corner on the same line as the breadcrumbs. It will only work if the script is installed as a userscript as it relies on the GM_info object being defined.

ensingm2 commented 9 years ago

Before I merge into master, please make sure the script still works without running Userscript. There are still a lot of people running the script by just copy-pasting the raw javascript.

You likely just need to move your relevant code into the 'if(typeof unsafeWindow != 'undefined')' block of code.

I'd do it for you, but I'm working on my own branch at the moment.

arpsmack commented 9 years ago

Sorry, I didn't realize I couldn't check for the presence of GM_info that way. I fixed the check and tested it without running it as a userscript.

ensingm2 commented 9 years ago

No worries, and looks good!