Skip to content

Instantly share code, notes, and snippets.

@sergiopereiraTT
Created April 22, 2014 22:23
Show Gist options
  • Save sergiopereiraTT/11196486 to your computer and use it in GitHub Desktop.
Save sergiopereiraTT/11196486 to your computer and use it in GitHub Desktop.
Bookmarklet for quick login
javascript:(function(){var d=document;s=d.querySelector;s.call(d,'input[name*=email]').value='[email protected]'; s.call(d,'input[name*=pass]').value='SECRETPASSWORDHERE';s.call(d,'button[id*=login],input[type=button][id*=login],.btn-login').click(); }())
@dirkk0
Copy link

dirkk0 commented Mar 3, 2021

This is great!
Another way to do this would be to create a function 'doit()' in a general js import and call this from the bookmark like:
<a href="javascript:doit();">doit</a>

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