Created
July 3, 2020 03:26
-
-
Save ver-1000000/1967af560d9b2af75524639bbe794b0c to your computer and use it in GitHub Desktop.
`chrome://history/?q=hoge`の履歴一覧から、URLとページタイトルの一覧をするやつ
This file contains hidden or 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
h = []; | |
n = ({ nextElementSibling: e }) => { if (e) { e.scrollIntoView(); h.push((a => `${a.href} ${a.innerText}`)(e.shadowRoot.querySelector('a'))); setTimeout(() => n(e), 100); } else { console.log(h.filter((x, i) => h.indexOf(x) == i).sort().join('\n')); } }; | |
n(document.querySelector("#history-app").shadowRoot.querySelector("#history").shadowRoot.querySelector("history-item")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment