This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
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 |