Last active
June 7, 2023 07:52
-
-
Save ErgEnn/f7fc583841bd12cba164e3e820a72f1d to your computer and use it in GitHub Desktop.
Autofill bookmarklet. Make a bookmark with given JS as URL. Clicking on it will fill focused textbox (i.e. Swagger Authorize) with value specified specified in `e.value="THIS TEXT WILL BE INSERTED"'` quotes.
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:(function(){var e=document.activeElement,t="THIS TEXT WILL BE INSERTED";Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set.call(e,t),e.dispatchEvent(new Event("input",{bubbles:!0}))})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment