Skip to content

Instantly share code, notes, and snippets.

@seaque
seaque / my-ublock-dynamic-rules.txt
Last active July 14, 2025 07:30
uBlock Origin static filters and dynamic rules.
no-csp-reports: * true
* * 3p block
* * 3p-frame block
* * 3p-script block
* cdn.cloudflare.net * noop
* cloudflare.com * noop
* cloudfront.net * noop
* gstatic.com * noop
* hcaptcha.com * noop
* jsdelivr.net * noop
@seaque
seaque / user.js
Last active July 4, 2025 11:03
Firefox user customizations.
// PREF: Don't use OS values to determine locale, force using Firefox locale setting
// http://kb.mozillazine.org/Intl.locale.matchOS
user_pref("intl.locale.matchOS", false);
// PREF: Don't use Mozilla-provided location-specific search engines
user_pref("browser.search.geoSpecificDefaults", false);
// PREF: Don't trim HTTP off of URLs in the address bar.
// https://bugzilla.mozilla.org/show_bug.cgi?id=665580
user_pref("browser.urlbar.trimURLs", false);
@seaque
seaque / custom.css
Last active May 7, 2025 14:38
Custom CSS for BetterDiscord / Replugged / Vencord.
@import url(//fonts.googleapis.com/css2?family=Karla:wght@400;500;600;700&display=swap);
@import url(//raw.githubusercontent.com/KrstlSkll69/vc-snippets/main/OtherStuff/hideGlobalDiscovery.css);
@import url(//ukriu.github.io/cssCord/Other/noDistractions.css);
/* Includes variables */
:root {
/*--server-unread-colour: 255, 255, 255;
--server-hover-colour: 255, 255, 255;
--server-selected-colour: var(--accent, 0, 231, 169);
--server-spacing: 16px;
@seaque
seaque / hosts
Created April 25, 2025 11:32
Windows hosts file.
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@seaque
seaque / Kinobot Requests.md
Last active April 24, 2025 14:51
List of requests i made with kinobot.
@seaque
seaque / ffmpeg-batchcropdetect.sh
Created February 15, 2025 12:45
Bash drag and drop script to detect black borders on dropped videos and remove them.
#!/bin/bash
# Check if at least one file is provided
if [ "$#" -eq 0 ]; then
echo "No files provided. Drag and drop video files onto this script."
exit 1
fi
# Temporary file to store crop parameters
TEMP_FILE=$(mktemp)
@seaque
seaque / download.sh
Last active January 5, 2025 09:52
ReVanced related scripts.
repos=( cli patches integrations )
for i in "${repos[@]}"
do
curl -s https://api.github.com/repos/revanced/revanced-"$i"/releases/latest \
| grep "browser_download_url" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
done
@seaque
seaque / command.txt
Created December 14, 2024 14:01
FFmpeg very low quality meme material output.
ffmpeg -i in.mp4 -c:v libx264 -vf scale="192:144" -b:v 50k -c:a libopus -ac 1 -ar 16000 -b:a 8K out.mp4
@seaque
seaque / ffmpeg-trim.bat
Last active March 1, 2024 08:16
FFmpeg batch file for trimming videos with downmix 5.1 to stereo and subtitles from source video.
@echo off
:again
set /P start="Start: "
set /P end="End: "
set /P bit="Bitrate: "
set /P max="Maxrate: "
ffmpeg ^
-ss %start% ^