From a3668850ebb38f57a1ea4e98bbac91731a49cfcd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 26 Aug 2019 06:59:02 -0400 Subject: [PATCH] Fx60: Add missing UA styles to styles page For some reason the standard UA styles are no longer included in HTML files loaded in a in Firefox 60. --- chrome/content/zotero/preferences/preferences_cite.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_cite.js b/chrome/content/zotero/preferences/preferences_cite.js index cc4590918b..d425d0f528 100644 --- a/chrome/content/zotero/preferences/preferences_cite.js +++ b/chrome/content/zotero/preferences/preferences_cite.js @@ -125,8 +125,11 @@ Zotero_Preferences.Cite = { // (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); + style.innerHTML = 'h1, #intro, .style-individual-link, .style-view-source { display: none !important; }' + // TEMP: Default UA styles that aren't being included in Firefox 60 for some reason + + 'html { background: #fff; }' + + 'a { color: rgb(0, 0, 238) !important; text-decoration: underline; }' + + 'a:active { color: rgb(238, 0, 0) !important; }'; doc.getElementsByTagName('head')[0].appendChild(style); }); },