Skip to content

Instantly share code, notes, and snippets.

View forcequitOS's full-sized avatar
🗽
I may be losing it.

Taj • forcequitOS forcequitOS

🗽
I may be losing it.
View GitHub Profile
@forcequitOS
forcequitOS / deleteDatCat.user.js
Last active April 18, 2025 00:42
Remove the cursor-chasing cat oneko on basically any site. Userscripts / Tampermonkey compatible.
// ==UserScript==
// @name deleteDatCat
// @description Removes the cursor chasing cat oneko from basically any website.
// @match *://*/*
// ==/UserScript==
(() => {
const deleteDatCat = () => document.getElementById('oneko')?.remove();
deleteDatCat();
new MutationObserver(nuke).observe(document.body, { childList: true, subtree: true });
@forcequitOS
forcequitOS / NanoBackupExtract.sh
Created March 3, 2025 00:18
Extract an Apple Watch backup from an unencrypted iPhone backup. This script was written 100% by AI, good luck.
#!/bin/bash
# Set your iPhone's backup path before complaining
# Also, please make sure your iPhone actually has/had a paired Apple Watch. Otherwise, it's going to be very embarrasing if the script doesn't work.
# This script was genuinely written 100% by Claude. I am almost 100% sure it's missing a LOT of stuff. But, hey, it's something, and it's the only open-source way to extract user-files from watchOS /shrug.
# This script is intended for usage on macOS. It might work on Linux too, I don't know, and I haven't tested it there. Good luck.
BACKUP_PATH="$HOME/Library/Application Support/MobileSync"
OUTPUT_DIR="$HOME/NanoBackupExtract"
# Create output directory
mkdir -p "$OUTPUT_DIR"
@forcequitOS
forcequitOS / PrivateSymbols.swift
Last active April 11, 2025 00:48
Private/Internal SF Symbols for all Apple platforms
// Credits: https://gist.github.com/zats/ffd6b2c72b8753f043ec769c6c6739b5
// This is a port of that to Swift (For the iOS version) and a re-interpretation to make it support macOS too.
// There's a decent amount of limitations for this, like being unable to properly resize these symbols.
import SwiftUI
#if os(macOS)
class PrivateSymbol {
private let baseImage: NSImage
init?(privateSystemName name: String) {
guard let bundle = Bundle(path: "/System/Library/CoreServices/CoreGlyphsPrivate.bundle"),
@forcequitOS
forcequitOS / accentdump.swift
Created July 15, 2024 03:55
Displays your current macOS accent color as a hex code
// This returns a hex code for your current macOS system accent color, basically a snippet straight from my Weave browser.
// You can compile this as a command line tool, which is what I did.
import Foundation
import AppKit
extension NSColor {
var hexString: String {
guard let rgbColor = usingColorSpace(NSColorSpace.sRGB) else { return "#000000" }
let red = Int(rgbColor.redComponent * 255.0)
@forcequitOS
forcequitOS / facedb.js
Last active October 8, 2024 00:23
Apple Watch Face List for JavaScript
// This is a list of Apple Watch Face analytics identifiers and their corresponding branding names to use in JavaScript
// Freshly (re-)updated for watchOS 11. Watch face data has been obtained from watchOS 7.x, 10.x, and 11.x.
// Feel free to contribute! Especially if you have any Hermes Apple Watch model or an Apple Watch Ultra.
const faceDB = {
"xlarge-r": "X-Large",
"globetrotter": "World Time",
"smoke-r": "Vapor",
"utility-r": "Utility",
"renegade": "Unity",
"coltan": "Unity Lights",
@forcequitOS
forcequitOS / Live Preview.scpt
Created July 19, 2023 19:35
CotEditor Preview for HTML
(*
A kinda hacky preview for CotEditor when working with HTML. Requires that you save your file before opening, and only supports using Safari for the preview at this time.
Designed by CtrliPhones in Script Editor
*)
tell application "CotEditor"
set currentFile to file of front document
end tell
if currentFile is missing value then