Stylish for Firefox 1.2.5b1

edited December 2011 in Stylish
Available here
  • Editor will prompt to save if you cancel with unsaved changes.
  • When inserting predefined text into the editor, it will retain the vertical scroll position.
  • Fixed a localization bug that made "User Styles" show up in the add-ons manager regardless of what language the browser is set to.

Comments

  • > When inserting predefined text into the editor, it will retain the vertical scroll position.
    nice, thank you very much
  • I'm trying it in Aurora & Nightly ...
    I have a dude , the text is all black in the edit window .
    Is "Orion" not supported in the edit window ?
  • I'm trying it in Aurora & Nightly ...
    I have a dude , the text is all black in the edit window .
    Is "Orion" not supported in the edit window ?
    The text is all black and the background is greyish; but I've noticed that even before 1.2.5b1, IINM since Orion was updated a couple of weeks ago in Nightly.
    • Editor will prompt to save if you cancel with unsaved changes.
    I've tried to trigger this, but with no success. I've opened an already saved style or created a new style, edited it a bit and then closed it using the "Cancel" button, the top-right "X" and via the taskbar. No message ever appear. Instead, I've noticed the "Cancel" button not working sometimes. I have no reproducing steps, though.
    Firefox 9.0.1, Windows 7 Home Premium SP1 64bit with Aero.
    • When inserting predefined text into the editor, it will retain the vertical scroll position.
    Thank you! It works as expected! :D
  • Works fine for me. Are you using a non-English build? I don't have the translations yet so looking up the message would result in an error, which would explain what you're seeing.
  • edited December 2011
    And would you please make some API, allow other addon toggling specific style? addons like keyconfig, vimperator and also mouse gesture addon would be welcome that...


    As for orion greyish, same here. In fact, I commented here days ago:
    Nightly 2011-12-15 build, oorion went wrong, again...

    http://forum.userstyles.org/discussion/comment/60853#Comment_60853
  • Works fine for me. Are you using a non-English build? I don't have the translations yet so looking up the message would result in an error, which would explain what you're seeing.
    Ah, I see. Yes, I don't use English. I tried switching to English, and it worked fine! Switching back to Swedish, the following error was shown in the error console:

    uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStringBundle.GetStringFromName]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: XStringBundle :: getString :: line 17" data: no]

    So, problem solved. I'll simply use English for now.
  • Here's the updated sv-SE locale!

    For curiosity, what's the extensions.dtd file for? It seems to translate the whole Add-ons Manager - what has that with Stylish to do?
  • If you want to help out with translation, please do so on Babelzilla. A Swedish translation has already been provided, though.

    extensions.dtd is a copy of the Firefox's file. Stylish reuses some of the strings in there (ex: Disable, Uninstall) rather than redefining its own.
  • And would you please make some API, allow other addon toggling specific style? addons like keyconfig, vimperator and also mouse gesture addon would be welcome that...
    There's already a fairly simple API for doing so. If you check you the .idl files inside Stylish you can see what methods are available via XPCOM.
  • edited January 2012
    There's already a fairly simple API for doing so. If you check you the .idl files inside Stylish you can see what methods are available via XPCOM.
    I'm not familiar with XPCOM, would you please tell me more about it? or show me how to enable a style name "awesome style" by command?

    And about the editor turns gray in nightly since 20111215, this bug is suspect:

    Bug 511909 – [css3-conditional] allow @-rules inside of @media and @-moz-document
    https://bugzilla.mozilla.org/show_bug.cgi?id=511909
  • var service = Components.classes["@userstyles.org/style;1"].getService(Components.interfaces.stylishStyle) var style = service.find(1, service.REGISTER_STYLE_ON_CHANGE); // 1 is the id of the style style.enabled = false; style.save();
    Other method signatures are in stylishStyle.idl in the extension.
  • var service = Components.classes["@userstyles.org/style;1"].getService(Components.interfaces.stylishStyle) var style = service.find(1, service.REGISTER_STYLE_ON_CHANGE); // 1 is the id of the style style.enabled = false; style.save();
    Other method signatures are in stylishStyle.idl in the extension.
    thanks, that really helpful.
  • The updated sv-SE locale is good and has many improvements, but has a few problems. It contains misspellings, and a few totally faulty or confusing or less accurate (than before) translations. Sometimes it's clear that the translator hasn't checked in what context some strings are used, and sometimes it's obvious that the translator does not know what things actually mean. For example, "Copy Selector" was not understandable at all. Moreover, the translator has changed the translation for "style", which is used numerous times throughout the add-on. That will confuse a lot of users - including me - so I changed it back. I think that the translator wanted to use a "totally" Swedish word - "skal" - instead of a newer Swedish word (perhaps not "officially", but wide-spread), taken from English - "style". So it's actually the same word as in English. That's a lot more simple and less ambiguous: "skal" can easily be mistaken for "teman" = "themes", while "style" cannot, IMO. The translation for "tags" was also changed (from "taggar" to "etiketter"). It's better to keep with the old one ("taggar"), since that's the translation used for tags by "professional" translators. For example the Windows Vista and 7 sv-SE translations use "taggar".

    I've tried to use BabelZilla many times in the past, but it has never worked out for me. When I tried going there today, Firefox blocked the site, telling me that it's unsafe and uses an invalid security certificate. So please accept this fixed translation I provide here.
  • Came up with a thought. Could tabbed libraries be added to stylish?

    Let me elaborate on this some more. Have customizable edit/add/delete libraries where we would be able to place "organize" userstyles into a library. Have these libraries have an option to turn into Tabs inside Stylish and have unlimited creation of these libraries. Be able to change title of libraries etc, completely editable.

    I find this would be a strong feature.

    What are some thoughts on this?
  • Do mean like organizing the styles in like folders - as in Windows Explorer? That's something i'd need.

    In Firefox 3.6 I used tags to achieve that - when sorting by tag, you get a folder-like experience. However, you can't have nested "folders", though, but it was good enough.

    However, in Firefox 4+, tag sorting isn't possible when using Stylish in the Add-ons Manager (which I do). So, instead I started renaming my styles, adding their former tag name as a (though shorted down) prefix, like "A" for glass styles and so on, so that when sorting alphabetically, styles "from the same folder" would be placed next to each other, and then I created a style that puts separators between the different "folders" - styles with the same prefix in their name, that is. Still, no nesting (well, perhaps through some more complicated system), but now also no collapsing of "folders" (tags are collapsable). Works quite well, though.

    That said, being able to put styles in "folders", and folders in folders, would be a nice feature. But, my guess is that the Add-on Manager limitations won't make it possible ...
  • Yeah, I'm pretty much stuck with how the Add-on Manager does things. It's good in that it makes it easy to make things consistent, but it's bad in that I can't go and add very much to it...
  • I couldn't agree more.

    And Jason, could you take a look at this?
  • Yes, I will be using your translation when I do the final release.
Sign In or Register to comment.