Skip to content

Instantly share code, notes, and snippets.

<!ENTITY fill.label "Fill">
@KwanEsq
KwanEsq / unbranded.js
Last active June 27, 2023 19:17
Update Unbranded links
// ==UserScript==
// @name Unbranded build update
// @version 4
// @grant none
// @match https://wiki.mozilla.org/index.php?title=Add-ons/Extension_Signing&action=edit&section=6*
// ==/UserScript==
async function getUnbranded(revision, version, channel) {
const builds = [
{
@KwanEsq
KwanEsq / deMozLz4.js
Created October 9, 2017 21:16
Decompress mozlz4 in Firefox's browser console
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/**
* Paste the function into the browser console then call
* deMozLz4(${path/to/file})
*/
async function deMozLz4(path) {
const src = await OS.File.read(path, {compression: "lz4"});
await OS.File.writeAtomic(`${path}.out`, src)