Skip to content

Instantly share code, notes, and snippets.

View Vocaned's full-sized avatar
🐦‍⬛

Vocaned Vocaned

🐦‍⬛
View GitHub Profile
// ==UserScript==
// @name Reddit raw media
// @version 1.0.0
// @description Replace reddit media embeds with the raw files
// @match https://*.reddit.com/media
// @author voc
// @grant none
// @run-at document-start
// ==/UserScript==
// ==UserScript==
// @name Youtube Experiment Overrides
// @version 1.0.3
// @description Generic experiment override userscript
// @author voc
// @namespace https://github.com/Vocaned
// @match https://www.youtube.com/*
// @grant none
// @run-at document-start
// @require https://raw.githubusercontent.com/cyfung1031/userscript-supports/e0f448b8865a96e59f673d481cde2583295123ad/library/ytConfigHacks.js#sha256=fEp1NkJ5HYRTPVSDqcHXKDReJTaGTuMUOFFqXs1hJ/w=
// ==UserScript==
// @name Twitter age bypass
// @version 1.0.2
// @description A simple userscript for bypassing Twitter media age verification
// @author voc
// @namespace https://github.com/Vocaned
// @downloadURL https://gist.github.com/Vocaned/6bb15f28530194f25dfff7ae8327846e/raw/twitter-age-bypass.user.js
// @match https://x.com/*
// @match https://twitter.com/*
// @grant none
#!/bin/env python3
# Lists each entry of a spotify list (playlist/album/artist), for yt-dlp, scrobbling etc.
from bs4 import BeautifulSoup
import re
import requests
import sys
import json
if len(sys.argv) < 2 or not sys.argv[1].startswith('https://open.spotify.com/'):
print(f'{sys.argv[0]} [spotify url]')
@Vocaned
Vocaned / crt.sh
Last active August 22, 2025 20:42
#!/bin/sh
# crt.sh api is very unreliable, don't rely on this in any scripts
if [ -z "$1" ]; then
echo "Usage: $0 <domain>"
exit 1
fi
data=$(curl -s "https://crt.sh/?q=$1&output=json" | jq -r '
.[] |
@Vocaned
Vocaned / filename.ptsp
Last active August 6, 2025 07:49
Picard tagger scripts
$set(_tmpartist,$if2($getmulti(%artists%, 0),%artist%))
$if($in($lower(%albumartist%),$lower(%_tmpartist%)),%_tmpartist%,%albumartist%)/
[$if2(%originaldate%,%date%)] %album%/
$num(%tracknumber%,2) %title%
#!/bin/python
from pathlib import Path
from mutagen.flac import FLAC
from mutagen import MutagenError
for flac_file in Path('..').glob('**/*.flac'):
base_name = flac_file.stem
lrc_file = flac_file.with_name(base_name + '.lrc')
unsynced_lrc_file = flac_file.with_name(base_name + '.txt')
#!/bin/bash
# ./download_workshop.sh [steam workshop URL]
set -e
workshop_id=$(echo "$1" | grep -Po 'steamcommunity\.com/(sharedfiles|workshop)/filedetails/.*id=\K(\d+)')
if [ -z "$workshop_id" ]; then
echo "Could not extract ID from given URL"
exit 1
fi
import socket
import struct
import json
class IPC(socket.socket):
def __init__(self, socket_path: str, client_id: str) -> None:
self.CLIENT_ID = client_id
super().__init__(socket.AF_UNIX, socket.SOCK_STREAM)
self.connect(socket_path)
#!/bin/python
import requests
from urllib.parse import urlencode
from mutagen.flac import FLAC
from pathlib import Path
from math import floor
token = ''
url = 'https://apic-desktop.musixmatch.com/ws/1.1/macro.subtitles.get'
headers = {