Skip to content

Instantly share code, notes, and snippets.

@eladmeidar
eladmeidar / simple_select.css
Created July 14, 2013 11:50
drop down in js
.s-hidden {
visibility:hidden;
padding-right:10px;
}
.select {
height: 29px;
cursor:pointer;
display:inline-block;
position:relative;
@rodneyrehm
rodneyrehm / anti-keygrabber.user.js
Last active July 5, 2022 01:31
GreaseMonkey: Prevent Web Applications From Grabbing Certain HotKeys
// ==UserScript==
// @name anti key-grabber
// @description Prevent web apps from capturing and muting vital keyboard shortcuts
// @grant none
// @version 1.1
// ==/UserScript==
(function(){
var isMac = unsafeWindow.navigator.oscpu.toLowerCase().contains("mac os x");
unsafeWindow.document.addEventListener('keydown', function(e) {
if (e.keyCode === 116) {