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 anchors = Array.from(document.getElementsByTagName('a')); | |
const links = anchors.map(anchor => anchor.href.toString()); | |
const pdfs = links.filter(link => link.endsWith('.pdf')); | |
let clipboardText = ''; | |
for (const pdf of pdfs) { | |
clipboardText += `curl '${pdf}' -Lo '${pdf.substr(pdf.lastIndexOf('/') + 1)}'\n` | |
} | |
setTimeout(() => navigator.clipboard.writeText(clipboardText), 1000) |
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
.blog-theme-switcher{ | |
animation: rotate 5s infinite; | |
} | |
@keyframes rotate { | |
0% {transform: rotate(0deg);} | |
50% {transform: rotate(240deg);} | |
100% {transform: rotate(0deg);} | |
} |