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
// ==UserScript== | |
// @name Extract TikTok Comments | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-29 | |
// @description Extracts TikTok Comments | |
// @author Rangsk | |
// @match https://www.tiktok.com/@rangsk.wordle/video/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tiktok.com | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Extract YouTube Comments | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-29 | |
// @description Extract YouTube Comments | |
// @author Rangsk | |
// @match https://www.youtube.com/watch* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant none | |
// ==/UserScript== |
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 | |
def edl_to_youtube_chapters(edl_filepath): | |
youtube_chapters = [] | |
with open(edl_filepath, 'r') as edl_file: | |
for line in edl_file: | |
if line.strip() and line[0].isdigit(): | |
time_start = line.split()[4] | |
hours, minutes, seconds = time_start.split(':')[0:3] |
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
from PIL import Image | |
import glob | |
import os | |
def resize_and_center_image(input_image_path, output_image_path): | |
# Open the input image | |
img = Image.open(input_image_path) | |
# Calculate the new height preserving the aspect ratio |
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 datetime | |
def create_folders(): | |
# Get current date and time | |
now = datetime.datetime.now() | |
# Use current date if it's before noon, otherwise use tomorrow's date | |
date_to_use = now.date() if now.hour < 12 else now.date() + datetime.timedelta(days=1) |
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
// ==UserScript== | |
// @name SudokuPad Page Marker Compatibility | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Allows the use of the Page Marker Chrome extension with SudokuPad | |
// @author Rangsk | |
// @match *://sudokupad.app/* | |
// @match *://beta.sudokupad.app/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Redirect crackingthecryptic to sudokupad | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Redirects crackingthecryptic puzzle URLs to sudokupad | |
// @author Rangsk | |
// @match *://app.crackingthecryptic.com/sudoku/* | |
// @match *://test.crackingthecryptic.com/sudoku/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @run-at document-start |
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
// ==UserScript== | |
// @name Wordle Day Number | |
// @namespace http://tampermonkey.net/ | |
// @version 0.5 | |
// @description Add the day number to the Wordle title. | |
// @author Rangsk | |
// @match https://www.nytimes.com/games/wordle/index.html | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=nytimes.com | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Fpuzzles-ImExGivens | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Modifies the "New Grid" popup to include an entry to paste a string of givens. | |
// Only valid digits that can be placed in the grid (based on the size) will be placed, | |
// any other character will be ignored. | |
// Supports sizes 10+ as well, using the characters (upper and lower case) A, B, ...G to | |
// represent 10, 11, ...16 respectively. | |
// Export current givens by running the exportGivens() command in the console. |
NewerOlder