Skip to content

Instantly share code, notes, and snippets.

View jangxx's full-sized avatar
🖥️
Probably coding rn

Jan Scheiper jangxx

🖥️
Probably coding rn
View GitHub Profile
@jangxx
jangxx / prusaprinters_stl_viewer.user.js
Last active November 23, 2020 15:02
A userscript which adds a "View" button to STL files on prusaprinters.org
// ==UserScript==
// @name PrusaPrinters STL Viewer
// @namespace http://literalchaos.de
// @version 1.0
// @description Add a "View STL" button to prusaprinters.org
// @author jangxx
// @match https://www.prusaprinters.org/prints/*
// @grant none
// @downloadURL https://gist.github.com/jangxx/dfb47c3dd8f1ee98cce067d5098733c3/raw/prusaprinters_stl_viewer.user.js
// ==/UserScript==
@jangxx
jangxx / extract_pdf_layers.py
Created October 7, 2020 16:32
Extract all the layers of a PDF file into their own files
#!/usr/bin/env python3
import sys
import pikepdf
if len(sys.argv) < 3:
print("Usage: extract_layers.py <input.pdf> <output_template>")
print()
print("Output template has to contain {num} somewhere, which will be replaced by the layer number.")
sys.exit(0)
@jangxx
jangxx / youtube_pumpkin_logo.user.js
Last active October 6, 2020 16:13
Changes the YouTube logo to a pumpkin
// ==UserScript==
// @name YouTube Pumpkin Logo
// @namespace http://literalchaos.de
// @version 1.0
// @description Changes the YouTube icon to a pumpkin
// @author jangxx
// @match https://www.youtube.com/*
// @grant none
// @downloadURL https://gist.github.com/jangxx/0fc73153c89194adbc6710eecab1b734/raw/youtube_pumpkin_logo.user.js
// @updateURL https://gist.github.com/jangxx/0fc73153c89194adbc6710eecab1b734/raw/youtube_pumpkin_logo.user.js
@jangxx
jangxx / watch2gether_reddit_integration.user.js
Last active April 14, 2021 09:01
Reddit integration for watch2gether.com. Allows the automatic creation of playlists based on videos posted in a subreddit.
// ==UserScript==
// @name Watch2Gether Reddit Integration
// @namespace https://literalchaos.de
// @version 1.2.1
// @description Add videos from reddit to a watch2gether playlist
// @author jangxx
// @match https://www.watch2gether.com/rooms/*
// @match https://w2g.tv/rooms/*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@jangxx
jangxx / nerv.svg
Last active September 25, 2019 22:41
Nerv Logo connected for conversion to STL
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jangxx
jangxx / akk.user.js
Last active July 19, 2019 17:31
A userscript which replaces Annegret Kramp-Karrenbauer with funny names. Userscript version of this extension: https://github.com/voodoocode/pannengeraet-krank-knarrenbauer
// ==UserScript==
// @name Pannengerät Krank-Knarrenbauer
// @namespace https://literalchaos.de
// @version 1.0
// @description Replaces the name Annegret Kramp-Karrenbauer with funny names
// @author /u/voodoocode, /u/jangxx
// @match *://*/*
// @grant none
// @downloadURL https://gist.github.com/jangxx/fa6c012f76ef86f7fddb69a5989f7b42/raw/akk.user.js
// ==/UserScript==
@jangxx
jangxx / rwthmoodle_video_urls.user.js
Last active September 25, 2023 06:25
A userscript to extract video URLs from video embedded into RWTHonline, which are not uploaded as regular files.
// ==UserScript==
// @name RWTHmoodle Opencast Video Catcher
// @namespace https://literalchaos.de
// @version 0.2
// @description Captures video urls played by the player embedded into RWTHmoodle
// @author Jan Scheiper
// @match https://moodle.rwth-aachen.de/*
// @match https://engage.streaming.rwth-aachen.de/*
// @grant GM_webRequest
// @grant GM_xmlhttpRequest
@jangxx
jangxx / update.py
Created March 6, 2019 00:55
Simple DynDNS update script
import argparse, socket, requests, json, os
parser = argparse.ArgumentParser()
parser.add_argument('--username', type=str, help="DynDns Username", required=True)
parser.add_argument('--password', type=str, help="DynDns Password", required=True)
parser.add_argument('--url', type=str, help="Update url with <ipaddr> and <ip6addr> parameters", required=True)
args = parser.parse_args()
# attempt to get the server's ipv4 and ipv6 addresses
@jangxx
jangxx / justiny_detector_integration.user.js
Last active October 24, 2022 20:50
Integrates the Justin Y. Detector right into the YouTube comment section.
// ==UserScript==
// @name Justin Y. Detector Integration
// @namespace https://literalchaos.de/
// @version 0.2
// @description Automatically try to find out if Justin. Y has left a comment on a video
// @author jangxx
// @match http://www.youtube.com/*
// @match https://www.youtube.com/*
// @grant GM_xmlhttpRequest
// @downloadURL https://gist.github.com/jangxx/998baf5fd94a6bd6cf400d54c631b213/raw/justiny_detector_integration.user.js
@jangxx
jangxx / youtube_speed_slider.user.js
Last active July 27, 2020 23:42
[DEPRECATED] Youtube has implemented this feature now, so this userscript is not needed anymore. Old description: An improved version of this userscript: https://greasyfork.org/en/scripts/25058-youtube-player-speed-slider Removes the ugly checkbox, adds nicer styling and introduces somewhat cleaner code.
// ==UserScript==
// @name (DEPRECATED) Youtube Player Speed Slider
// @namespace youtube_player_speed_slider
// @version 0.4.0
// @description A userscript that is no longer required. You can uninstall this without losing any features.
// @author Łukasz, jangxx
// @match https://*.youtube.com/*
// @grant none
// @downloadURL https://gist.github.com/jangxx/d56eb1efbf7dcd5d6de3af922af8160b/raw/youtube_speed_slider.user.js
// ==/UserScript==