Skip to content

Instantly share code, notes, and snippets.

View Hamuko's full-sized avatar

Hamuko Hamuko

View GitHub Profile
#TabsToolbar {
color: white;
background: #2a2a2a;
}
.tab-background {
border-radius: 0 !important;
margin-block: 0 !important;
}
.tab-background[multiselected="true"], .tab-background[selected="true"] {
background-color: #f9f9f9 !important;
import Cocoa
import MediaPlayer
let bundle = CFBundleCreate(kCFAllocatorDefault, NSURL(fileURLWithPath: "/System/Library/PrivateFrameworks/MediaRemote.framework"))
let MRMediaRemoteRegisterForNowPlayingNotificationsPointer = CFBundleGetFunctionPointerForName(
bundle, "MRMediaRemoteRegisterForNowPlayingNotifications" as CFString
)
typealias MRMediaRemoteRegisterForNowPlayingNotificationsFunction = @convention(c) (DispatchQueue) -> Void
let MRMediaRemoteRegisterForNowPlayingNotifications = unsafeBitCast(MRMediaRemoteRegisterForNowPlayingNotificationsPointer, to: MRMediaRemoteRegisterForNowPlayingNotificationsFunction.self)