This file contains 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
/* ==UserStyle== | |
@name YouTube No Suggested Videos | |
@author Ian Gregory (igregory.ca) | |
@description Fork of https://userstyles.org/styles/101376/disable-youtube-video-wall | |
@version v1.0.0 | |
@namespace igregory.ca | |
@license MIT | |
==/UserStyle== */ | |
@-moz-document regexp(".*") |
This file contains 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
hs.urlevent.httpCallback = function(scheme, host, params, fullURL) | |
if host == nil then | |
host = 'file' | |
end | |
local success, _, res = hs.osascript.applescript('choose from list {"Safari", "Brave"} with prompt "Open '..host..' with…"'); | |
local app | |
if success and res:match('Safari') ~= nil then | |
app = 'com.apple.Safari' | |
elseif success and res:match('Brave') ~= nil then | |
app = 'com.brave.Browser' |
This file contains 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
// Thanks to mminer on GitHub | |
// https://gist.github.com/mminer/caec00d2165362ff65e9f1f728cecae2 | |
import Cocoa | |
class PreferencesViewController: NSTabViewController { | |
private lazy var tabViewSizes: [NSTabViewItem: NSSize] = [:] | |
private var lastSelectedTabViewItem: NSTabViewItem? = nil | |
This file contains 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/Cocoa.h> | |
@interface KSImageView : NSImageView | |
@end |
This file contains 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
// HIServicesPrivate.h v1 | |
// By ThatsJustCheesy | |
// TO USE THESE INTERFACES, you MUST link against ApplicationServices.framework. | |
#pragma once | |
#ifdef __cplusplus | |
extern "C" { | |
#endif |
NewerOlder