Skip to content

Instantly share code, notes, and snippets.

@luetage
luetage / intercept-shortcuts.user.js
Last active March 5, 2025 17:56
Stops websites from hijacking keyboard shortcuts.
// ==UserScript==
// @name Intercept Shortcuts
// @namespace https://gist.github.com/luetage/b6c6fdee713c0b3569e9daa9ee7b73bb
// @updateURL https://gist.github.com/luetage/b6c6fdee713c0b3569e9daa9ee7b73bb/raw
// @supportURL https://forum.vivaldi.net/post/459981
// @description Stops websites from hijacking keyboard shortcuts.
// @version 2022.9.0
// @author luetage
// @match *://*/*
// @run-at document-start
@waydabber
waydabber / ddcavcontrol.init.lua
Last active October 28, 2024 18:10
Hammerspoon script to control a Display via DDC (brighness, volume) and a Yamaha AV (network) using standard Mac keyboard with MacOS OSD
-- ddcavcontrol
-- v1.2.1
-- This Hammerspoon script is intended to do the following:
-- 1) Control External Display Brightness via DDC (utilizing a proper brightness+contrast curve)
-- 2) Control External Display Volume via DDC
-- 3) Control Digital AV Volume via Network (currently works with Yamaha AVs)
-- 4) Use the standard brightness and volume keys of an Apple keyboards
-- 5) Display the standard MacOS OSD as expected