Use style menu

Talk about add-ons and extension development.
Post Reply
clav
Posts: 1974
Joined: November 5th, 2002, 3:25 am
Location: Lancaster, UK
Contact:

Use style menu

Post by clav »

i've just made a phoenix extension to add back the functionality of Mozilla's View->Use Style menu (allows you to choose alternate style sheets for a page). The extension adds a toolbar button which pops up the menu rather than putting it under View -> Use Style.

the images for the button do not look good. If anyone could suggest/create something better i'd be happy to hear from them.

get the xpi from http://clav.marhost.com/cssmenu.xpi
You'll need to save the file to disk then drag the file into the phoenix window (or open it via File -> Open File) as the server is sending the wrong mime type.

I suggest the CSS Test Suites at http://www.w3.org/Style/CSS/Test/ as a good place to try it out


also posted in Phoenix Features in response to someones request for this
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Post by seb »

To send the *good* MIME type, you can add something like this to a .htaccess
AddType application/x-xpinstall .xpi
User avatar
cheeaun
Posts: 826
Joined: November 5th, 2002, 10:55 pm
Location: Malaysia
Contact:

Post by cheeaun »

Netsabes wrote:To send the *good* MIME type, you can add something like this to a .htaccess
AddType application/x-xpinstall .xpi


I'm wondering, is this the official MIME type?

BTW, thanks for the extension! It's a great job.
Phoenity http://phoenity.com/
You should follow me on Twitter here http://twitter.com/cheeaun
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Post by seb »

I forgot to add your very extension is very nice, thank you for doing it! :)
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Post by seb »

cheeaun wrote:
AddType application/x-xpinstall .xpi

I'm wondering, is this the official MIME type?
Yes, I think so. Mozilla, Phoenix & friends wouldn't ask for installing, if it wasn't :)
clav
Posts: 1974
Joined: November 5th, 2002, 3:25 am
Location: Lancaster, UK
Contact:

Post by clav »

thanks for the tip about htaccess files Netsabes, but i already knew, its just the server didn't support them.

try http://clav.web1000.com/cssmenu.xpi which is hopefully being served with the correct mimetype.


do people prefer this extension that adds a toolbar button or the one in the phoenix features forum (and now listed on http://texturizer.net/phoenix/ ) which adds back the View -> Use Style menu as it was in Mozilla? Would having different themes for this change your view?
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Post by seb »

I prefer to have it as a toolbar button, but that's because it makes me click less :)
And since I always use the default theme...
devbrain
Posts: 14
Joined: November 8th, 2002, 8:11 pm
Contact:

Post by devbrain »

Bouncing this thread back to the top rather than starting a new one.

Any chance of the extension being upated to support "Use None" as well as "Use Default". I find it really helpful at times to be able to just turn the CSS off entirely.
Dave Baker
User avatar
djst
Moderator
Posts: 2826
Joined: November 5th, 2002, 1:34 am
Location: Sweden
Contact:

Post by djst »

devbrain wrote:Bouncing this thread back to the top rather than starting a new one.

Any chance of the extension being upated to support "Use None" as well as "Use Default". I find it really helpful at times to be able to just turn the CSS off entirely.


I'd like to see that too.
clav
Posts: 1974
Joined: November 5th, 2002, 3:25 am
Location: Lancaster, UK
Contact:

Post by clav »

devbrain wrote:Any chance of the extension being upated to support "Use None" as well as "Use Default". I find it really helpful at times to be able to just turn the CSS off entirely.


I've been working on that and will try and get it finished some time soon (hopefully by the end of the week). I was planning on labelling it "Disable Stylesheets" rather than "Use None"
devbrain
Posts: 14
Joined: November 8th, 2002, 8:11 pm
Contact:

Post by devbrain »

Thanks clav.

I'll be looking out for it!
Dave Baker
Post Reply