Skip to content

Instantly share code, notes, and snippets.

View thunder-coding's full-sized avatar
📖
Studying | Ping only if necessary

Yaksh Bariya thunder-coding

📖
Studying | Ping only if necessary
View GitHub Profile
@thunder-coding
thunder-coding / download-pdfs.js
Last active May 10, 2023 05:36
Download all pdf on page
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)
@thunder-coding
thunder-coding / Articles.css
Created March 5, 2021 03:25
Hashnode Custom CSS
.blog-theme-switcher{
animation: rotate 5s infinite;
}
@keyframes rotate {
0% {transform: rotate(0deg);}
50% {transform: rotate(240deg);}
100% {transform: rotate(0deg);}
}