Skip to content

Instantly share code, notes, and snippets.

Fix WontFix


Fix WontFix
View GitHub Profile
guest271314 / keepServiceWorkerActive.js
Created Jun 3, 2021
Keep Chromium/Chrome MV3 ServiceWorker active
View keepServiceWorkerActive.js
const now =;
const keepServiceWorkerActive = () =>
new CustomEvent('keepactive', {
detail: `Active at ${~~((( - now) / 1000) / 60)} minutes.`
const handleKeepServiceWorkerActive = (e) => console.log(e.detail);
addEventListener("keepactive", handleKeepServiceWorkerActive);
let interval = setInterval(keepServiceWorkerActive, 1000 * 60 * 5);
guest271314 /
Created Dec 20, 2020
Issue 1156408: If the stream obtained via HTMLVideoElement.captureStream() is sent on peer connection, it does not send any actual data
guest271314 /
Created Dec 12, 2020
Capture monitor devices with navigator.mediaDevices.getUsermedia() at Chromium and Chrome on Linux
guest271314 /
Created Sep 8, 2020
Capture monitor device at Nightly stream to Chromium

Chromium does not support capture of monitor devices (system audio output to headphones and speakers; "What-U-Hear") when navigator.mediaDevices.getUserMedia() is called and does not list monitor devices when navigator.mediaDevices.enumerateDevices() is called at Linux, see

Firefox does support capture of monitor devices at Linux.

Using as a template capture monitor device at Nightly stream the captured monitor device

View ts-ebml-min.js
// ts-ebml-min.js
// minimized version of
The buffer module from node.js, for the browser.
@author Feross Aboukhadijeh <> <>
@license MIT
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(m,q,k){m!=Array.prototype&&m!=Object.prototype&&(m[q]=k.value)};$jscomp.getGlobal=function(m){return"undefined"!=typeof window&&window===m?m:"undefined"!=typeof global&&null!=global?global:m};$$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$||($$jscomp.Symbol)};$jscomp.Symbol=function(){var m=0;return function(q){return $jscomp.SYMBOL_PREFIX+(q||"")+m++}}();

For every error printed following

$ sudo apt upgrade

in the form of

dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_19.2.8-0ubuntu0~18.04.3_i386.deb (--unpack): unable to make backup link of './usr/lib/i386-linux-gnu/dri/' before installing new version: Input/output error Reinstalling /etc/drirc that was moved away Errors were encountered while processing:

View native-file-system-notifications.txt
> A huge huge huge part of file-system management & capabilities as we use them is being notified about when something changes. Without this, awful awful awful terrible badly performing highly costly & deeply inadequate hacks grow up like weeds, all over the place, as bad terrible coders do an awful job of probing around to figure out "what has changed?". Huge amounts of engineering effort have gone into trying to tackle this issue. Works like node-watch (attempting to fill the painful dx gaps in node's being non recursive) & watchman grow like weeds, consuming developer year after developer year of time to make maintain & sustain.
View gist:cde8c5e0cd1b786b3c3027fde2b8dd57
@pinoyyid Re, `EventSource` could probably be used, see
iOS does not support `FetchEvent` where `event.respondwith()` can be used for continuous polling and keeping `ServiceWorker` alive. Alternatively, a `Worker` or `SharedWorker` can be used to achieve the same result.
guest271314 / gist:661dfd623a0043ca77c7947dabd7fc9c
Created May 9, 2020
Encode AudioBuffer with Opus (or other codec) in Browser
View gist:661dfd623a0043ca77c7947dabd7fc9c
So the Main Question is: How can i encode the AudioBuffer. (and Decode it at the Receiver) Is there an API or Library? Can i get the encoded Buffer from another API in the Browser?
guest271314 / gist:d522cbab584867ba5a50c392e20800b2
Created May 3, 2020
Playing audio files in unsupported codecs through <audio> tag Ask
View gist:d522cbab584867ba5a50c392e20800b2
Playing audio files in unsupported codecs through <audio> tag