MozillaZine

Use style menu

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

Post Posted November 5th, 2002, 3:46 pm

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

User avatar
 
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France

Post Posted November 5th, 2002, 11:37 pm

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

cheeaun

User avatar
 
Posts: 826
Joined: November 5th, 2002, 10:55 pm
Location: Malaysia

Post Posted November 5th, 2002, 11:42 pm

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

User avatar
 
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France

Post Posted November 5th, 2002, 11:44 pm

I forgot to add your very extension is very nice, thank you for doing it! :)

seb

User avatar
 
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France

Post Posted November 5th, 2002, 11:45 pm

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

Post Posted November 6th, 2002, 4:44 am

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

User avatar
 
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France

Post Posted November 6th, 2002, 10:27 am

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

Post Posted December 14th, 2002, 10:32 am

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

djst
Moderator

User avatar
 
Posts: 2826
Joined: November 5th, 2002, 1:34 am
Location: Sweden

Post Posted December 14th, 2002, 4:05 pm

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

Post Posted December 15th, 2002, 4:52 pm

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

Post Posted December 15th, 2002, 7:38 pm

Thanks clav.

I'll be looking out for it!
Dave Baker

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 2 guests