Skip to content

Instantly share code, notes, and snippets.

View av1d's full-sized avatar
🎯
Focusing

av1d

🎯
Focusing
View GitHub Profile
@av1d
av1d / firefox.remove.speaker.icon.MD
Last active December 8, 2025 18:57
Firefox - Remove Speaker Icon From Browser Tab

Firefox - Remove Speaker Icon From Browser Tab when The Web Page Contains Audio Elements

An end to yet another Firefox UI/UX disaster. Don't know about you - but I accidentally click the obnoxious icon all the time then can't figure out why I have no sound. Firefox isn't known for making good UX decisions, let's fix it:

Steps

  1. go to: about:config

  2. set:

@av1d
av1d / devtools-filter-field-text.MD
Created December 8, 2025 16:50
Firefox DevTools Filter Text Visibility Fix

Firefox DevTools Filter Text Visibility Fix

at last - an end to the insanity. In FireFox, this is how you make the text inside of devtools actually visible when the filter field contains text. Whoever thought dark grey on black was a good idea should be fired :-P. Now, there's no mistake when filter text is entered. How many times have you been like "WHY ARE THERE NO RESULTS" only to find that you had text entered but couldn't see it because the UI sucks?

Steps

  1. go to: about:config

  2. set:

@av1d
av1d / archive.org.popup-killer.tampermonkey.js
Created December 8, 2025 06:58
Disable the popup / hover window pane accessibility disaster on archive.org for individual items in collections. Tampermonkey
// ==UserScript==
// @name Archive.org kill tile hover pane
// @match https://archive.org/details/*
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
const origDefine = customElements.define.bind(customElements);
@av1d
av1d / blackfriday.md
Last active November 22, 2025 04:35
Amazon Wishlist Black Friday filter

Paste this in your browser's console. (CTRL+SHIFT+i)

Run this to simulate scrolling (wishlist uses progressive loading bullshit):

let lastScroll = -1;
let checkScroll = setInterval(function() {
  window.scrollTo(0, document.body.scrollHeight);
  if (window.scrollY === lastScroll) {
    clearInterval(checkScroll);
 console.log("Scrolling complete.");
@av1d
av1d / scramble.html
Created April 25, 2025 16:13
Screen Reader Accessible PIN-Entry Scrambling Keypad
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Accessible Scramblepad Keypad</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f4f4f4;
display: flex; flex-direction: column; align-items: center; margin-top: 40px;
@av1d
av1d / vsb.py
Last active January 30, 2025 04:04
Video Sitemap Browser enables you to browse and search video sitemap XML files for titles and meta content, allowing you to conveniently download video from a user-friendly menu.
#!/usr/bin/python3
import json
import os
import readline
import requests
import subprocess
import xml.etree.ElementTree as ET
from rich.console import Console
console = Console()
@av1d
av1d / telegram_gif.md
Last active May 30, 2024 18:47
Send animated GIF to Telegram with markdown text using cURL or Python

Replace with token, leave the 'bot' part in the URL.
Replace with your chat ID, example: -1234567890.
You may need to put -100 first, like: -1001234567890, depending on chat/group/channel type.
You can also use &parse_mode=html instead of markdown.

Bash:

@av1d
av1d / market.py
Last active May 30, 2024 06:17
Underwater Market Adventure - AI generated IF game (Meta Llama 2)
# Underwater Market Adventure
# (c) 2024 av1d
# MIT license
import time
def start_game():
print("Welcome to the Underwater Market Adventure!")
print("You are trapped in an underwater market, surrounded by Venus flytrap monsters.")
print("Your goal is to find the hidden key and escape the market inside a bubble you blew with bubblegum.")
@av1d
av1d / environment.sh
Last active May 30, 2024 14:15
get rk3588 environment
#!/bin/bash
# To help make it easier while troubleshooting issues for RK3588 LLM setups.
# Outputs to randomly-dated text file (ex: environment_2024-05-11_1715443021.txt)
# run: bash environment.sh
# find platform, assumes Debian/Ubuntu
platform=$(lsb_release -a)
@av1d
av1d / three_ai.py
Created May 3, 2024 16:57
Make 3 AI LLM models speak amongst themselves randomly (ollama, llama.cpp, RK3588 NPU server)
import json
import random
import re
import requests
import textwrap
# a random model is selected each time without the possibility
# of selecting the same one twice in a row (so it doesn't speak to itself)
# Terminal colors