Skip to content

Instantly share code, notes, and snippets.

#!/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
@t1mwillis
t1mwillis / purgeUnusedCss.js
Last active February 6, 2023 00:03
Vuetify Helper Class Finder
/**
* Scan through all vue components and search for helper styles that are used
* Then return those that aren't so that they can be purged
*/
const { readFileSync } = require('fs')
const { sync } = require('glob')
// Vuetify exists in both pages, components and layouts
const everyVueComponent = sync('./+(components|pages|layouts)/**/*.vue')
@xchwarze
xchwarze / jetbrains-win-blocker.bat
Last active August 25, 2023 22:37
JetBrains Toolbox 1 block internet
@echo off
setlocal enabledelayedexpansion
set "mainFolderPath=%LOCALAPPDATA%\JetBrains\Toolbox\apps\"
set "subfolderName=ch-0"
set "foundDirectory="
rem Groncho-banner
echo JetBrains Toolbox autoblock - by DSR!