Monday, April 23, 2012

[Firefox] Hide vertical scrollbar | Ẩn thanh cuộn dọc

Hide vertical scrollbar. It's maybe more interesting and useful, espeacial when using Pentadactyl.

How to get it?
Just put (create new|append) the following css code block to your own userChrome.css
  1. userChrome.css location:
    • On Linux system, it maybe here: ~/.mozilla/firefox/vkuuxfit.default/chrome/userChrome.css
    • On Windows system: I dunnu exactly, please Google it! :3
    The userChrome.css is maybe not exist by default. On Linux, you can use this command to find out where it is:
    find ~/.mozilla/ -iname \*hrome\*css
    You're free to use another pattent such as userChrome.css instead of \*chrome\*.css or something like that.
  2. CSS code:
/* hide vertical scrollbar */
notificationbox {
overflow-x: hidden;
}
browser[type="content-primary"], browser[type="content-targetable"] {
overflow-y: scroll;
margin-right: -12px; /* 12px == width of my scrollbar */
}

P/S: Thanks N30N!
Update: In Pentadactyl (~/.pentadactylrc): set guioptions=[anyvalue but not 'r']