Created
August 4, 2021 07:54
-
-
Save ogur/2905b11d9adb66d170484c3dafffb97d to your computer and use it in GitHub Desktop.
login bookmarklet
This file contains 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:(() => { | |
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