Skip to content

Instantly share code, notes, and snippets.

@nemokaul
nemokaul / videosnip.user.js
Created June 27, 2024 22:16
Capture video screenshots and save to clipboard or download with timestamp and filename. `Alt+'` - Copy to Clipboard. `Alt + /` - Save as File.
// ==UserScript==
// @name Video Screenshot Tool
// @namespace nemokaul
// @version 1.0
// @description Capture video screenshots and save to clipboard or download with timestamp and filename.
// @license MIT
// @author Nemo Kaul
// @match http://*/*
// @match https://*/*
// @grant none
@nemokaul
nemokaul / autopause.user.js
Last active June 27, 2024 22:39
Automatically pause the video when the mouse leaves the browser window or switches tabs, and automatically play the video when the mouse reactivates the browser window or switches back to the tab. `Ctrl+Alt+;` - AutoVideoPause Enable/Disable.
// ==UserScript==
// @name Automatically pause/resume video playback
// @namespace nemokaul
// @version 1.3
// @description Automatically pause the video when the mouse leaves the browser window or switches tabs, and automatically play the video when the mouse reactivates the browser window or switches back to the tab
// @author Nemo Kaul
// @match *://*/*
// @grant none
// @downloadURL https://gist.github.com/nemokaul/3c02aa3610c579a747bc36d125a14c00/raw/70ff8a5f7c710c2195027e34c24106d99c48a904/autopause.user.js
// @updateURL https://gist.github.com/nemokaul/3c02aa3610c579a747bc36d125a14c00/raw/70ff8a5f7c710c2195027e34c24106d99c48a904/autopause.user.js
/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
!(function (e, t) {
"use strict";
"object" == typeof module && "object" == typeof module.exports
? (module.exports = e.document
? t(e, !0)
: function (e) {
if (!e.document)
throw new Error("jQuery requires a window with a document");
return t(e);