Skip to content

Instantly share code, notes, and snippets.

View steffennilsen's full-sized avatar

Steffen Nilsen steffennilsen

View GitHub Profile
@steffennilsen
steffennilsen / yt-rm-watchlater.js
Last active October 22, 2025 09:10
remove youtube watch later script
// youtube watch later prune
// run this in the console of, presumably, https://www.youtube.com/playlist?list=WL
// highly dependent on the layout of yt that might change at any time
const _fetch = window.fetch;
let isPaused = false;
let errCount = 0;
// occationally the backend will start throttling requests
// this pauses the execution for some time
window.fetch = async (...args) => {
@steffennilsen
steffennilsen / ssh-path.ps1
Last active October 9, 2023 09:54
open ssh on admin / policy blocked windows
# issue:
# openssh included in windows can be disabled by admin policy
# solution:
# get a portable non managed build
# issue:
# included ssh is likely in system path and cant be changed,
# causing issues for tools like github cli that cant specify path
# solution:
# filter env path manually in PS
#