Created
May 19, 2020 17:39
-
-
Save voronianski/e6d06313be7dd7fe03a11a806b65540b to your computer and use it in GitHub Desktop.
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
const data = [ | |
['My Title', 'https://example.org'], | |
// more... | |
]; | |
const min = 1; | |
const max = data.length; | |
for (let i = min; i < max; i++) { | |
document.querySelector('#visual_comparison button').click(); | |
} | |
for (let i = min; i <= max; i++) { | |
const di = i-min; | |
document.querySelector(`#urls #label${i}`).value = data[di][0]; | |
document.querySelector(`#urls #url${i}`).value = data[di][1]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment