Skip to content

Instantly share code, notes, and snippets.

View r3Fuze's full-sized avatar

Morten Lindhardt r3Fuze

View GitHub Profile
@r3Fuze
r3Fuze / connect-camera.user.js
Last active December 31, 2023 19:02
Prusa Connect Live Camera
// ==UserScript==
// @name Prusa Connect - Custom Live Camera Feed
// @namespace https://r3fuze.github.io
// @match https://connect.prusa3d.com/*
// @run-at document-idle
// @grant none
// @version 0.5.0
// @author fz
// @description Replace the slow camera snapshots in Prusa Connect with a custom live camera feed by using a Raspberry Pi running μStreamer.
// ==/UserScript==
// ==UserScript==
// @name Syntax.fm timestamp seek
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Make timestamps seek the playback instead of loading new page
// @author fz
// @match https://syntax.fm/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
@r3Fuze
r3Fuze / twitch2.js
Created October 10, 2020 21:04
Twitch Ads
twitch-videoad.js application/javascript
(function() {
if ( /(^|\.)ttvnw\.net$/.test(document.location.hostname) === false ) { return; }
var realFetch = window.fetch;
window.fetch = function(input, init) {
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) {
var url = new URL(arguments[0]);
url.searchParams.forEach(function(value, key) {
url.searchParams.delete(key);
});
var leagueName = "Standard";
var effects = [];
var numTabs = 0;
var characters = [];
var charEffects = [];
var leagues = ["Standard", "Hardcore"];
$(document.body).append("<div style=\"z-index: 10000; background: white; color: black; border: 2px solid black; padding: 10px; width: 900px; height: 500px; position: absolute; left: 50%; top: 50%; margin-left: -450px; margin-top: -250px; overflow-y: auto; line-height: 25px;\" id=\"modal\">Please select your league.<br><div class=\"_leagues\"></div></div>");
$modal = $("#modal");
@r3Fuze
r3Fuze / 0_reuse_code.js
Created September 27, 2013 11:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console