Skip to content

Instantly share code, notes, and snippets.

@thepeopleseason
Last active August 29, 2015 13:58
Show Gist options
  • Save thepeopleseason/9975435 to your computer and use it in GitHub Desktop.
Save thepeopleseason/9975435 to your computer and use it in GitHub Desktop.
HabitRPG UUID authenticator
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;}
@thepeopleseason
Copy link
Author

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.

@thepeopleseason
Copy link
Author

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.

@thepeopleseason
Copy link
Author

Revision 4: Added an option to autosubmit when testing on a local filesystem.

@thepeopleseason
Copy link
Author

Showing Drops is now: $('#dropsTodayDashboard').show();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment