Skip to content

Instantly share code, notes, and snippets.

@DeeeeLAN
DeeeeLAN / disable-new-reddit.js
Created March 9, 2024 05:20
Disable New Reddit
// Load into hyperweb as a custom enhancement
window.location.href = window.location.href.replace("www.reddit.com", "old.reddit.com")
@DeeeeLAN
DeeeeLAN / case_insensitive_fix.py
Created February 22, 2024 04:53
Fix filenames on a case-sensitive filesystem that would cause collisions on a case-insensitive system (useful for syncthing between Linux and macOS, for example)
import os
import collections
import sys
def rename_case_insensitive_duplicates(directory):
count = 0
for dirpath, dirs, files in os.walk(directory):
# Create dictionaries for filenames and dirnames
filenames = collections.defaultdict(list)
dirnames = collections.defaultdict(list)
@DeeeeLAN
DeeeeLAN / disable-youtube-shorts.js
Last active March 9, 2024 05:27
Disable YouTube Shorts and New Reddit
// Redirect from shorts to regular youtube player
window.location.href = window.location.href.replace("shorts/", "watch?v=")