Stylish 0.5a
Stylish 0.5a
It's not feature-complete, but it's got a lot of stuff:
Manage dialog:
-Pretty icons
-Filter
-Englisher "Applies to" values
Edit dialog:
-Data URI upload
-!important-izer
-Reshuffled UI
-Simple/advanced views on install
-It's All Text integration
General:
-Accesskeys galore
-Cleaned up code
-SeaMonkey support
Caveats:
-SeaMonkey support not tested
-Thunderbird support not tested and unlikely to work
-en-US only
It's not feature-complete, but it's got a lot of stuff:
Manage dialog:
-Pretty icons
-Filter
-Englisher "Applies to" values
Edit dialog:
-Data URI upload
-!important-izer
-Reshuffled UI
-Simple/advanced views on install
-It's All Text integration
General:
-Accesskeys galore
-Cleaned up code
-SeaMonkey support
Caveats:
-SeaMonkey support not tested
-Thunderbird support not tested and unlikely to work
-en-US only
Comments
New interface looks nice & I like the new icons, but when I try to edit a style, button opens a small empty window.
Like Doorman, I'm getting some problem when trying to edit a style. The first time I edit a style it seems to work, but the window isn't being drawn properly...it's like the window size isn't being calculated properly. One time it just created a window that was just the titlebar, and then another time it looked like this:
The second time I try to edit a style, no edit window pops up at all.
The error console says:
No chrome package registered for chrome://itsalltext/content/API.js .
Also, when I close firefox, it doesn't close properly....I have to kill the process manually.
I'm using Firefox 2.0.0.2 with a newly created profile on WinXP.
I found one bug with the search box though...if you type in something that won't match any styles like "sadfkjhsa", it will say that I have no styles installed and that I should visit userstyles.org. The only way to see my styles is to close and then open the manager window again.
I wonder if those experiencing difficulties might have "Stylish" related entries in 'userChrome.js', 'userChrome.css' or "Stylish", itself, that may be causing the problem?
One suggestion; either have the links open in a new tab, rather than window, or give users the option. Other than that, I like it.
Warning: reference to undefined property primary.childNodes[i]
Source file: chrome://stylish/content/browserOverlay.js
Line: 176
Then when editing the first style:
No chrome package registered for chrome://itsalltext/content/API.js .
Opens but small.
Close and try to edit again, no response but a little activitiy on the mouse pointer for a second or two. Click edit or doubleclick a style a second time and the window opens tiny and empty.
Fx 2.0.0.2 on Vista RTM. I'll try a clean profile and report.
i also had a Fx 2.0.0.2 freeze (had to taskmgr kill) upon choosing a style and clicking Edit.
I haven't seen this edit problem yet.
currently double clicking a style first time on restart brings up the editor properly, on a second try it brings up a tiny titlebar which when drag expanded is just a blank window with horizontal double arrow.. on a minimal profile, with Manage Styles both as external window and from sidebar.
in console, only a sessionstore.js error and:
No chrome package registered for chrome://itsalltext/content/API.js .
[Ext] userChrome.js 0.7 - mozillaZine Forums
function makeImportant() {
//preserve scroll position
var box = codeElement.mInputField;
var scroll = [box.scrollTop, box.scrollLeft];
...your code...
//restore scroll position
box.scrollTop = scroll[0];
box.scrollLeft = scroll[1];
}
Also, I've seen cases where people use "! important" with a space, which is valid. In that case a second !important is added. This is fixed by using !\s*important in the line that checks for !important already being there. I changed it on my end and it works great!
Awesome work on this, my favorite extension.
pile0nades, thanks, I'll try that out.
#thread {
color: #eee !important;
color: #eee
}
No matter, it's easier to right click them anyway.
--- content\manage.xul 2007-02-25 18:21:12.000000000 +0700 +++ content-mod\manage.xul 2007-03-06 22:15:54.000000000 +0700 @@ -42,6 +42,17 @@ <key keycode="VK_F1" oncommand="document.getElementById('help-link').click()"/> </keyset> + <popupset> + <popup id="stylish-manager-popup"> + <menuitem id="context-add" label="&write;" accesskey="&write.ak;" oncommand="openAdd()"/> + <menuitem id="context-edit" label="&edit;" accesskey="&edit.ak;" oncommand="handleEditButtonClick()"/> + <menuitem id="context-delete" label="&stylish.delete;" accesskey="&stylish.delete.ak;" oncommand="handleDeleteButtonClick()"/> + <menuseparator id="stylish-manager-popup-separator"/> + <menuitem id="context-update" label="&findupdates;" accesskey="&findupdates.ak;" oncommand="findUpdateButtonClick()"/> + <menuitem id="context-help" label="&help;" accesskey="&help.ak;" oncommand="document.getElementById('help-link').click()"/> + </popup> + </popupset> + <label id="help-link" class="text-link" href="http://userstyles.org/stylish/help"/> <deck id="hide-tree" flex="1"> @@ -58,7 +69,7 @@ &info; </description> - <tree id="styles" flex="1" editable="true" onselect="changeSelection()" persist="sortDirection sortResource" sortDirection="ascending" sortResource="description" onkeypress="styleListKeyPress(event)" enableColumnDrag="true"> + <tree id="styles" flex="1" editable="true" onselect="changeSelection()" persist="sortDirection sortResource" sortDirection="ascending" sortResource="description" onkeypress="styleListKeyPress(event)" enableColumnDrag="true" context="stylish-manager-popup"> <treecols> <treecol id="description" label="&stylish.description;" flex="1" persist="width ordinal hidden" onclick="sort(this)" class="sortDirectionIndicator" sortDirection="ascending"/> <splitter class="tree-splitter"/>