Skip to content

Instantly share code, notes, and snippets.

View chrislowles's full-sized avatar

Chris Lowles chrislowles

View GitHub Profile
// ==UserScript==
// @name Mastodon Bird UI
// @match https://mstdn.social/*
// @grant GM_addStyle
// @grant GM_getResourceText
// @version 2
// @description A UserScript that applies the Mastodon Bird UI style to mstdn.social
// @resource layout-single-column https://raw.githubusercontent.com/ronilaukkarinen/mastodon-bird-ui/master/layout-single-column.css
// @resource layout-multiple-columns https://raw.githubusercontent.com/ronilaukkarinen/mastodon-bird-ui/master/layout-multiple-columns.css
// @downloadURL https://gist.github.com/chrishazfun/2c477ce53f4668bf4db73b8cb70ce9dd/raw/mastodon-bird-ui.user.js
#!/bin/bash
echo "Hello, world!"
read -p "What is your name? " name
echo "Hello, ${name}!"
@chrislowles
chrislowles / yt-dlp-channel.md
Last active July 30, 2024 06:27
yt-dlp command template to download a whole youtube channel, with steps
  1. Ensure you have WinGet installed, if you do not have it click here https://aka.ms/getwinget and reboot your PC.
  2. Input winget install yt-dlp.yt-dlp in PowerShell on Windows 10/11, when it's installed close PowerShell.
  3. Create a folder for which the channels videos will be downloaded into, right-click while holding shift in the folder to get the context menu option to open it in PowerShell.
  4. Using the line below, replace with the YouTube Channel of your choice and with the browser you use to browse YT, this ensures the download won't fail when it meets an age gate or something similar, formatting of channel urls can be varied but the formats used in the list below are what I can verify being 100% successful.

yt-dlp -f best --cookies-from-browser <browser> <channel-url>

Verified YT Channel URL Formats (That I know of):