This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load into hyperweb as a custom enhancement | |
window.location.href = window.location.href.replace("www.reddit.com", "old.reddit.com") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Redirect from shorts to regular youtube player | |
window.location.href = window.location.href.replace("shorts/", "watch?v=") |