Skip to content

Instantly share code, notes, and snippets.

@ogur
Created August 4, 2021 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogur/2905b11d9adb66d170484c3dafffb97d to your computer and use it in GitHub Desktop.
Save ogur/2905b11d9adb66d170484c3dafffb97d to your computer and use it in GitHub Desktop.
login bookmarklet
javascript:(() => {
let event = new Event('input', { bubbles: true });
document.querySelector('[type="email"]').value = 'login';
document.querySelector('[type="email"]').dispatchEvent(event);
event = new Event('input', { bubbles: true });
document.querySelector('[type="password"]').value = 'pass';
document.querySelector('[type="password"]').dispatchEvent(event);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment