Created
November 22, 2013 14:47
-
-
Save caisui/7601028 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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