Skip to content

Instantly share code, notes, and snippets.

@AyHa1810
AyHa1810 / appeal-playlist-dl.js
Last active April 10, 2024 16:40
Save youtube links of all the videos in a terminated playlist into a text file
// Save youtube links of all the videos in a terminated playlist into a text file
// Open your playlist appeal page, go to the "Look at your content" tab, open inspect element,
// paste this code in the console and press enter.
// Gets all the videos from the video list
var list = $x("/html/body/yttou-dialog/ytcp-dialog/tp-yt-paper-dialog/div[2]/div/yttou-guided-resolution/div[2]/yttou-guided-resolution-playlist-review-step/div[2]/a/@href");
// funtion that creates a text file in memory and downloads
// source: https://stackoverflow.com/a/18197341
function download(filename, text) {
@AyHa1810
AyHa1810 / httrack.sh
Created February 28, 2024 06:31
HTTrack website downloader script with optimized options i guess, best for downloading static pages. idk how dynamic pages would work
# Downloads the site from given link using HTTrack Website Copier in the PWD folder
# $ sudo apt install httrack
# options set according to AyHa1810's preferations
link=
httrack -i \
-r9999 -%e0 -A3145728 -%c10 \
-c8 -R4 -T240 \
-%P -nt \
-N0 -K0 -x -%x -%q0 -o -X\
-b1 -u1 -j1 -s2 -%k -%s -%u \