Quickly enable or disable a style using keyboard shortcut/mouse gesture
Sunday, February 28, 2010 2:48:34 PM
Author mode and user mode styles can be switched quickly using the default keyboard shortcut, Shift+G but there is no shortcut to enable or disable other styles except menu.
Any style can be enabled or disabled quickly by using action codes Select user CSS file and Deselect user CSS file respectively. Create a new keyboard shortcut or mouse gesture in Document Window section with the following action code.
Select user CSS file, X | Deselect user CSS file, X
For Windows OS, X = Style sheet number (files sorted in ascending order) - 1. If you don't have any additional CSS style files inside profile\styles\user directory except the default ones, you can use the X value from the following table.
| # | Style file name | Style name | X value for Windows OS |
|---|---|---|---|
| 1 | accessibility.css | Accessibility Layout | 0 |
| 2 | altdebugger.css | Alt Debugger | 1 |
| 3 | classid.css | Class and Id | 2 |
| 4 | contrastbw.css | High Contrast (B/W) | 3 |
| 5 | contrastwb.css | High Contrast (W/B) | 4 |
| 6 | disablebreaks.css | Disable Breaks | 5 |
| 7 | disablefloats.css | Disable Floats | 6 |
| 8 | disableforms.css | Disable Forms | 7 |
| 9 | disablepositioning.css | Disable Positioning | 8 |
| 10 | disabletables.css | Disable Tables | 9 |
| 11 | outline.css | Outline | 10 |
| 12 | structureblock.css | Block Structure | 11 |
| 13 | structureinline.css | Inline Structure | 12 |
| 14 | structuretables.css | Table Structure | 13 |
| 15 | tablelayout.css | Fixed Table Layout | 14 |
| 16 | toc.css | Table of Contents | 15 |
For Linux OS, open terminal and copy & paste the following command to find the X value.
ls ~/.opera/styles/user/ -U | awk '{ print FNR-1 " " $1 }'

Command to find X value in Linux OS
Example: Action code to enable or disable accessibility layout
For Windows OS,
Select user CSS file, 0 | Deselect user CSS file, 0For Linux OS,
Select user CSS file, 5 | Deselect user CSS file, 5









Abhinavdecodedthought # Sunday, February 28, 2010 3:59:15 PM
Charles SchlossChas4 # Sunday, February 28, 2010 5:38:33 PM
d4rkn1ght # Sunday, February 28, 2010 6:22:04 PM
Unregistered user # Sunday, February 28, 2010 6:33:04 PM
Angelikiellinidata # Sunday, February 28, 2010 7:06:32 PM
Mağruf ÇolakoğluZAHEK # Sunday, February 28, 2010 9:11:30 PM
Tamil # Sunday, February 28, 2010 11:07:18 PM
@Chas4, ellinidata: http://files.myopera.com/Tamil/Smilies/Drool.gif -
Unregistered user # Monday, March 1, 2010 5:24:09 PM
Tamil # Monday, March 1, 2010 5:29:00 PM
Unregistered user # Monday, March 1, 2010 5:49:08 PM
beavidal # Saturday, March 6, 2010 1:58:17 AM
just passing by
Tamil # Saturday, March 6, 2010 3:34:39 AM
LéazzBabyJay99 # Saturday, March 6, 2010 2:12:06 PM
Tamil # Saturday, March 6, 2010 4:10:03 PM
Charles SchlossChas4 # Saturday, March 6, 2010 10:08:08 PM
Originally posted by b_laudanum:
http://files.myopera.com/Tamil/Smilies/Whistle.gif -
LéazzBabyJay99 # Sunday, March 7, 2010 8:29:34 AM
MosesMosesTheDog # Friday, March 12, 2010 11:45:11 PM
Tamil # Friday, March 12, 2010 11:46:28 PM
MosesMosesTheDog # Saturday, March 13, 2010 12:00:25 AM
Tamil # Saturday, March 13, 2010 12:15:15 AM
Unregistered user # Saturday, March 13, 2010 1:40:12 AM
Unregistered user # Saturday, March 13, 2010 2:32:55 AM
Tamil # Sunday, March 14, 2010 4:21:51 PM
Unregistered user # Sunday, March 14, 2010 6:56:22 PM
Mad Scientistqlue # Friday, April 2, 2010 1:52:40 AM
tunayx # Friday, April 16, 2010 4:11:05 PM
Tamil # Friday, April 16, 2010 4:43:52 PM
tunayx # Saturday, April 17, 2010 1:22:14 PM
Tamil # Saturday, April 17, 2010 3:20:13 PM
tunayx # Saturday, April 17, 2010 5:42:39 PM