Stopped working with Firefox 40 (not e10s)

Post information about bugs here

Stopped working with Firefox 40 (not e10s)

Postby caspy7 » Sun May 24, 2015 7:27 pm

I'm on Firefox 40 Dev Edition but I have not enabled e10s.

Honestly I only have one button and I didn't write the code for it. It enables or disables all stylish styles with a click.
It stopped working as soon as I updated from 39 to 40.
caspy7
 
Posts: 4
Joined: Sun May 24, 2015 7:19 pm

Re: Stopped working with Firefox 40 (not e10s)

Postby Odyseus » Tue May 26, 2015 7:31 am

Hello, caspy7.

I use Firefox Developer Edition to create/test my buttons and every single one of the 70+ buttons I use there are working perfectly.

If you want to fix the button that you are currently using, post the button link (Right click on button, Copy to clipboard and publish that URI here).

Or you just can create a new button and put the code bellow inside the Code tab:

Code: Select all
/*CODE*/
if (Services.prefs.getBoolPref("extensions.stylish.styleRegistrationEnabled"))
   stylishOverlay.turnOnOff(false);
else
   stylishOverlay.turnOnOff(true);


Image

Edit:

Another option a little more elaborated. Paste the code bellow inside the Initialization tab of a new button.

Code: Select all
/*Initialization Code*/

this.onclick = function(aEvt) {
   if (aEvt.button === 0 && !aEvt.shiftKey && !aEvt.ctrlKey && !aEvt.altKey) {
      if (Services.prefs.getBoolPref("extensions.stylish.styleRegistrationEnabled"))
         stylishOverlay.turnOnOff(false);
      else
         stylishOverlay.turnOnOff(true);
      setImage();
   }
}

function setImage() {
   if (Services.prefs.getBoolPref("extensions.stylish.styleRegistrationEnabled"))
      self.image = "chrome://stylish/skin/16.png"; // Button image when all styles are ENABLED/ON.
   else
      self.image = "chrome://stylish/skin/16w.png"; // Button image when all styles are DISABLED/OFF.
}

setImage();
Odyseus
 
Posts: 434
Joined: Sun Mar 10, 2013 12:51 pm


Return to Bug report