Skip to content

Instantly share code, notes, and snippets.

View Vocaned's full-sized avatar
🐦‍⬛

voc Vocaned

🐦‍⬛
View GitHub Profile
// ==UserScript==
// @name Youtube Experiment Overrides
// @version 1.1.0
// @description Generic experiment override userscript, configurable via script storage.
// @author voc
// @namespace https://github.com/Vocaned
// @match https://www.youtube.com/*
// @grant GM_getValue
// @grant GM_setValue
// @grant unsafeWindow
// ==UserScript==
// @name Twitter age bypass
// @version 1.0.3
// @description A simple userscript for bypassing Twitter media age verification
// @author voc
// @namespace https://github.com/Vocaned
// @homepageURL https://gist.github.com/Vocaned/6bb15f28530194f25dfff7ae8327846e
// @downloadURL https://gist.github.com/Vocaned/6bb15f28530194f25dfff7ae8327846e/raw/twitter-age-bypass.user.js
// @match https://x.com/*
// @match https://twitter.com/*
#!/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 October 27, 2025 15:19
#!/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 January 28, 2026 09:35
Picard tagger scripts
$set(_tmpartist,$if2($getmulti(%artists%, 0),%artist%))
$if($in($lower(%albumartist%),$lower(%_tmpartist%)),%_tmpartist%,$if2(%albumartist%,%albumartistsort%))/
[$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.settimeout(5)
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 = {
#!/bin/python
from mutagen.flac import FLAC
from pathlib import Path
import re
for p in Path('..').glob('**/*'):
if not p.is_file() or p.suffix != '.flac':
continue
lrcp = p.with_suffix('.lrc')