News for hackers. Stuff that matters.
Re:Simple user styles for popular websites by skcin7 on Tuesday February 26, 2013 @06:10PM (#5289331)
I just tried Stylish add-on for Firefox. Works great except I can't seem to figure out a way to make custom styles work for only a specific page. Maybe I'm missing something but there doesn't seem to be a way.

For example if you have .margin-width CSS class defined it will work on any page that has .margin-width CSS class, not just desired page (like Facebook).

Re:Simple user styles for popular websites by bpierre on Tuesday February 26, 2013 @06:24PM (#5289377)
You can use @-moz-document, I’m using this with dotjs for Firefox https://github.com/rlr/dotjs-addon#css
Re:Simple user styles for popular websites by KwanEsq on Tuesday February 26, 2013 @08:12PM (#5289824)
As bpierre said @-moz-document rule, which I just discovered has actually been unprefixed since Fx6.

Here's the MDN page detailing it and the various functions:

https://developer.mozilla.org/en-US/docs/CSS/@document

Re:Simple user styles for popular websites by pbhjpbhj on Wednesday February 27, 2013 @11:53AM (#5293307)
So @document means you can bypass the addon and just use the user stylesheet to implement the same thing. Didn't know about @document.