Skip to content

Instantly share code, notes, and snippets.

@Gelip
Gelip / export.js
Last active May 1, 2026 19:18 — forked from nohamelin/xseei.export-all.js
Export your search engines in only-WebExtensions Mozilla Firefox builds
(async function() {
"use strict";
const { FileUtils } = ChromeUtils.import("resource://gre/modules/FileUtils.jsm");
const win = Services.wm.getMostRecentWindow("navigator:browser");
const MOZSEARCH_NS = "http://www.mozilla.org/2006/browser/search/";
const OPENSEARCH_NS = "http://a9.com/-/spec/opensearch/1.1/";