Making QuickJava 2.1.2 work on Pale Moon 27 & 28

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

kelendral

Making QuickJava 2.1.2 work on Pale Moon 27 & 28

Unread post by kelendral » 2018-09-09, 13:50

I can only confirm these changes as working for me in my usage.

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>
replace wrote:

Code: Select all

				<em:minVersion>24.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 7d39daa

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);
replace wrote:

Code: Select all

        gPageStyleMenu.switchStyleSheet('');
content\browserOverlay.js
find wrote:

Code: Select all

  if (whichIcon == this.qj_CS) {
    let styleSheetInfo = gPageStyleMenu._getStyleSheetInfo(gBrowser.selectedBrowser);
    let styleSheets = styleSheetInfo.filteredStyleSheets;
    return !(styleSheetInfo.authorStyleDisabled);
  }
replace wrote:

Code: Select all

  if (whichIcon == this.qj_CS) { return !(getMarkupDocumentViewer().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 & 28

User avatar
hidden
Apollo supporter
Apollo supporter
Posts: 30
Joined: 2018-07-24, 15:10

Re: Making QuickJava 2.1.2 work on Pale Moon 27 & 28

Unread post by hidden » 2018-09-09, 17:49

When open new tab or new window run options selected, but when start navigator the icon are red and listed all plugins disable.

Repack job same original .xpi.

kelendral

Re: Making QuickJava 2.1.2 work on Pale Moon 27 & 28

Unread post by kelendral » 2018-09-09, 22:20

Yep, indeed a slight bug. However, clicking the CS button twice gets the bar working for me.
In most cases I load existing sessions anyway and so don't notice the issue.
Last edited by kelendral on 2018-09-09, 22:21, edited 1 time in total.

User avatar
hidden
Apollo supporter
Apollo supporter
Posts: 30
Joined: 2018-07-24, 15:10

Re: Making QuickJava 2.1.2 work on Pale Moon 27 & 28

Unread post by hidden » 2018-09-10, 16:52

Hi, double click on the button active all the favorites and then there is that turn them off one by one. Maybe an earlier version functions better?

Thanks!

Ultor

Re: Making QuickJava 2.1.2 work on Pale Moon 27 & 28

Unread post by Ultor » 2018-12-14, 18:35

Where can I download now?

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Making QuickJava 2.1.2 work on Pale Moon 27 & 28

Unread post by coffeebreak » 2018-12-14, 19:31

Ultor wrote:Where can I download now?

It's available in the Classic Add-ons Archive.

Ultor

Re: Making QuickJava 2.1.2 work on Pale Moon 27 & 28

Unread post by Ultor » 2018-12-16, 20:18

Don't works correctly. :(

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Making QuickJava 2.1.2 work on Pale Moon 27 & 28

Unread post by coffeebreak » 2018-12-16, 21:41

Ultor wrote:Don't works correctly. :(

You might check out PrefBar - it's a similar concept to QuickJava, though the UI is somewhat different.

It can be found in the Classic Add-ons Archive; also its developer has archived the xpi's here.