Skip to content

Instantly share code, notes, and snippets.

Goal:
Expected code changes:
Surprises:
General Notes:
// ==UserScript==
// @name Duck Duck Go insta-bang
// @description Hitting "g" focuses search and appends an !
// @include https://www.duckduckgo.com/*
// @include https://duckduckgo.com/*
// @include http://duckduckgo.com/*
// ==/UserScript==
(function(){
{"lastUpload":"2018-01-03T09:10:20.634Z","extensionVersion":"v2.8.7"}
function beeper_preexec {
focus_window=`xdotool getwindowfocus`
}
function beeper_precmd {
retval=$?
if [[ $focus_window -ne `xdotool getwindowfocus` ]]; then
if [[ $retval -ne 0 ]]; then
beep -f 329.6