Stylish 0.5a2
Stylish 0.5a2
Nearly feature complete. Over and above Stylish 0.5a:
-Thunderbird, Flock, and SeaMonkey support
-the xdata: protocol - just like the data: protocol but fragments work in XBL
Integration with other extensions:
-Rainbow Picker (color picker)
-DOM Inspector (right click a node, copy selector)
-Split Browser (drag a style into Split Browser to edit)
Nearly feature complete. Over and above Stylish 0.5a:
-Thunderbird, Flock, and SeaMonkey support
-the xdata: protocol - just like the data: protocol but fragments work in XBL
Integration with other extensions:
-Rainbow Picker (color picker)
-DOM Inspector (right click a node, copy selector)
-Split Browser (drag a style into Split Browser to edit)
Comments
The most obvious use of XBL in user styles to me is ad blocking. You can write a binding that would make an element remove itself from the document, and you'll probably save some bandwidth that way over just display: none.
#ad { -moz-binding: url("xdata:text/xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxiaW5kaW5ncyB4bWxucz0iaHR0cDovL3d3dy5tb3ppbGxhLm9yZy94YmwiPgogIDxiaW5kaW5nIGlkPSJibG9jayI+CgkJPGltcGxlbWVudGF0aW9uPgoJICAgIDxjb25zdHJ1Y3Rvcj4KCQkJCXZhciBhZCA9IHRoaXM7CgkJCQl2YXIgcGFyZW50ID0gYWQucGFyZW50Tm9kZTsKCQkJCXNldFRpbWVvdXQoZnVuY3Rpb24oKSB7IHBhcmVudC5yZW1vdmVDaGlsZChhZCkgfSwgMCk7CgkJCTwvY29uc3RydWN0b3I+CgkJPC9pbXBsZW1lbnRhdGlvbj4KICA8L2JpbmRpbmc+CjwvYmluZGluZ3M+Cg==#block") !important; }
BTW, Here's some links to the extensions to save people some time:
Here's the sequence of Events,
1. Left CLICK Stylish (StatusBar)
2. Right Click Style to Edit
3. In Stylish CLICK 'It's All Text'
4. Opens Editor - Make changes Save
5. Stylish Goes Yellow for Another Save
6. CLICK Save Button
7. Stylish (Write Window) closes <<<<<<<<<<<<<<<<< Problem!!!!!</font>
I still have the Style I am working on in the Editor and would prefer that Stylish remain open otherwise 1 thru 4 all over again!!!
The result is just another CLICK? when the Editor is open already...
So the desire to make the 'UI' better actually is sort of there but...
So I'll continue Tried and True 1. Left CLICK 2. Right CLICK 3. Right CLICK 4. Select All 5. Right CLICK 6. Paste 7. Save anyway
So you can understand the request for a "Paste All & Save" Button shrinking 3 thru 7 into 1...1>7 is done VERY FREQUENTLY in development. Also the additional steps take away from the 'Train of Thought' when deep in a Stylesheet...
About the only thing it did was hook the Editor with the "Firefox" file, which can be dangerous for manageability... ie recover and so on..., for a single Update... Not very functional/productive in the present form... Don't know what would help?
Preview is for the CSS engagement or for the CSS error checking?
Save applies the CSS permanently, will tell you about any errors, writes the style to the file, and closes the dialog.
That post would work wonders in the FAQ...
one thing though, when clicking save more than once in a pane, a NOT_INITIALIZED js error pops up an alert. i guess save/cancel should close the pane for consistency..?
also, any idea how to access the nodes? i posted a Q in the userchrome.js thread on mozillazine - although a load listener fires code, i get nulls on window.document.getElementById.
Also, userstyles.org doesn't detect that Stylish is installed, so no install button shows up. Manual entry of code works fine.
in install.rdf, add the following:
<!-- Songbird -->
<em:targetApplication>
<Description>
<em:id>songbird@songbirdnest.com</em:id>
<em:minVersion>0.2</em:minVersion>
<em:maxVersion>1.0+</em:maxVersion>
</Description>
</em:targetApplication>
in chrome.manifest add the following line
overlay chrome://rubberducky/content/xul/mainwin.xul chrome://stylish/content/songbirdOverlay.xul
make the songbirdOverlay.xul with the following in it:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://stylish/skin/overlay.css" type="text/css"?>
<!DOCTYPE overlay [
<!ENTITY % common SYSTEM "chrome://stylish/locale/common.dtd">
<!ENTITY % branding SYSTEM "chrome://stylish/content/branding.dtd">
<!ENTITY % overlay SYSTEM "chrome://stylish/locale/overlay.dtd">
%common;
%branding;
%overlay;
]>
<overlay id="stylish-overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="rdfds.js"/>
<script type="application/javascript" src="common.js"/>
<script type="application/javascript" src="StylishStyle.js"/>
<script type="application/javascript" src="commonOverlay.js"/>
<script type="application/javascript" src="browserOverlay.js"/>
<!-- statusbar Songbird -->
<hbox id="frame_status_pane">
<stringbundle id="stylish-strings" src="chrome://stylish/locale/stylish.properties"/>
<stringbundle id="stylish-url-strings" src="chrome://stylish/content/urls.properties"/>
<vbox id="stylish-panel" src="chrome://stylish/skin/smallicon.png" class="statusbarpanel-menu-iconic" tooltiptext="&stylish;" onclick="stylishCommonOverlay.handleStatusClick(event)">
<menupopup id="stylish-status-popup" onpopupshowing="stylishBrowserOverlay.mainPopupShowing(event)" onpopuphiding="stylishBrowserOverlay.clearStyleMenuItems(event)">
<menuitem label="&stylish.manageSites;" accesskey="&stylish.manageSites.ak;" oncommand="stylishCommonOverlay.openManageStyles()"/>
<menuitem id="stylish-add-file" label="&stylish.addfile;" accesskey="&stylish.addfile.ak;" oncommand="stylishBrowserOverlay.addFile()"/>
<menuitem label="&stylish.findStyleBrowser;" accesskey="&stylish.findStyleBrowser.ak;" oncommand="stylishBrowserOverlay.findStyle(event)" onclick="checkForMiddleClick(this, event)"/>
<menu id="stylish-write-style-menu" label="&stylish.writeStyle;" accesskey="&stylish.writeStyle.ak;">
<menupopup onpopupshowing="stylishBrowserOverlay.writeStylePopupShowing(event)" onpopuphiding="stylishCommonOverlay.clearMenu(event)"/>
</menu>
<menuseparator/>
<menu id="stylish-global-styles" label="&stylish.globalStyles;" accesskey="&stylish.globalStyles.ak;">
<menupopup onpopupshowing="stylishBrowserOverlay.showGlobalStyles(event)" onpopuphiding="stylishBrowserOverlay.clearStyleMenuItems(event)"/>
</menu>
</menupopup>
</vbox>
</hbox>
</overlay>
Left Click (on Stylish statusbar icon) opens Manage Styles
Right Click opens the usual menu
-You will still be able to use XBL through normal (http) URLs in Stylish.
-In Firefox 3.0, you will additionally be able to use XBL through data URLs in Stylish.
-There will be no extra xdata protocol in the next version of Stylish that will make data-like URLs work in Firefox 1.5 or 2.0.
-You still won't be able to post styles on userstyles that include XBL (due to security concerns).