Skip to content

Instantly share code, notes, and snippets.

@alane019
alane019 / clear-watch-later-playlist.js
Last active January 18, 2025 21:42
Delete remove all videos from Youtube "Watch Later" playlist (working as of 12/14/2020)
// This script can be used to clear all videos from youtube's built-in "watch later" playlist which has a limit of 5,000 videos.
// Without this, you would need to click the remove button on each video in the list.
// Youtube made changes recently that caused errors for a previously working script.
// Script written by: janthedeveloper (https://github.com/JanTheDeveloper)
// Bookmark wrapper added by: shelldonhull (https://github.com/sheldonhull)
// Full conversation here: https://gist.github.com/astamicu/eb351ce10451f1a51b71a1287d36880f#file-readme-md
// 1. Save the javascript text below as a bookmark in google chrome(Simply replace the URL field in any existing bookmark, and give the bookmark any name)
@giuliano-macedo
giuliano-macedo / wpp_video_splitter.py
Last active September 24, 2022 04:08
Split video using ffmpeg to fit WhatsApp status
from subprocess import getstatusoutput as shell
from subprocess import Popen,PIPE,STDOUT
import shlex
import re
import argparse
import os
from tqdm import tqdm
from math import ceil,log10
def get_video_length(fname):