Addon: QuickJava
Version: 2.1.2
The first part of making it install on PM 27 is easy change to install.rdf
Install.rdf
find wrote:Code: Select all
<em:minVersion>44.0</em:minVersion>
Next we need to fix the CSS button and control issue. This is done by reversing some of the CSS changes found in 2.0.5 - 2.0.8 -- Nov 2, 2014 7b1c9fa && Mar 22, 2016 7d39daareplace wrote:Code: Select all
<em:minVersion>24.0</em:minVersion>
content\browserOverlay.js
find wrote:Code: Select all
var setSheet = ''; var firstSheet = ''; var curSheetAry = gPageStyleMenu.getBrowserStyleSheets(); for (curSheetIdx in curSheetAry) { //this.consoleLog('gPageStyleMenu *' + curSheetAry[curSheetIdx].title + '*'); setSheet = curSheetAry[curSheetIdx].title; if (curSheetAry[curSheetIdx].title == 'screen') { break; } if (firstSheet == '') { firstSheet = setSheet; } } //if we didn't find one named 'screen' then use the first one we found if (setSheet != 'screen') { setScreen = firstSheet; } gPageStyleMenu.switchStyleSheet(setSheet);
content\browserOverlay.jsreplace wrote:Code: Select all
gPageStyleMenu.switchStyleSheet('');
find wrote:Code: Select all
if (whichIcon == this.qj_CS) { let styleSheetInfo = gPageStyleMenu._getStyleSheetInfo(gBrowser.selectedBrowser); let styleSheets = styleSheetInfo.filteredStyleSheets; return !(styleSheetInfo.authorStyleDisabled); }
That's it. Save your changes, repack your XPI and install. CSS Toolbar or Statusbar buttons should now work and toggle CSS rendering properly on Pale Moon 27 & 28replace wrote:Code: Select all
if (whichIcon == this.qj_CS) { return !(getMarkupDocumentViewer().authorStyleDisabled); }