From 122dbe46242e9aa0e47d16e3d937ca91ad0f0e88 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 30 Aug 2008 03:42:04 +0000 Subject: [PATCH] allow :dialog to open the cookies manager --- NEWS | 1 + content/vimperator.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 42ba35d4..352b62ab 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@
 2008-08-16:
     * version 2.0 (probably)
+    * allow :dialog to open the cookies manager
     * add 'loadplugins' option
     * add count support to C-^ (Kazuo)
     * add 'eventignore' option
diff --git a/content/vimperator.js b/content/vimperator.js
index 45676156..2f6670f6 100644
--- a/content/vimperator.js
+++ b/content/vimperator.js
@@ -59,6 +59,8 @@ liberator.config = { //{{{
             function () { checkForUpdates(); }],
         ["cleardata",        "Clear private data",
             function () { Cc[GLUE_CID].getService(Ci.nsIBrowserGlue).sanitize(window || null); }],
+        ["cookies",          "List your cookies",
+            function () { toOpenWindowByType("Browser:Cookies", "chrome://browser/content/preferences/cookies.xul", "chrome,dialog=no,resizable"); }],
         ["console",          "JavaScript console",
             function () { toJavaScriptConsole(); }],
         ["customizetoolbar", "Customize the Toolbar",
@@ -66,7 +68,7 @@ liberator.config = { //{{{
         ["dominspector",     "DOM Inspector",
             function () { try { inspectDOMDocument(content.document); } catch (e) { liberator.echoerr("DOM Inspector extension not installed"); } }],
         ["downloads",        "Manage Downloads",
-            function () { toOpenWindowByType('Download:Manager', 'chrome://mozapps/content/downloads/downloads.xul', 'chrome,dialog=no,resizable'); }],
+            function () { toOpenWindowByType("Download:Manager", "chrome://mozapps/content/downloads/downloads.xul", "chrome,dialog=no,resizable"); }],
         ["history",          "List your history",
             function () { openDialog("chrome://browser/content/history/history-panel.xul", "History", "dialog,centerscreen,width=600,height=600"); }],
         ["import",           "Import Preferences, Bookmarks, History, etc. from other browsers",