diff --git a/chrome.manifest b/chrome.manifest
index f6a1e07533..aabd04d476 100644
--- a/chrome.manifest
+++ b/chrome.manifest
@@ -64,10 +64,6 @@ locale zotero zh-TW chrome/locale/zh-TW/zotero/
skin zotero default chrome/skin/default/zotero/
-overlay chrome://browser/content/browser.xul chrome://zotero/content/overlay.xul
-
-style chrome://browser/content/browser.xul chrome://zotero/skin/zotero.css
-
component {e4c61080-ec2d-11da-8ad9-0800200c9a66} components/zotero-service.js
component {531828f8-a16c-46be-b9aa-14845c3b010f} components/zotero-service.js
contract @zotero.org/Zotero;1 {e4c61080-ec2d-11da-8ad9-0800200c9a66}
diff --git a/chrome/content/zotero-platform/mac/standalone/menuOverlay.xul b/chrome/content/zotero-platform/mac/standalone/menuOverlay.xul
deleted file mode 100644
index a02c917273..0000000000
--- a/chrome/content/zotero-platform/mac/standalone/menuOverlay.xul
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
- %brandDTD;
- %standaloneDTD;
- %browserDTD;
-]>
-
diff --git a/chrome/content/zotero-platform/unix/standalone/menuOverlay.xul b/chrome/content/zotero-platform/unix/standalone/menuOverlay.xul
deleted file mode 100644
index 0e4b1ed670..0000000000
--- a/chrome/content/zotero-platform/unix/standalone/menuOverlay.xul
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
- %brandDTD;
- %standaloneDTD;
- %browserDTD;
-]>
-
diff --git a/chrome/content/zotero-platform/win/standalone/menuOverlay.xul b/chrome/content/zotero-platform/win/standalone/menuOverlay.xul
deleted file mode 100644
index 5105683986..0000000000
--- a/chrome/content/zotero-platform/win/standalone/menuOverlay.xul
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
- %brandDTD;
- %standaloneDTD;
- %browserDTD;
-]>
-
diff --git a/chrome/content/zotero/containers/containers.xul b/chrome/content/zotero/containers/containers.xul
deleted file mode 100644
index bb5b6f9d54..0000000000
--- a/chrome/content/zotero/containers/containers.xul
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/chrome/content/zotero/containers/tagSelector.xul b/chrome/content/zotero/containers/tagSelector.xul
deleted file mode 100644
index 6963bee568..0000000000
--- a/chrome/content/zotero/containers/tagSelector.xul
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
- %globalDTD;
- %zoteroDTD;
-]>
-
-
-
-
-
\ No newline at end of file
diff --git a/chrome/content/zotero/containers/tagsBox.xul b/chrome/content/zotero/containers/tagsBox.xul
deleted file mode 100644
index ff69329398..0000000000
--- a/chrome/content/zotero/containers/tagsBox.xul
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
- %globalDTD;
- %zoteroDTD;
-]>
-
-
-
-
-
-
\ No newline at end of file
diff --git a/chrome/content/zotero/itemPane.xul b/chrome/content/zotero/itemPane.xul
deleted file mode 100644
index 8d48762550..0000000000
--- a/chrome/content/zotero/itemPane.xul
+++ /dev/null
@@ -1,149 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- &zotero.duplicatesMerge.versionSelect;
-
-
-
-
-
-
- &zotero.duplicatesMerge.fieldSelect;
-
-
-
-
-
-
\ No newline at end of file
diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul
deleted file mode 100644
index 82709c4c22..0000000000
--- a/chrome/content/zotero/overlay.xul
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
- %globalDTD;
- %zoteroDTD;
-]>
-
-
-
-
-
-
-
-
-
-
-
diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul
index 0f8a875ead..f4bfe2338e 100644
--- a/chrome/content/zotero/preferences/preferences.xul
+++ b/chrome/content/zotero/preferences/preferences.xul
@@ -23,7 +23,10 @@
***** END LICENSE BLOCK *****
-->
-
+ %zoteroDTD;
+ %preferencesDTD;
+]>
@@ -46,45 +49,918 @@
windowtype="zotero:pref"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ &zotero.preferences.sync.reset.warning1;&zotero.preferences.sync.reset.warning3;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ &zotero.preferences.attachmentBaseDir.message;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/chrome/content/zotero/preferences/preferences_search.xul b/chrome/content/zotero/preferences/preferences_search.xul
deleted file mode 100644
index b5791f1f51..0000000000
--- a/chrome/content/zotero/preferences/preferences_search.xul
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/chrome/content/zotero/preferences/preferences_sync.xul b/chrome/content/zotero/preferences/preferences_sync.xul
deleted file mode 100644
index 3f56e1baae..0000000000
--- a/chrome/content/zotero/preferences/preferences_sync.xul
+++ /dev/null
@@ -1,330 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- &zotero.preferences.sync.reset.warning1;&zotero.preferences.sync.reset.warning3;
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/chrome/content/zotero/standalone/editMenuOverlay.xul b/chrome/content/zotero/standalone/editMenuOverlay.xul
deleted file mode 100644
index 93ec9cb50c..0000000000
--- a/chrome/content/zotero/standalone/editMenuOverlay.xul
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
-
- %standaloneDTD;
- %editMenuOverlayDTD;
-]>
-
-
-
diff --git a/chrome/content/zotero/standalone/standalone.xul b/chrome/content/zotero/standalone/standalone.xul
deleted file mode 100644
index 6956c24c8c..0000000000
--- a/chrome/content/zotero/standalone/standalone.xul
+++ /dev/null
@@ -1,584 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- %globalDTD;
- %textcontextDTD;
- %standaloneDTD;
- %editMenuOverlayDTD;
- %brandDTD;
- %zoteroDTD;
-]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/chrome/content/zotero/zoteroPane.xul b/chrome/content/zotero/zoteroPane.xul
index d096fba177..ec70635e44 100644
--- a/chrome/content/zotero/zoteroPane.xul
+++ b/chrome/content/zotero/zoteroPane.xul
@@ -25,35 +25,656 @@
-->
+
+
+
-
+
+
+
- %globalDTD;
+ %textcontextDTD;
+ %standaloneDTD;
+ %brandDTD;
%zoteroDTD;
%dialogOverlayDTD;
]>
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -75,7 +696,7 @@
-
+
@@ -387,7 +1008,118 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ &zotero.duplicatesMerge.versionSelect;
+
+
+
+
+
+
+ &zotero.duplicatesMerge.fieldSelect;
+
+
+
+
+
@@ -470,4 +1202,57 @@
-
+
+
+
+
+
+
+
+
+
+