Skip to content

Instantly share code, notes, and snippets.

@gschoppe
gschoppe / bad-matt.php
Last active December 6, 2024 06:24
This is a protest plugin in response to the unacceptable behavior of Matt Mullenweg (BDFL of WordPress). In a propaganda interview, Matt claimed that one of the unacceptable things that WPEngine did was to strip out the stripe partner id from woocommerce's stripe gateway plugin. Not only does this appear to be false, but it is in no way a violat…
<?php defined('ABSPATH') or die();
/*
* Plugin Name: Bad Matt
* Plugin URI: https://gschoppe.com
* Description: A protest plugin that removes (or replaces via filter) the Automattic-owned woocommerce stripe gateway partner id.
* Version: 1.0.0
* Requires at least: 4.0
* Requires PHP: 7.2
* Author: Greg Schoppe
* Author URI: https://gschoppe.com/
@adrienne
adrienne / mullenweg-wpe.md
Last active April 16, 2025 15:22
The Mullenweg/WPE Thing
@velzie
velzie / manifest-v2-chrome.md
Last active April 26, 2025 20:33
How to keep using adblockers on chrome and chromium

How to keep using adblockers on chrome and chromium

  1. google's manifest v3 has no analouge to the webRequestBlocking API, which is neccesary for (effective) adblockers to work
  2. starting in chrome version 127, the transition to mv3 will start cutting off the use of mv2 extensions alltogether
  3. this will inevitably piss of enterprises when their extensions don't work, so the ExtensionManifestV2Availability key was added and will presumably stay forever after enterprises complain enough

You can use this as a regular user, which will let you keep your mv2 extensions even after they're supposed to stop working

Linux

In a terminal, run:

@OrionReed
OrionReed / dom3d.js
Last active April 19, 2025 12:06
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@Daan-Grashoff
Daan-Grashoff / README.md
Last active March 27, 2025 14:19
Bring back the google maps button when searching on google

Google Maps Button Restorer

This userscript brings back the Maps button in Google Search results, making it easy to search locations directly in Google Maps.

Features

  • Adds a Maps button next to the "All", "Images", "News" tabs in Google Search
  • Works across multiple Google domains (.com, .co.uk, .nl, .de, .fr)
  • Automatically updates when using Google's dynamic search
  • Maintains button presence during navigation
@griffi-gh
griffi-gh / filters.txt
Last active April 24, 2025 11:29
Misc. uBlock filters
! https://gist.githubusercontent.com/griffi-gh/31dc0d175b5cbd026375ef32743e3e8a/raw/filters.txt
!
! I just dump the contents my personal uBlock "My filters" tab here every now and then
! Some filters are pretty opinionated or block ads on obscure websites
!
! ENABLE GENERIC PROCEDURAL FILTERS !
! I use them heavily
! 2021-06-09 https://fastalts.net
||cdn.thealtening.com/banner_thealtening.gif$image
@st1vms
st1vms / protonvpn_rater.py
Last active March 22, 2025 11:38
Python script to rate ProtonVPN FreeTier domains by load factor.
"""Auto retrieve ProtonVPN free-tiers load ratings"""
from requests import get as http_get
# Taken from https://account.protonvpn.com/downloads
# Open dev-tools and look for GET requests to /api/vpn/logicals endpoint
# Copy the entire cookie header value into this string
__COOKIE_STRING = ""
# Also copy the x-pm-uid header value from that same GET request into this string
__X_PM_UID_STRING = ""
@aclarknexient
aclarknexient / ublock.txt
Last active February 2, 2025 01:34
ublock origin hackernews dark mode and narrower comment display
! The following 2 lines are what I use to display news.ycombinator.com
! Limit comments to 70 characters wide, making them easier to read
news.ycombinator.com##.comment:style(max-width: 70ch !important; overflow: hidden !important;)
! Invert the colours of the site, making a dark mode that I like
! `invert(95%)` does most of the work,
! but you can tweak the hue-rotate value to fine tune the colours
news.ycombinator.com##html:style(filter:invert(95%) hue-rotate(200deg); background: white)
@0187773933
0187773933 / ConvertYouTubePlaylistToM3U8.sh
Created August 18, 2023 16:35
Converts YouTube Playlist ID to M3U8 - Urls Good for 6 Hours
#!/bin/bash
# Check if the input playlist ID and API key are provided
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: $0 <playlist_id> <api_key>"
exit 1
fi
playlist_id="$1"
api_key="$2"
@AveYo
AveYo / . steamwebhelper_min.bat
Last active April 24, 2025 00:39
Steam minimal resource usage after removal of -no-browser & -vgui options. Enter script in powershell then use Steam_min shortcut on Desktop instead
<# ::
@echo off & set "0=%~f0" & powershell -nop -c iex(out-string -i (gc -lit $env:0)) & exit /b
#>.{
" Steam_min : always starts in SmallMode with reduced ram usage when idle - AveYo, 2025.04.14 "
$FriendsSignIn = 0
$ShowGameIcons = 0
$use_opt_nojoy = 1