Last active
November 18, 2020 02:13
-
-
Save intrnl/bb2514e648af127b0410296c76acab25 to your computer and use it in GitHub Desktop.
Creates Google Forms URL containing answers that have been filled
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
// A teacher told us to submit the same form multiple times as sort of memory strengthening. | |
// I don't like that though, so here's a script that creates a Forms URL that contains the answers I've already filled. | |
location.origin + location.pathname + '?' + | |
Array.from(document.querySelectorAll('input[name^="entry."]')) | |
.filter((el) => el.value) | |
.map((el) => `${el.name}=${encodeURIComponent(el.value)}`) | |
.join('&'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment