Add pref browserContentContextMenu to disable Zotero context menu items in the browser content area -- will make non-hidden after the string freeze
This commit is contained in:
parent
dd3acad06b
commit
b9793ac765
|
@ -1616,6 +1616,10 @@ var ZoteroPane = new function()
|
||||||
// Updates browser context menu options
|
// Updates browser context menu options
|
||||||
function contextPopupShowing()
|
function contextPopupShowing()
|
||||||
{
|
{
|
||||||
|
if (!Zotero.Prefs.get('browserContentContextMenu')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var menuitem = document.getElementById("zotero-context-add-to-current-note");
|
var menuitem = document.getElementById("zotero-context-add-to-current-note");
|
||||||
var showing = false;
|
var showing = false;
|
||||||
if (menuitem){
|
if (menuitem){
|
||||||
|
|
|
@ -51,18 +51,18 @@
|
||||||
</toolbarpalette>
|
</toolbarpalette>
|
||||||
|
|
||||||
<popup id="contentAreaContextMenu">
|
<popup id="contentAreaContextMenu">
|
||||||
<menuseparator id="zotero-context-separator"/>
|
<menuseparator id="zotero-context-separator" hidden="true"/>
|
||||||
<menuitem id="zotero-context-add-to-current-note" class="menu-iconic"
|
<menuitem id="zotero-context-add-to-current-note" class="menu-iconic"
|
||||||
label="&zotero.contextMenu.addTextToCurrentNote;"
|
label="&zotero.contextMenu.addTextToCurrentNote;" hidden="true"
|
||||||
oncommand="ZoteroPane.addTextToNote(window.content.getSelection().toString())"/>
|
oncommand="ZoteroPane.addTextToNote(window.content.getSelection().toString())"/>
|
||||||
<menuitem id="zotero-context-add-to-new-note" class="menu-iconic"
|
<menuitem id="zotero-context-add-to-new-note" class="menu-iconic"
|
||||||
label="&zotero.contextMenu.addTextToNewNote;"
|
label="&zotero.contextMenu.addTextToNewNote;" hidden="true"
|
||||||
oncommand="var itemID = ZoteroPane.addItemFromPage(); ZoteroPane.newNote(false, itemID, window.content.getSelection().toString())"/>
|
oncommand="var itemID = ZoteroPane.addItemFromPage(); ZoteroPane.newNote(false, itemID, window.content.getSelection().toString())"/>
|
||||||
<menuitem id="zotero-context-save-link-as-snapshot" class="menu-iconic"
|
<menuitem id="zotero-context-save-link-as-snapshot" class="menu-iconic"
|
||||||
label="&zotero.contextMenu.saveLinkAsSnapshot;"
|
label="&zotero.contextMenu.saveLinkAsSnapshot;" hidden="true"
|
||||||
oncommand="Zotero.Attachments.importFromURL(window.gContextMenu.linkURL, false, false, false, ZoteroPane.getSelectedCollection(true))"/>
|
oncommand="Zotero.Attachments.importFromURL(window.gContextMenu.linkURL, false, false, false, ZoteroPane.getSelectedCollection(true))"/>
|
||||||
<menuitem id="zotero-context-save-image-as-snapshot" class="menu-iconic"
|
<menuitem id="zotero-context-save-image-as-snapshot" class="menu-iconic"
|
||||||
label="&zotero.contextMenu.saveImageAsSnapshot;"
|
label="&zotero.contextMenu.saveImageAsSnapshot;" hidden="true"
|
||||||
oncommand="Zotero.Attachments.importFromURL(window.gContextMenu.onImage ? window.gContextMenu.imageURL : window.gContextMenu.bgImageURL, false, false, false, ZoteroPane.getSelectedCollection(true))"/>
|
oncommand="Zotero.Attachments.importFromURL(window.gContextMenu.onImage ? window.gContextMenu.imageURL : window.gContextMenu.bgImageURL, false, false, false, ZoteroPane.getSelectedCollection(true))"/>
|
||||||
</popup>
|
</popup>
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ pref("extensions.zotero.automaticScraperUpdates",true);
|
||||||
pref("extensions.zotero.cacheTranslatorData",true);
|
pref("extensions.zotero.cacheTranslatorData",true);
|
||||||
pref("extensions.zotero.zoteroPaneOnTop",false);
|
pref("extensions.zotero.zoteroPaneOnTop",false);
|
||||||
pref("extensions.zotero.statusBarIcon", 2);
|
pref("extensions.zotero.statusBarIcon", 2);
|
||||||
|
pref("extensions.zotero.browserContentContextMenu", true);
|
||||||
pref("extensions.zotero.openURL.resolver","http://athene.gmu.edu:8888/lfp/LinkFinderPlus/Display");
|
pref("extensions.zotero.openURL.resolver","http://athene.gmu.edu:8888/lfp/LinkFinderPlus/Display");
|
||||||
pref("extensions.zotero.openURL.version","0.1");
|
pref("extensions.zotero.openURL.version","0.1");
|
||||||
pref("extensions.zotero.parseEndNoteMIMETypes",true);
|
pref("extensions.zotero.parseEndNoteMIMETypes",true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user