Skip to content

Instantly share code, notes, and snippets.

View yokoleia's full-sized avatar

Rab Dawanincura yokoleia

View GitHub Profile
@yokoleia
yokoleia / convert.py
Last active November 25, 2020 12:03 — forked from michaelosthege/convert.py
Mass Convert MP4/AVI clips to GIF with a multithreaded Python function, using a variable to set number of threads required.
import imageio
import os, sys
import glob
import threading
import time
class TargetFormat(object):
GIF = ".gif"
MP4 = ".mp4"
AVI = ".avi"
@yokoleia
yokoleia / reddit-masscommentdelete.js
Created February 5, 2019 01:12
Reddit Mass Comment Delete
// go to old.reddit.com/user/me/comments
// paste into the console
// NOTE: this will delete all comments from page 2 to n.
// If there are less than 1 page worth of comments, or
// once all those comments are deleted, refresh, remove line 7 and re-run!
a = setInterval(
function () {
document.getElementsByClassName("ListingPagination__navButton")[1].click();
var elem = document.getElementsByClassName("CommentListing__comment");
for (var i = 0; i < 25; i++) {