Skip to content

Instantly share code, notes, and snippets.

View frarredondo's full-sized avatar
💀

Francisco Arredondo frarredondo

💀
View GitHub Profile
@frarredondo
frarredondo / example-flake.nix
Created March 12, 2025 19:24
Example Flake Configuration for Apple Silicon
{
description = "Example nix-darwin system flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin.url = "github:LnL7/nix-darwin/master";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
mac-app-util.url = "github:hraban/mac-app-util";
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
# Optional: Declarative tap management
@frarredondo
frarredondo / yt_unsuscribe_me.js
Created January 5, 2025 23:30
Script to unsubscribe from all from all YouTube channels
// Usage Instructions
// Note: YouTube often updates it's DOM structure, so you may need to udpate the DOM query selectors.
// 1. Open the Manage Subscriptions page: https://www.youtube.com/feed/channels.
// 2. Open the browser's developer tools (Ctrl+Shift+I or Cmd+Option+I on Mac) and navigate to the Console tab.
// 3. Paste the script and press Enter.
// 4. Let the script run until it completes.
(async () => {
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
@frarredondo
frarredondo / RemoveWatchLater.md
Created December 18, 2022 18:31
YouTube - Remove Watch Later Script
setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

    video.querySelector('#primary button[aria-label="Action menu"]').click();

    var things = document.evaluate(
        '//span[contains(text(),"Remove from")]',
        document,
 null,