Skip to content

Instantly share code, notes, and snippets.

View belst-n's full-sized avatar
🏠
Can't chat, in IRL.

BCE belst-n

🏠
Can't chat, in IRL.
  • AETNET
View GitHub Profile
/(stackexchange|superuser|askubuntu|stackoverflow).com$/###question-header:style(margin-top: 65px !important)
/(stackexchange|superuser|askubuntu|stackoverflow).com$/##.user-hover.user-info > .user-details > .-flair
/(stackexchange|superuser|askubuntu|stackoverflow).com$/###announcement-banner
/(stackexchange|superuser|askubuntu|stackoverflow).com$/###feed-link > a
/(stackexchange|superuser|askubuntu|stackoverflow).com$/###h-linked
/(stackexchange|superuser|askubuntu|stackoverflow).com$/###hot-network-questions
/(stackexchange|superuser|askubuntu|stackoverflow).com$/###h-related
/(stackexchange|superuser|askubuntu|stackoverflow).com$/###mainbar > .d-flex
/(stackexchange|superuser|askubuntu|stackoverflow).com$/###mainbar > .mb24
/(stackexchange|superuser|askubuntu|stackoverflow).com$/###noscript-warning
#!/usr/bin/env python
# Linux usage: ./extract_tampermonkey_script.py "/home/<USER>/.config/<BROWSER>/Default/Local Extension Settings/<EXTENSION_ID>"
# i.e.: ./extract_tampermonkey_script.py "/home/foo/.config/google-chrome-beta/Default/Local Extension Settings/gcalenpjmijncebpfijmoaglllgpjagf"
# Mac usage: ./extract_tampermonkey_script.py "/Users/<USER>/Library/Application Support/Google/Chrome/Default/Local Extension Settings/<EXTENSION_ID>/"
# i.e.: ./extract_tampermonkey_script.py "/Users/foo/Library/Application Support/Google/Chrome/Default/Local Extension Settings/dhdgffkkebhmkfjojejmpbldmpobfkfo/"
import leveldb
import sys
import re
@belst-n
belst-n / privacy-google-host-domains-list.md
Last active January 12, 2025 02:33
List of Google domains and hostnames along with a description of their purpose. Please assist with growing this list over time.

androidtvchannels-pa.googleapis.com - Android TV, promoted channels autodiscover.googleapis.com - ?? clientmetrics-pa.googleapis.com - ?? Tracking jnn-pa.googleapis.com - Consent management (third-parties) ad-creatives-public.commondatastorage.googleapis.com - ?? Advertising creatives related? gds.google.com - Google Data Studio ogads-pa.clients6.google.com - Appears to involve logging and Play store (play.google.com/log). Also: " I have been using OGAds for few years to monetize my traffic and I can say that it is one of the best mobile content locking networks in the market" signaler-pa.clients6.google.com

Note: client6. indicates a client (Android?) API endpoint.

@belst-n
belst-n / registry-diff.ps1
Created December 31, 2024 16:56 — forked from aadityabhatia/registry-diff.ps1
PowerShell script to create and compare snapshots of Windows Registry sections
[CmdletBinding()]
Param(
[Parameter(Position=1, Mandatory=$True)]
[string]$dataFile1,
[Parameter(Position=2, Mandatory=$True)]
[string]$dataFile2
)
$dataObj1 = cat -raw "$dataFile1.json" | ConvertFrom-Json
$dataObj2 = cat -raw "$dataFile2.json" | ConvertFrom-Json
@belst-n
belst-n / brave - Procedural strategy led.txt
Created December 12, 2024 06:10
Brace 1.73 Procedural Cosmetic Filter Rules Test Examples 12/11/2024
!
! Title: brave-core PR #24688
!
! Filter to be used for testing purposes
! https://testcases.agrd.dev
!
! Customized for https://github.com/brave/brave-core/pull/24688
!
! Hide warning
antonok.com,testcases.agrd.dev,pages.dev###subscribe-to-test-extended-css-rules-filter
#!/bin/bash
# This file will be sourced in init.sh
# https://raw.githubusercontent.com/ai-dock/comfyui/main/config/provisioning/flux1-dev.sh
# Packages are installed after nodes so we can fix them...
if [ -z "${HF_TOKEN}" ]; then
echo "HF_TOKEN is not set. Exiting."
@belst-n
belst-n / remove-hidden-civitai-users.js
Created July 16, 2024 05:17
Quick script to iterate over all hidden users on Civitai.com and remove them.
function clickAndWait(index) {
const elements = document.querySelectorAll('.mantine-Group-root.mantine-1u5ck20 button.mantine-UnstyledButton-root.mantine-ActionIcon-root.mantine-1nf78q7');
if (index >= elements.length) return;
elements[index].click();
setTimeout(() => clickAndWait(index + 1), 1000);
}
clickAndWait(0);
@belst-n
belst-n / extract-here.reg
Last active July 5, 2024 07:10
Quick Windows registry change which introduces right-click context menu Extract Here to compressed Zip files. This provides extraction without the needless requirement to click through selecting CWD compressed folder filename as the destination target path. Come on, Windows.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CompressedFolder\Shell\Extract Here]
@="Extract Here"
"Icon"="shell32.dll,44"
"Position"="Top"
[HKEY_CLASSES_ROOT\CompressedFolder\Shell\Extract Here\Command]
@="powershell.exe -noprofile -command Expand-Archive -Path '%1'"
// @name MITM
// @description MITM Yo Face
// @author Bryon Elston
// @version 1.0
// @match *://*/*
console.log("MITMYF: injected");
alert("MITMYF: injected⁰");
@belst-n
belst-n / cosmetic-annoyances.txt
Last active September 26, 2024 06:38
cosmetic annoyances filter blocklists hugging face
reddit.com##[bundlename="nsfw_blocking_modal"]:remove()
reddit.com##body:has(> shreddit-app > shreddit-async-loader[bundlename="app_selector"]):style(overflow: auto !important; pointer-events: auto !important;)
reddit.com##shreddit-async-loader[bundlename="app_selector"]
www.reddit.com##[bundlename="nsfw_blocking_modal"]:remove()
www.reddit.com##body:has(> shreddit-app > shreddit-async-loader[bundlename="app_selector"]):style(overflow: auto !important; pointer-events: auto !important;)
www.reddit.com##shreddit-async-loader[bundlename="app_selector"]
new.reddit.com##[bundlename="nsfw_blocking_modal"]:remove()
new.reddit.com##body:has(> shreddit-app > shreddit-async-loader[bundlename="app_selector"]):style(overflow: auto !important; pointer-events: auto !important;)
new.reddit.com##shreddit-async-loader[bundlename="app_selector"]