diff --git a/chrome/content/zotero-platform/mac/standalone/baseMenuOverlay.xul b/chrome/content/zotero-platform/mac/standalone/baseMenuOverlay.xul
new file mode 100644
index 0000000000..6dadfb47ad
--- /dev/null
+++ b/chrome/content/zotero-platform/mac/standalone/baseMenuOverlay.xul
@@ -0,0 +1,149 @@
+
+
+
+
+
+%brandDTD;
+
+%baseMenuOverlayDTD;
+]>
+
diff --git a/chrome/content/zotero-platform/unix/standalone/baseMenuOverlay.xul b/chrome/content/zotero-platform/unix/standalone/baseMenuOverlay.xul
new file mode 100644
index 0000000000..501fb689bf
--- /dev/null
+++ b/chrome/content/zotero-platform/unix/standalone/baseMenuOverlay.xul
@@ -0,0 +1,85 @@
+
+
+
+
+
+%brandDTD;
+
+%baseMenuOverlayDTD;
+]>
+
diff --git a/chrome/content/zotero-platform/win/standalone/baseMenuOverlay.xul b/chrome/content/zotero-platform/win/standalone/baseMenuOverlay.xul
new file mode 100644
index 0000000000..b5797441bd
--- /dev/null
+++ b/chrome/content/zotero-platform/win/standalone/baseMenuOverlay.xul
@@ -0,0 +1,85 @@
+
+
+
+
+
+%brandDTD;
+
+%baseMenuOverlayDTD;
+]>
+
diff --git a/chrome/content/zotero/standalone.js b/chrome/content/zotero/standalone.js
index 0c9135abf6..94cbaae8dd 100644
--- a/chrome/content/zotero/standalone.js
+++ b/chrome/content/zotero/standalone.js
@@ -23,7 +23,9 @@
***** END LICENSE BLOCK *****
*/
-/*
+Components.utils.import("resource://gre/modules/Services.jsm");
+
+/**
* This object contains the various functions for the interface
*/
var ZoteroStandalone = new function()
@@ -56,5 +58,23 @@ var ZoteroStandalone = new function()
}
}
+/** Taken from browser.js **/
+function toJavaScriptConsole() {
+ toOpenWindowByType("global:console", "chrome://global/content/console.xul");
+}
+
+function toOpenWindowByType(inType, uri, features)
+{
+ var topWindow = Services.wm.getMostRecentWindow(inType);
+
+ if (topWindow) {
+ topWindow.focus();
+ } else if(features) {
+ window.open(uri, "_blank", features);
+ } else {
+ window.open(uri, "_blank", "chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar");
+ }
+}
+
window.addEventListener("load", function(e) { ZoteroStandalone.onLoad(e); }, false);
window.addEventListener("unload", function(e) { ZoteroStandalone.onUnload(e); }, false);
\ No newline at end of file
diff --git a/chrome/content/zotero/standalone.xul b/chrome/content/zotero/standalone.xul
index 1de0632323..4cfbda37f9 100644
--- a/chrome/content/zotero/standalone.xul
+++ b/chrome/content/zotero/standalone.xul
@@ -1,4 +1,29 @@
+
+
@@ -6,6 +31,7 @@
+
@@ -14,7 +40,7 @@
%charsetDTD;
%textcontextDTD;
-
+
%standaloneDTD;
%brandDTD;
@@ -94,7 +120,6 @@