Last active
August 29, 2015 13:58
-
-
Save thepeopleseason/9975435 to your computer and use it in GitHub Desktop.
HabitRPG UUID authenticator
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:$('#userId,#input_uuid')[0].value="<your UUID>";$(':password,#input_apiKey')[0].value="<your API Token>";if(window.location.host=='oldgods.net' || window.location.host==''){$(':submit').submit();}else if(window.location.pathname=='/static/api'){$('#input_uuid,#input_apiKey').change()}else{false;} |
If anyone's watching this prior to v1.6.3 of the HabitRPG User Data Display, throw a
$('#dashboard').show();
at the end of the bookmarklet to get a preview of future functionality.
Revision 4: Added an option to autosubmit when testing on a local filesystem.
Showing Drops is now: $('#dropsTodayDashboard').show();
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a new bookmark, replace and with the appropriate values, and save it. When you load the User Data Display or API Documentation pages, you should be able to hit the bookmarklet and be logged in immediately.