Skip to content

Instantly share code, notes, and snippets.

@nailuoGG
Last active August 21, 2020 03:00
Show Gist options
  • Save nailuoGG/b63084e09b11d3aa75ca92de6c62d172 to your computer and use it in GitHub Desktop.
Save nailuoGG/b63084e09b11d3aa75ca92de6c62d172 to your computer and use it in GitHub Desktop.
// open https://leetcode.com/problemset/top-100-liked-questions/
// set pageSize 100 rows per page.
// run code below
// then run `copy(a)` in console
// Top Problems in Your Clipboard!
Array.from(document.querySelectorAll("tbody.reactable-data > tr div > a")).map(it=>({
title:it.innerText,
link: it.baseURI
})).map(it=>`- [ ] [[${it.link}][${it.title}]]`).join(`
`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment