diff --git a/chrome/content/zotero/preferences/preferences_cite.js b/chrome/content/zotero/preferences/preferences_cite.js index e48784100..ddb0ee574 100644 --- a/chrome/content/zotero/preferences/preferences_cite.js +++ b/chrome/content/zotero/preferences/preferences_cite.js @@ -90,6 +90,20 @@ Zotero_Preferences.Cite = { }), + openStylesPage: function () { + Zotero.openInViewer("https://www.zotero.org/styles/", function (doc) { + // Hide header, intro paragraph, Link, and Source + // + // (The first two aren't sent to the client normally, but hide anyway in case they are.) + var style = doc.createElement('style'); + style.type = 'text/css'; + style.innerHTML = 'h1, #intro, .style-individual-link, .style-view-source { display: none !important; }'; + Zotero.debug(doc.documentElement.innerHTML); + doc.getElementsByTagName('head')[0].appendChild(style); + }); + }, + + /** * Adds a new style to the style pane **/ diff --git a/chrome/content/zotero/preferences/preferences_cite.xul b/chrome/content/zotero/preferences/preferences_cite.xul index 1907458c0..233d0d91a 100644 --- a/chrome/content/zotero/preferences/preferences_cite.xul +++ b/chrome/content/zotero/preferences/preferences_cite.xul @@ -58,7 +58,9 @@ -