Skip to content

Instantly share code, notes, and snippets.

@caisui
Created November 22, 2013 14:47
Show Gist options
  • Save caisui/7601028 to your computer and use it in GitHub Desktop.
Save caisui/7601028 to your computer and use it in GitHub Desktop.
diff --git a/vimperator/content/config.js b/vimperator/content/config.js
--- a/vimperator/content/config.js
+++ b/vimperator/content/config.js
@@ -7,6 +7,15 @@
const Config = Module("config", ConfigBase, {
init: function () {
+ // XXX: for Australis
+ var vc = Cc["@mozilla.org/xpcom/version-comparator;1"].getService(Ci.nsIVersionComparator);
+ if (vc.compare(Application.version, "28.0a1") === 0) {
+ var {CustomizableUI} = Cu.import("resource://app/modules/CustomizableUI.jsm", {});
+ var id = "liberator-statusline";
+ var e = document.getElementById(id);
+ CustomizableUI.registerArea(id, { legacy: true, type: CustomizableUI.TYPE_TOOLBAR});
+ CustomizableUI.registerToolbarNode(e, [s.trim() for (s of e.getAttribute("defaultset").split(","))]);
+ }
},
/*** required options, no checks done if they really exist, so be careful ***/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment