- Make toolbars in AppKit compact where possible
- Hide useless menu bar items in Chrome
- Minor fixes to FaceTime.app
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
/* | |
* mp4.ts | |
* media | |
* | |
* Created by Tanner Bennett on 2025-04-19 | |
* Copyright © 2025 Tanner Bennett. All rights reserved. | |
*/ | |
type Atom = { | |
size: number; |
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
(function() { | |
'use strict'; | |
function copyMarkdown() { | |
... | |
navigator.clipboard.writeText(markdown); | |
} | |
function addEventsToCopyElements() { | |
// Get all elements with tag name clipboard-copy and class js-copy-branch |
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
#import <Foundation/Foundation.h> | |
#include <string> | |
#include <dlfcn.h> | |
class Foo { | |
int bar = 0; | |
std::string toString(); | |
}; | |
std::string Foo::toString() { |
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
// UIApplicationMain accepts Swift.String in Swift apps; a C forward declaration is needed | |
struct SwiftString { | |
uint8_t reserved[16]; | |
}; | |
typedef struct SwiftString SwiftString; | |
int (*orig_UIApplicationMain_objc)(int argc, char *argv[], NSString *_, NSString *delegateClassName) = nil; | |
int (*orig_UIApplicationMain_swift)(int argc, char *argv[], SwiftString _, SwiftString delegateClassName) = nil; | |
NSString *(*FoundationBridgeSwiftStringToObjC)(SwiftString str) = nil; |
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
// | |
// Shell.swift | |
// | |
// Created by Tanner Bennett on 6/25/22. | |
// Copyright Tanner Bennett (c) 2022 | |
// | |
import Foundation | |
extension StringProtocol { |
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
#import "VoteControl.h" | |
@interface _VoteControl : UIStepper @end | |
@implementation _VoteControl | |
- (instancetype)initWithFrame:(CGRect)frame { | |
self = [super initWithFrame:frame]; | |
if (self) { | |
self.wraps = YES; |
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
import Cocoa | |
import Foundation | |
class Person { | |
var age: Int | |
var name: String | |
init(age: Int, name: String) { | |
self.age = age | |
self.name = name |
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 BrickLink high res images | |
// @version 0.1 | |
// @description Make product images on BrickLink use a larger image file | |
// @author Tanner Bennett / @NSExceptional / u/ThePantsThief | |
// @match https://bricklink.com/* | |
// @match https://*.bricklink.com/* | |
// @match https://store.bricklink.com/* | |
// @grant none | |
// ==/UserScript== |
Edit Feb 4 5:16 PM: Skip to the bottom if you just want the article
It has been brought to my attention that rehosting someone else's content without asking them — even if you link to the original content — is not exactly polite. I did not ask the author before I rehosted his article, and while I feel I should have known better than to that, it just didn't occurr to me. It's not exactly plagarism, but it's still wrong on some level. I have reached out to him now about hosting it here publically, and if he says it's alright, I'll put it back.
You can find the original article here, on his site, and on his Medium page.
NewerOlder