Skip to content

Instantly share code, notes, and snippets.

@NoahBres
Created January 9, 2019 11:37
Show Gist options
  • Save NoahBres/243071c9832aa4f4c8e981257f2bf4e0 to your computer and use it in GitHub Desktop.
Save NoahBres/243071c9832aa4f4c8e981257f2bf4e0 to your computer and use it in GitHub Desktop.
Selects by items in Chrome's history checklist.
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