Created
April 3, 2020 09:05
-
-
Save liuderchi/a20952af0b26eca37ce9afab6875c365 to your computer and use it in GitHub Desktop.
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
// Example Page: https://github.com/liuderchi/atom-i18n/pulls?q=is%3Apr+is%3Aclosed | |
var res = [ | |
...document.querySelectorAll("div.Box-row.js-navigation-item.js-issue-row") | |
] | |
.map(rowEl => { | |
const title = rowEl.querySelector( | |
"a.link-gray-dark.v-align-middle.no-underline.h4.js-navigation-open" | |
).textContent; | |
const num = rowEl | |
.querySelector("span.opened-by") | |
.textContent.trim() | |
.slice(0, 4); | |
return ` - ${num} ${title}`; | |
}) | |
.join("\n"); | |
window.prompt("Copy to clipboard: cmd+C, Enter", res); | |
// above code as chrome bookmarklet (https://mrcoles.com/bookmarklet/) | |
// -> javascript:(function()%7Bvar res %3D %5B...document.querySelectorAll("div.float-left.col-9.lh-condensed.p-2")%5D.map(rowEl %3D> %7Bconst title %3D rowEl.querySelector("a.link-gray-dark.v-align-middle.no-underline.h4.js-navigation-open").textContent%3Bconst num %3D rowEl.querySelector("span.opened-by").textContent.trim().slice(0%2C 4)%3Breturn %60 - %24%7Bnum%7D %24%7Btitle%7D%60%3B%7D).join("%5Cn")%3Bwindow.prompt("Copy to clipboard%3A cmd%2BC%2C Enter"%2C res)%7D)() | |
/* | |
- #258 Fix | |
- #257 Fix | |
- #256 Fix | |
- #190 chore(md): introduce prettier:markdown in precommit hook | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment