Skip to content

Instantly share code, notes, and snippets.

View vogler's full-sized avatar

Ralf Vogler vogler

  • Munich, Germany
  • 18:53 (UTC +01:00)
View GitHub Profile
@vogler
vogler / clean-url-readme-tab.github.com.tamper.js
Last active October 15, 2024 23:57
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 / 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-time-left.tamper.js
Last active July 28, 2024 17:23
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.6
// @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 / netflix-choose-profile.tamper.js
Last active May 16, 2023 10:13
Netflix: choose profile (TODO and enter its pin)
// ==UserScript==
// @name Netflix: choose profile (TODO and enter its pin)
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/344bb0a151810635aa5c25d11fc08179/raw/netflix-choose-profile.tamper.js
// @version 0.1
// @description Netflix: choose profile (TODO and enter its pin)
// @author Ralf Vogler
// @match https://www.netflix.com/browse*
// @icon https://www.google.com/s2/favicons?sz=64&domain=netflix.com
// @grant none
@vogler
vogler / gmail-meet-navbar.tamper.js
Last active May 12, 2023 13:26
Tampermonkey: Gmail: hide/move left Mail/Meet navbar
// ==UserScript==
// @name Gmail: hide/move left Mail/Meet navbar
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/f0e4df4a6fcf5a874f726c45f7440fb0/raw/gmail-meet-navbar.tamper.js
// @version 0.1
// @description Gmail: the navbar only contains two buttons (of which I never use the Meet button) and wastes 68px width -> hide it or move buttons to the bottom.
// @author Ralf Vogler
// @match https://mail.google.com/mail/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
@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
@vogler
vogler / ChromeOS-youtube-dl-watchlater.md
Last active August 21, 2022 20:33
Chrome OS: download YouTube Watch later videos

Download YouTube Watch later videos on Chrome OS

The command I use on macOS fails on Chrome OS since the Linux container can not access the Chrome profile to get the cookies:

$ yt-dlp --cookies-from-browser chrome --max-downloads 10 --sponsorblock-remove default :ytwatchlater
[Cookies] Extracting cookies from chrome
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
 File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
@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 / color-repo-labels.github.com.tamper.js
Created April 10, 2022 23:00
GitHub: repos labels: green for public, red for private
// ==UserScript==
// @name GitHub: repos labels: green for public, red for private
// @description GitHub: repos labels: green for public, red for private
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/6510191f5bd5f790048a68b11014ca35/raw/color-repo-labels.github.com.tamper.js
// @version 0.1
// @author Ralf Vogler
// @match https://github.com/*?tab=repositories*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none