Skip to content

Instantly share code, notes, and snippets.

View vogler's full-sized avatar

Ralf Vogler vogler

  • Munich, Germany
  • 17:41 (UTC +02:00)
View GitHub Profile
@vogler
vogler / clean-url-readme-tab.github.com.tamper.js
Last active April 28, 2024 19:17
GitHub: remove `?tab=readme-ov-file` from URL
// ==UserScript==
// @name GitHub: remove `?tab=readme-ov-file` from URL
// @description GitHub: remove `?tab=readme-ov-file` from URL
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/74edff6de37c3a13eeff8c99c6bed910/raw/clean-url-readme-tab.github.com.tamper.js
// @version 0.1
// @author Ralf Vogler
// @match https://github.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
@vogler
vogler / video-time-left.tamper.js
Last active January 21, 2024 21:30
Tampermonkey: Video: show time left in title
// ==UserScript==
// @name Video: show time left in title
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/51d82f4887d75f718dddbcf45e8feb2f/raw/video-time-left.tamper.js
// @version 0.1
// @description Video: show time left in title
// @author Ralf Vogler
// @match https://*.zdf.de/*
// @grant window.onurlchange
// ==/UserScript==
@vogler
vogler / sound.stories.instagram.tamper.js
Last active January 7, 2024 16:26
Tampermonkey: Instagram: enable sound in stories
// ==UserScript==
// @name Instagram: unmute stories
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/275939bf98efa9ccfd204c0145e1e658/raw/sound.stories.instagram.tamper.js
// @version 0.8
// @description Clicks the button to enable sound in stories. I want to have sound by default, but there's no option. Clicking it manually everytime is annoying and you can't even click it before you reach a story with sound.
// @author Ralf Vogler
// @match https://www.instagram.com/*
// only needed for https://www.instagram.com/stories/*, but that would only execute it on reload, not if clicked on a story from the start page (router just changes the URL)
// @grant none
@vogler
vogler / Artillery-Genius.md
Last active December 27, 2023 12:48
Artillery Genius Config

image

Software

  • Mainboard firmware: Marlin 2.0.9.2 (fork with config, see Marlin/Configuration{,_adv}.h)
    • diff: nvim -d {Marlin,config/Artillery/Genius}/Configuration.h, same for Configuration_adv.h
      • mostly calibration, new extruder and noise-free PWM for parts fan
      • LIN_ADVANCE instead of S_CURVE_ACCELERATION (don't work together)
    • before 13.11.2020: Marlin 2.0.5.3 (3dprintbeginner) (branch)
  • TFT firmware: artillery_tft_fw_1.27.x_patch_9.2 (digant@thingiverse) (TFT-config.ini)
    • Put in Marlin mode (long press, persists on reboot) when printing with OctoPrint because TFT shares serial connection.
@vogler
vogler / video-scroll-seek.tamper.js
Last active November 30, 2023 00:47
Tampermonkey: video: scroll=seek
// ==UserScript==
// @name Video: scroll=seek
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/b7c66088cd22f899496f353d5295b7ad/raw/video-scroll-seek.tamper.js
// @version 0.26
// @description Scrolling a video seeks back/forward
// @author Ralf Vogler
// @match *://*/*
// @grant none
// ==/UserScript==
@vogler
vogler / fix-price.aliexpress.tamper.js
Last active November 2, 2023 14:03
Tampermonkey: AliExpress: show total price incl. shipping
// ==UserScript==
// @name AliExpress: show total price incl. shipping
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/ea7e21d67cb8a3a0c701ecb25839a4ec/raw/fix-price.aliexpress.tamper.js
// @version 0.6
// @description Show the total price (item price + shipping) per item.
// @author Ralf Vogler
// @match https://www.aliexpress.com/wholesale*
// @match https://www.aliexpress.com/af/*
// @grant none
@vogler
vogler / ring-download-all-videos.js
Last active August 2, 2023 04:26
Download all Videos in Ring Event History
// Even with a subscription, videos are saved online only for 3 months.
// Downloading videos manually is a pain since you can only select 50 at a time, and 'Select Multiple' only has up to 'First 100'.
// 1. Go to https://account.ring.com/account/activity-history
// 2. Click button 'Manage'.
// 3. Scroll down in the event list to load as many events as you want.
// 4. Open Chrome Dev Tools (cmd+alt+i) and open Console to paste the following:
f = (xs, i) => {
const n = xs.length;
xs.slice(Math.max(0, n-i*50), Math.max(0, n-(i-1)*50)).map(x => x.click());
@vogler
vogler / youtube-time-left.tamper.js
Last active June 12, 2023 13:42
Tampermonkey: YouTube: show time left in title
// ==UserScript==
// @name YouTube: show time left in title
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/451aa48d0af7b659e391fdbeeea0d9d8/raw/youtube-time-left.tamper.js
// @version 0.5
// @description YouTube: show time left in title
// @author Ralf Vogler
// @ match https://www.youtube.com/watch?v=* // this will not work if you open youtube.com and then click on a video since it is a SPA
// @match https://www.youtube.com/*
// @grant window.onurlchange
@vogler
vogler / youtube-watch-later-status.tamper.js
Last active June 10, 2023 08:01
Tampermonkey: YouTube: button for Watch Later (shows status, allows to toggle)
// ==UserScript==
// @name YouTube: button for Watch Later (shows status, allows to toggle)
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/aeeb2078d2e30ea5aa0240c0320fc35b/raw/youtube-watch-later-status.tamper.js
// @version 0.3
// @description YouTube: button for Watch Later (shows status, allows to toggle)
// @author Ralf Vogler
// @ match https://www.youtube.com/watch?v=* // this will not work if you open youtube.com and then click on a video since it is a SPA
// @match https://www.youtube.com/*
// @grant window.onurlchange
@vogler
vogler / youtube-progress-always.tamper.js
Last active June 10, 2023 07:51
Tampermonkey: YouTube: always show an additional progress bar below the video (not just on mouse move or pause)
// ==UserScript==
// @name YouTube: always show a progress bar
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/f0bba0a52a6fed61afab19245e72b5d4/raw/youtube-progress-always.tamper.js
// @version 0.5
// @description YouTube: always show an additional progress bar below the video (not just on mouse move or pause)
// @author Ralf Vogler
// @ match https://www.youtube.com/watch?v=* // this will not work if you open youtube.com and then click on a video since it is a SPA
// @match https://www.youtube.com/*
// @grant none