Created
January 9, 2019 11:37
-
-
Save NoahBres/243071c9832aa4f4c8e981257f2bf4e0 to your computer and use it in GitHub Desktop.
Selects by items in Chrome's history checklist.
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 items = document.querySelector('history-app').shadowRoot.getElementById("main-container").querySelector("iron-pages").querySelector("history-list").shadowRoot.querySelector("iron-list").querySelectorAll("history-item") | |
for (const item of items) { console.log(item.shadowRoot.getElementById("checkbox").shadowRoot.getElementById("checkbox").click()) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment