Stylish for Google Chrome

edited March 2010 in userstyles.org
Here you go. Fairly basic functionality, but good enough to use. If it's popular enough, I'll keep developing it.

Comments

  • Thanks Jason.

    I'm not entirely sure if this is because of the limited functionality, but none of the styles I've been trying out with Stylish seem to be working.

    In addition, when I view any user styles on here, there is only the option to install as a user script, so I'm not sure if there is a bug with Stylish or an incompatability with Chrome.

    Looking forward to seeing what you come up with in the near future :)
  • edited March 2010
    Is your javascript on? I don't use chrome and don't know if you can turn it on/off like you can in Fx.
  • edited March 2010
    Javascript is on by default in Chrome, so there's no problems there. You can turn it on or off like in Fx as well.

    Okay, I got a user style to change Google's appearance and a small portion of it works. So Stylish is working, but it might be missing a few things. Not sure how many other people do use Stylish for Chrome though.
  • Not all styles are installable in Stylish for Chrome. Currently there's no way of searching for just Chrome styles... Which style are you trying to install?
  • edited March 2010
    I mainly use styles for deviantart.com since that's the site I use the most.

    The style that I've been trying to use is dA Dark Gray (it's just a lightweight version of the actual user style itself, but there's no option available to import CSS into Stylish).


    I've noticed that some of the more recent styles allow to be installed into Stylish in Chrome, so perhaps it might just be the way that some userstyles are coded?
  • Would it be safe to assume that commenting and all the Mozilla-specific (-moz) coding isn't supported in Stylish for Chrome? I think that might explain why some of the user styles won't work. (That being said, the commenting and -moz coding is removed when the style is installed from the userstyles.org site) Stylish might also be pretty grouchy when it comes to formatting as well, because this style in particular is pretty much one huge line of code.

    This is the style in question. it's basically a much larger .css file than this one because of the character restraint on here.
  • Posted By: TraedirasI've noticed that some of the more recent styles allow to be installed into Stylish in Chrome, so perhaps it might just be the way that some userstyles are coded?
    Currently, it only allows styles that have one (or no) -moz-document block. That DeviantArt style has multiple blocks. Coding Stylish for Chrome to accept these is something I'm planning.
    Posted By: TraedirasWould it be safe to assume that commenting and all the Mozilla-specific (-moz) coding isn't supported in Stylish for Chrome?
    The -moz stuff wouldn't work in Chrome, but nothing will prevent you from installing a style that has that stuff in it.
  • Posted By: Jason Barnabe (np)Currently, it only allows styles that have one (or no) -moz-document block. That DeviantArt style has multiple blocks. Coding Stylish for Chrome to accept these is something I'm planning.
    Sounds good, looking forward to that then :) I daresay doing something like that will more than likely make heaps more styles work.
  • It'd bring the percentage of styles available for Chrome from 69% to 85%, so yeah, a good chunk.
  • edited March 2010
    Semi-related:

    Got rid of the @-moz-document tags and I got the style working, but then I came across this problem. I've already asked the person making the style if he's possibly making the style compatible with Chrome, but I suppose this will have to do for the time being. Once the width issue is sorted out then I'll be sticking to Chrome. Edit: I got Firebug Lite for Chrome and made some fixes which have made my life much better, so I won't need to worry talking about the particular style anymore ;)

    And 85% is definitely a significant amount. You ought to be proud of the work you're doing, helping make the web look that much nicer and stuff ;)
  • Nifty... though how different is it, effectively, from installing a style as a script as an extension? Probably ought to wait till Chrome actually supports CSS mods (user/author thingy) "natively" before getting too much into it.
  • Installing something a style and installing something as a script is effectively the same thing here. The differences would be in what else you can do with them, like managing, updating, editing, etc.
  • Posted By: Jason Barnabe (np)The differences would be in what else you can do with them, like managing, updating, editing, etc.
    From a dev point of view, yeah; less relevant for the typical user, in that order (descending). As it is--style as extension, Chrome already provides some built-in support for managing and updating. For editing I just use notepad2. I'm still waiting to learn how they're going to implement support for user style sheets; they were quite undecided as to how and when the last time I checked (several months back... not that I've been paying all that much attention to it).
  • edited April 2010
    edit.
  • To make a style global, just don't provide any URLs or anything.
  • i hope you do develop it and it goes on to be something close to the one for FF =]
    Good Luck
  • I don't get it. :?:

    Stylish for Google Chrome asks for which URLs it applies, but that's an information already included in the CSS itself.

    Plus, in the same user style there may be different rules for different sites (or different sections of the same site) so what I have to set in similar situations? For example, I'm unable to make this style work with Stylish for Google Chrome. :(
  • Google Chrome doesn't support Firefox-style -moz-document rules, so really what ends up happening is Stylish for Google Chrome gets normal CSS and a list of URLs.

    Stylish for Google Chrome doesn't support multiple sections in a style, but it will soon.
  • Quick question - in the bit where i specify which URLs the style applies to, i don't seem to be able to apply a style to all pages on a domain - the given style will only show up on the top level page. I can add individual pages manually, but that's an unworkable solution.

    Is there some way to use wildcards? ie http://www.google.co.uk/*

    Thanks
  • You should be able to do all pages on the domain by choosing "Domain" in the drop down and saying www.google.co.uk.
  • Ah yes, didn't spot the other options in the drop down list.

    Thanks for the quick reply
  • Like what you've done for v0.2! The multiple sections really work out well.

    Is there a possibility in the future to import CSS documents into Stylish (or being able to install them via opening them up in the browser and right clicking to install like what FF Stylish does)? Sure would make updating userstyles a lot easier. :)
  • Anything that Firefox Stylish does is on the table for Chrome Stylish. It's just a matter of popularity - Chrome Stylish has 10,000 active users; Firefox Stylish has 1,000,000. The amount of effort I spend on each is apportioned accordingly.
  • Hi Jason, thanks for v0.2 :)
    For the few days that i've been using it, i keep getting a 'database is locked' pop-up randomly.
    I don't get it EVERYTIME, but when i do, the pop-up keeps coming back after a certain while...
    Using the lastest beta..
Sign In or Register to comment.