Skip to content

Instantly share code, notes, and snippets.

@tyhallcsu
tyhallcsu / WikiArt-Extract-JSON-Data-userjs.js
Last active April 20, 2024 01:14
Verbose Extract Full WikiArt Painting Information [Userscript]
// ==UserScript==
// @name Verbose Extract Full WikiArt Painting Information
// @namespace http://tampermonkey.net/
// @version 2.0
// @description Correctly extracts full painting information from WikiArt pages with verbose logging for debugging purposes
// @author sharmanhall
// @match https://www.wikiart.org/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=wikiart.org
// @grant none
// ==/UserScript==
@tyhallcsu
tyhallcsu / GenerateWP - Unlock Unallowed Modules.user.js
Last active March 14, 2024 23:16
GenerateWP.com - Unlock Unallowed Modules (Tampermonkey Script)
// ==UserScript==
// @name GenerateWP - Unlock Unallowed Modules
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Replace "section-unallowed" with "section-allowed" on GenerateWP pages.
// @author sharmanhall
// @match https://generatewp.com/*
// @grant none
// @license MIT
// @icon https://www.google.com/s2/favicons?sz=64&domain=generatewp.com
@tyhallcsu
tyhallcsu / fix_qbittorrent_win10.reg
Created January 1, 2024 06:16
Fix qBittorrent Magnet File Association Windows 10/11
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE]
[HKEY_CURRENT_USER\SOFTWARE\Classes]
[HKEY_CURRENT_USER\SOFTWARE\Classes\qBittorrent.magnet]
@="URL:magnet"
"Content Type"="application/x-magnet"
"URL Protocol"=""
@tyhallcsu
tyhallcsu / .js
Created September 11, 2023 21:31
Extract Google Business data-pid (v2)
// ==UserScript==
// @name Extract Google Business data-pid (v2)
// @namespace https://example.com/
// @version 0.1
// @description Extracts the data-pid value from a Google Business profile page
// @author Tyler Hall
// @icon https://www.google.com/s2/favicons?sz=64&domain=tylerhalltech.com
// @match https://www.google.com/*
// @grant none
// ==/UserScript==
@tyhallcsu
tyhallcsu / OpenHayStack_Mail_Fix_16.0.sh
Created August 23, 2023 22:02
Fix OpenHayStackMail.mailbundle after MacOS updates (Specifically Tested on Mail v16.0 + OpenHayStack v0.5.2)
#!/bin/sh
# Check if running as root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
token=`cat /System/Applications/Mail.app/Contents/Info.plist | grep -A1 "PluginCompatibilityUUID" | grep string | sed 's/<string>//' | sed 's/<\/string>//'`
path="/Library/Mail/Bundles/OpenHayStackMail.mailbundle/Contents/Info.plist"
@tyhallcsu
tyhallcsu / hide_wsso_overlay.js
Created August 1, 2023 04:01
This userscript is designed to improve the user experience on WordPress admin pages by hiding a specific element with the class .ab-sub-wrapper. The .ab-sub-wrapper element is commonly associated with the WSSO (WordPress Social Sharing Optimization) overlay, which may sometimes obstruct or interfere with the admin interface. By running this user…
// ==UserScript==
// @name Hide WSSO Overlay
// @namespace http://empathyfirstmedia.com
// @version 1.0
// @description Hides element with class .ab-sub-wrapper on WordPress admin pages
// @author Tyler Hall
// @match *://*/wp-admin/*
// @grant GM_addStyle
// ==/UserScript==
@tyhallcsu
tyhallcsu / Extract Dropbox Image URLs to Clipboard.js
Last active January 17, 2024 22:36
This is a userscript that extracts image URLs from a Dropbox page and copies them to the clipboard when a button is clicked. The script creates a button on the page that, when clicked, scrolls to the bottom of the page, waits for new images to load, and extracts the image URLs. The script then joins the URLs into a string separated by newlines a…
// ==UserScript==
// @name Bulk Export Dropbox Image URLs (2024)
// @version 3.1.1
// @description Extracts image URLs from a Dropbox page and copies them to the clipboard when a button is clicked.
// @author sharmanhall
// @supportURL https://github.com/tyhallcsu/dropbox-image-url-extractor/issues/new
// @namespace https://github.com/tyhallcsu/dropbox-image-url-extractor
// @homepageURL https://github.com/tyhallcsu/dropbox-image-url-extractor
// @license MIT
// @connect greasyfork.org
@tyhallcsu
tyhallcsu / bitstream-from-sub.py
Created September 18, 2022 13:33 — forked from jinschoi/bitstream-from-sub.py
Python script to clean up and recover an OOK bitstream from a Flipper RAW .sub file.
#!/usr/bin/env python
# Find the raw bitstring from a captured Flipper RAW .sub file.
# Must provide the bitlength in ms, and the allowable error which can be tolerated.
import re
import sys
import math
filename = sys.argv[1]