Skip to content

Instantly share code, notes, and snippets.

View julfers's full-sized avatar

Josiah Ulfers julfers

View GitHub Profile
@julfers
julfers / force-video-pause.user.js
Last active January 17, 2022 04:35
Force video pause on space
/*
Pressing space key should pause videos, but many streaming sites fail to
implement that correctly, so attempt to fix it. Highly experimental.
Copyright 2022 Josiah Ulfers
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
// ==UserScript==
@julfers
julfers / force-native-video-controls.user.js
Last active January 17, 2022 03:43
Force native video controls
/*
In full screen, force videos to use native browser controls.
Tested in Violentmonkey, fails in Greasemonkey 4 as of 4.11.
Unsurpisingly, this experiment causes sundy problems with various streaming
sites. Its use is *not* recommended.
Copyright 2022 Josiah Ulfers
This work is free. You can redistribute it and/or modify it under the
<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<style>
ol { padding-left: 0; }
details > summary ~ * { margin: 0 0 0 1em; }
p { margin: 0; }
p.xml-comment { color: #8c8; }
// Moved to https://hg.sr.ht/~julfers/greasemonkey/browse/default/hidew3schools.user.js
// ==UserScript==
// @name Hide W3 Schools
// @namespace http://josiahulfers.com/hideW3schools
// @description Removes w3schools search results from DuckDuckGo
// @include https://duckduckgo.com/*
// @version 3
// @grant none
// @updateURL https://hg.sr.ht/~julfers/greasemonkey/raw/default/hidew3schools.user.js
/*
Save the slash key
##################
Greasemonkey script to prevent sites from hijacking Firefox's slash
key shortcut.
Source: https://gist.github.com/julfers/85fdae998ad855de17d2326e1c141cac
Install