Use user style sheet to modify the look of a website in Opera
Wednesday, 1. July 2009, 15:26:01
A user style sheet is a text file with CSS declarations. It allows you to have control over the look and feel of website. It can be used to hide annoying things like ads, change fonts and colors, etc.
!important declaration should be added to a rule to take precedence over author style sheet.
User style sheets can be applied to all sites (restart required to apply style sheet) or per-site basis (reload required to apply style sheet).
Example 1: Hide friend request link in My Opera

My Opera friend request link in top bar
- Create a text file with the following and save preferably inside profile\styles directory with CSS file extension.
/* Friend request */ #friendrequest { display: none !important; }
CSS to hide friend request link and share this button - Add path to CSS file in site preferences.

Path to CSS file in site preferences - Reload page to apply style sheet.

My Opera friend request link hidden by CSS
Example 2: Hide sponsored links in Google

Useless Google sponsored links
Google sponsored links can't be blocked by content blocker but it can hidden by following CSS code.
/* Top sponsored links */
#tads { display: none !important; }
/* Side sponsored links */
#mbEnd { display: none !important; }










1 2 Next »
Pattelito # 1. July 2009, 15:36
angel292005 # 1. July 2009, 16:09
ZAHEK # 1. July 2009, 16:10
samfresco # 1. July 2009, 17:12
el_esponjoso # 1. July 2009, 18:10
wow!
Nerak # 1. July 2009, 20:20
drlaunch # 1. July 2009, 20:58
On a more serious note, I think people need to realize that they don't make friends by adding random people. If you're a devoted member you make real friends, who'd be friends no matter where you meet them on the web.
Either way, I've been using user CSS to fix sites for a while. Thanks for sharing this guide for the rest of web surfers.
Pattelito # 1. July 2009, 21:43
SouthernCross # 2. July 2009, 14:58
Tamil # 2. July 2009, 15:04
Originally posted by Pattelito:
Originally posted by drlaunch:
Originally posted by SouthernCross:
Dava # 2. July 2009, 15:27
Dava
drlaunch # 2. July 2009, 21:44
But at least, this isn't the same as ignoring the person, which can be done with the "Block" button. No more annoying messages from the person.
angel292005 # 3. July 2009, 10:43
Originally posted by drlaunch:
I have too many too ignore. I would rather just hide the notification.
Tamil # 3. July 2009, 14:21
Originally posted by angel292005:
ellinidata # 4. July 2009, 22:48
Thank you also for always sharing knowledge and bananas
Tamil # 4. July 2009, 22:54
ellinidata # 4. July 2009, 22:55
5 for starters
ellinidata # 4. July 2009, 22:58
here:
Tamil # 4. July 2009, 23:02
ellinidata # 5. July 2009, 00:42
they never fail *hugs*
P30Carl # 14. July 2009, 09:03
Tamil # 14. July 2009, 09:19
Chas4 # 16. July 2009, 19:50
Tamil # 16. July 2009, 23:34
P30Carl # 17. July 2009, 02:43
Originally posted by Tamil:
And what to do next? (I'm sorry; I'm a newbie in CSS)
Tamil # 17. July 2009, 07:15
Chas4 # 17. July 2009, 16:50
P30Carl # 18. July 2009, 15:13
Originally posted by Tamil:
That's not so hard. Thanks a lot.
Tamil # 19. July 2009, 03:07
Anonymous # 20. July 2009, 17:43
I am very happy
Anonymous # 29. July 2009, 07:49
some thing rocking
migawka # 8. August 2009, 22:49
Tamil # 10. August 2009, 21:22
.nH .u5 { display: none !important; }00mx600 # 16. August 2009, 04:08
but how could i know codes by myself?
pleasw tell me the way to do it
Tamil # 16. August 2009, 08:40
Originally posted by 00mx600:
You have to learn CSS.migawka # 17. August 2009, 23:27
Originally posted by Tamil:
thanks!
Mithos # 5. September 2009, 03:43
#rshline {display: none !important;}
#mbEnd {display: none !important;}
.std {display: none !important;}
But it don't work either...
ste-ven # 4. October 2009, 06:27
it would be great, especially if we could put an operaNet room
Tamil # 4. October 2009, 12:26
drlaunch # 4. October 2009, 14:40
http://my.opera.com/drlblogdesign/blog/show.dml/1376209#comment10097527
http://my.opera.com/drlaunch/blog/show.dml/3069374
Before anyone attempts it, be warned that it can be extremely difficult to make it look just right on your page.
tunayx # 1. November 2009, 14:56
Tamil # 1. November 2009, 15:29
Originally posted by tunayx:
Are you sure? Works for me in Opera 10.tunayx # 1. November 2009, 16:20
Tamil # 1. November 2009, 16:46
tunayx # 1. November 2009, 17:39
Tamil # 4. November 2009, 09:41
ste-ven # 5. November 2009, 09:24
How could i make the whole page background green ?
can you give a code for the page background ?
Tamil # 5. November 2009, 09:42
ste-ven # 5. November 2009, 09:55
i have already changed that one, i mean THIS ONE on which i write right now
Thank you anyway
drlaunch # 5. November 2009, 11:15
Originally posted by ste-ven:
Originally posted by Tamil:
Originally posted by ste-ven:
Tamil answered your question perfectly. Try to be a little more exact when asking questions, so people won't have to read between the lines for hidden meaning.