Skip to content

Instantly share code, notes, and snippets.

Pimm "de Chinchilla" Hogeling Pimm

View GitHub Profile
View convert-tab-groups-backup-to-html.js
/**
* Converts a Tab Groups backup to HTML.
*/
function convertTabGroupsBackupToHtml(backup) {
if (undefined === backup.version
|| 'tabGroups' != backup.version[0] || 1 != backup.version[1]) {
throw new Error('Unexpected input');
}
return [
'<ul>',
View addons.js
/**
* Any copyright by Panagiotis Astithas is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
*
* Otherwise, copyright 2012 Pimm Hogeling
* You can redistribute and/or modify this software under the terms of the Mozilla Public License Version 1.1, the
* GNU Lesser General Public License version 2.1 or later or the GNU General Public License version 2 or later.
*/
Components.utils.import("resource:///modules/devtools/gcli.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "AddonManager", "resource://gre/modules/AddonManager.jsm");
You can’t perform that action at this time.