Skip to content

Instantly share code, notes, and snippets.

@uahim
uahim / tele5.user.js
Created July 19, 2026 21:15
tele5.user.js 2026
// ==UserScript==
// @name tele5 2026
// @namespace Violentmonkey Scripts!
// @match https://tele5.de/mediathek/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
@uahim
uahim / fuck_tvp_pl.php
Last active June 27, 2026 21:07
fuck tvp - this could work when running on .pl server but I cant test it
<?php
/*
generates an iptv-player friendly m3u8 playlist with most tvp.pl vod channels;
wont work outside of poland because of geoblocking, as of late, but MAY BE
working when run on a server IN poland.
*/
@uahim
uahim / fixapplesubs.sh
Created March 18, 2026 19:05
fix apple subtitles double lines
gawk "!visited[$0]++" FILE | sed "s#^([0-9]{1,}$)#\n\1#g"
@uahim
uahim / calllist.sed
Last active February 11, 2026 18:29
FritzBox Anrufliste xml zu Menschenlesbarem
/Calle.Number>EURE_NUMMER/!d
s#.*<Type>\(.*\)</Type><Caller>\(.*\)</Caller>.*<Date>\(.*\)</Date><Duration>\(.*\)</Duration>#\1: \3 \4 EIN \2#g
s#.*<Type>\(.*\)</Type><Called>\(.*\)</Called>.*<Date>\(.*\)</Date><Duration>\(.*\)</Duration>#\1: \3 \4 AUS \2#g
s#<Calle.*</Port>##g
s#<Count></Count><Path /></Call>##g
# callist zb mit
# fritzBoxShell.sh OnTel GetCallList 7
# holen, dann
# sed -f callist.sed callist.xml | sort
@uahim
uahim / ttml-fix.sed
Created September 2, 2025 18:00
fixes TTML source file before converting them to srt
s/\([begin|end]\)=\"10/\1=\"00/gi
s/\([begin|end]\)=\"11/\1=\"01/gi
@uahim
uahim / spotify_tracklist.js
Last active July 18, 2025 17:56
spotify playlist to plain text list bookmarklet
// this will scrape a button attribute and convert
// More options for The Wounds We Bled by Heather Nova
// to
// Heather Nova - The Wounds We Bled
//
// works only if the spotify ui language is english
var mlnk = "";
for (var i = 0, l = document.querySelectorAll('[data-testid="more-button"]').length - 1; i < l; ++i) {
@uahim
uahim / play.lua
Last active March 9, 2026 20:02
beispielskript zum spoofen des referrer tags, benutzung: vlc play.lua
#EXTVLCOPT:http-user-agent=Mozilla/5.0 (Windows NT 12.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
#EXTVLCOPT:http-referrer=https://popcorntimes.tv/
https://cdn0.popcorntimes.tv/pfad-zum-film.mp4
@uahim
uahim / dts_check_and_transcode.bat
Last active June 27, 2025 17:46
batch helper for ffmpeg/ffprobe to loop through your mkv video files and convert dts
@echo off
setlocal enabledelayedexpansion
for %%a in (%*) do (
ffprobe -v error -select_streams a -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 "%%~fa" | findstr /i "dts" >nul
if !errorlevel! equ 0 (
set filename="%%~dpna-ac3.mkv"
ffmpeg -i "%%~fa" -vcodec copy -scodec copy -acodec ac3 -b:a 640k %filename%
echo converted %filename%
)
@uahim
uahim / netflix-history.bookmarklet.js
Last active June 17, 2025 16:50
bookmarklet: save Netflix viewing history in a user-friendly form
// save this as a bookmarklet,
// go to your viewing history ( via https://www.netflix.com/settings )
// choose your profile and hit your bookmarklet
javascript: var mlnk =""; for (var i = 0, l = document.getElementsByTagName("ul")[3].getElementsByTagName("li").length -1; i < l; ++i) { var mydate = document.getElementsByClassName("date")[i].innerText.split("."); if (mydate[1] < 10) { month = "0"+mydate[1] } else { month = mydate[1] } mlnk += mydate[0] + "." + month + "." + mydate[2] + "\t"; mlnk += document.getElementsByClassName("title")[i].innerText + "\n"; } navigator.clipboard.writeText(mlnk);
// here's the text in human readable form:
javascript:
var mlnk = "";
for (var i = 0, l = document.getElementsByTagName("ul")[3].getElementsByTagName("li").length - 1; i < l; ++i) {
// ==UserScript==
// @name Pluto TV .m3u8 Grabber FORK
// @namespace http://tampermonkey.net/
// @version 1.8.5
// @description Captures m3u8 URLs via XHR and retrieves the last intercepted URL
// @author GhostyTongue + mihau
// @match *://*.pluto.tv/*
// @grant none
// @license MIT
// @downloadURL https://update.greasyfork.org/scripts/506067/Pluto%20TV%20m3u8%20Grabber.user.js