Updates. Descriptions most useful UserJS and more.
Sunday, September 21, 2008 8:48:30 PM
1) Added descriptions for more than 60 (useful) UserJS on http://my.opera.com/Lex1/blog/userjs (translation my Russian page.)
2) Since writing of previous post, most utilities were renewed. oGet and htm2clip now works on framed pages, Qsaver supports fast saving in CHM, and Opera Loader better works with Opera 9.5.
3) How to add icons for file-types in Opera filemanager
UserJS (and generally javascript) don't work in Opera filemanager. But css work
This code will add icons for those files which Opera can open. And also added a blue selection for the files of «index.html», for better visibility.
Open Opera\Styles\dir.css in text editor (Notepad++ is good). Add next strings after:
Now will renew a page. It's all
.
Instead of «background-image: url("data:image/png;base64,...");» you can use «background-image: url("images/i_img.png");»
2) Since writing of previous post, most utilities were renewed. oGet and htm2clip now works on framed pages, Qsaver supports fast saving in CHM, and Opera Loader better works with Opera 9.5.
3) How to add icons for file-types in Opera filemanager
UserJS (and generally javascript) don't work in Opera filemanager. But css work
This code will add icons for those files which Opera can open. And also added a blue selection for the files of «index.html», for better visibility.Open Opera\Styles\dir.css in text editor (Notepad++ is good). Add next strings after:
a[class="sym"]::before {
background-image: -o-skin('Panel Collapse Right');
width: 9px;
height: 9px;
}
a[href$=".js"]::before,
a[href$=".css"]::before,
a[href$=".ini"]::before,
a[href$=".txt"]::before {
content: "";
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABwElEQVQ4jaWTv2sTcRTAP/e9a8RCsYOjg21SSBGKIg7+aptSEJe2/0OXDA4ZxOg/kEEEl6ODLoJCh4LUyUYdOrTSIgYthF41UBBqDFSbpuddvMvdc2gvRBtCxAdveI/3Pt8P3y9fjQ5hzjJQ91C/fNTJE5wtfWNjLs93IAAEwIiGXdcdWHp4fnHocnzkzcJXjJ6KNT5zIfnqZf/B9M1q3+LzQS7Gq5B/lgB2gDqAigDz89bs2v6jkadLWQCSV+8m8/kE58bv9RU/JrhyYyoavQT0H9PNZpdl5e0XyaVTUrFrkkunZNexJZdOiet7kkunREQkk8kIMNgW8Pr9B6nYtWbuOrbs111xfU8aQdAKiEd7qhUSU7FOd9o2jNYiFAHAvP+g2RsdG+Pa6PXuAIcPA7fu3AZAV4oepXdvIHrjmEFkMTkx0YVBoLc1iOk6QRiiK9UZoAXG/xkoQ/tngz86fug3DTbW37U9saOBF3pNA6VpIFAoFPbcn473+dPW3tamtTNnmguAH+1oLfunHj95YZa2C6etYlGtra6WK+WyDThA7Sh/ACXAAqp/AwzgDDAM9AIHR0sO4AIehz8wqhsAvwFT785ao0KVQAAAAABJRU5ErkJggg==");
margin-right: 3px;
width: 16px;
height: 16px;
display: inline-block;
speak: none;
}
a[href$=".jpg"]::before,
a[href$=".jpeg"]::before,
a[href$=".gif"]::before,
a[href$=".png"]::before,
a[href$=".bmp"]::before,
a[href$=".xbm"]::before,
a[href$=".svg"]::before {
content: "";
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACOklEQVQ4jX2Sy0vUURTHP/fObwadGa3p4YOMFhJC9IAMaiFG0aL3A6L2rfoDeriLViHRIndthaCgsGVQFEVEZBFWlIYaUmgxmuJjnN/v/s65LcbMsbEDh/s4fD/3y7nHsBDX7g56KoSxlrhYJJFKYZHtl8+2fFhaD5YeOs40l4m9B/EQCXT1DDGRzvXtPHj+xXR+rFuD4Flk7Xdb6dXl4kjgsWzg7UyNqT3c0VYoFrfpvGtOalBb5sA5x1TRACWxU3BSWjt3VAEwPLzePD927sS9B7e+BWE0WgZQVe5/DlcyhUzPs39PPavrjmy6fefmZmfdu38A3fkaijGsSpXuTrV4WhtL+9lxS6EAicCjzuVi79JlABFla/0Qa6qaSAYly6NzSndXPxkTM/h6hJ4bxxEP6jUJJMp7IMrLLycxPzNkbR0DHy8xGZZ6gjGsq2skEhD5++OLgDgMcbGSmczQ+6QXn/Ps2psjP9/O6FQbTlZByiAKumRiFgESRThR+l714cc9TMDI2oe0tHzl9IF+QoHJ8QZivUC8ogNRwrkQGoBqyE/kyT/Kc/3oITbmagmn0gxMg2oFgEQRcax0XrlKNmnJBgnSgSWTtIQJy1jBUZiBWEtZ0UEkSnv6IsXIE0cQFSD28Evgh4JgqKoC+Z+DVLYaoxDGYBcmEQFdyFgWAR6ML3Pw5v0M4qZQFbx6rESoCF4FL4qKUHRzIBYMM0Zw5g+gtql1t1f2YfwWvMkCi7Vl4TF+Fm8+GcvT3zrNP9G6ClpCAAAAAElFTkSuQmCC");
margin-right: 3px;
width: 16px;
height: 16px;
display: inline-block;
speak: none;
}
a[href$=".html"]::before,
a[href$=".htm"]::before,
a[href$=".xml"]::before,
a[href$=".url"]::before {
content: "";
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAATlBMVEXnICXrGB5SUlLOzs7r6+ucnJy8vLwxMTHn49Pt7efvUlT39/f/+/P///+EhITvTU+oqKirq6vtUFRzc3O0tLPiQ0jpiIHtjI7wbXLT09O/nUUGAAAAAXRSTlMAQObYZgAAAGVJREFUeF5lzEcSAjEMBVF9SY5hIvH+F6UKsC2KXr5FE9HSo29L++R4QH3nGv8ChxAsFHEnGyhVxRnIOR9RJtxRFTcDgEZgQHoCSQ1sCfCXCcXvD0Q/HmdT2a7HusYO0uvAM/rvBb1KBgxFCeX8AAAAAElFTkSuQmCC");
margin-right: 3px;
width: 16px;
height: 16px;
display: inline-block;
speak: none;
}
a[href*="ndex.htm"] {color: rgb(0,0,200);}
a[href*="ndex.htm"]:visited {color: rgb(128,0,128);}
table, pre {
font-size: 70%;
line-height: 130%;
padding: 0;
margin: 5px auto 10px;
border-spacing: 0;
border-collapse: collapse;
width: 95%;
}
Now will renew a page. It's all
.Instead of «background-image: url("data:image/png;base64,...");» you can use «background-image: url("images/i_img.png");»

z@h3kZAHEK # Monday, September 22, 2008 7:01:17 AM
A.RuzanovLex1 # Monday, June 7, 2010 12:13:49 PM
z@h3kZAHEK # Tuesday, June 8, 2010 5:10:08 AM
A.RuzanovLex1 # Tuesday, June 8, 2010 7:45:04 AM
z@h3kZAHEK # Tuesday, June 8, 2010 1:42:46 PM
1- I think this is not regarding with your css but is it possible to add a link in a page to go back to opera:drives.
Becouse when you go in a drive, it is not possible to return go back main directory again...
2- You can also use it as a panel in small view nice
http://img52.imageshack.us/img52/5513/20100608164123.jpg
A.RuzanovLex1 # Tuesday, June 8, 2010 2:02:10 PM
Button4, -1899931507="Go to parent directory, , , , "Homepage" + Go to page, "javascript:(function(){var p=location.protocol+'//',h=location.host+'/';if(p=='s://')return;if(location.href==p+h){var a=h.split('.'),l=a.length,n=2;if(l>2){if(a[0]=='www'){a.shift();l--};if(/^(co|com|net|org|edu|gov|mil|int)$/i.test(a[l-2]))n++}if(l>n){h=(n==3?a[l-3]+'.':'')+a[l-2]+'.'+a[l-1]}else{p='http://www.google.com/search?sourceid=opera&q=related:'+p}};location.href=p+h})()""Long click - go to main page (not work for ftp and file).
A.RuzanovLex1 # Tuesday, June 8, 2010 2:12:33 PM
h2>a::before { content: "opera:drives"; margin-right: 5px; display: inline-block; -o-link: "opera:drives"; -o-link-source: current; }Not worked.
But it works:
h1 { -o-link: "opera:drives"; -o-link-source: current; }Click on «Folder Listing»
z@h3kZAHEK # Tuesday, June 8, 2010 2:13:44 PM
You are really great
I know this is not regarding this case but maybe you can help us for below UseJS. Our Turkish user want this script for a long time but it doesn't works for last snapshots and final version.. If any help from you to fix it .
http://userjs.org/scripts/browser/enhancements/ops.js
This would be better for us.
Thanks.
z@h3kZAHEK # Tuesday, June 8, 2010 2:15:32 PM
z@h3kZAHEK # Tuesday, June 8, 2010 2:20:23 PM
I am using as import this css files automatically but drives page seems bad now
A.RuzanovLex1 # Tuesday, June 8, 2010 2:36:34 PM
A.RuzanovLex1 # Tuesday, June 8, 2010 2:38:26 PM
Not changes for me.
And for «drives page» used drives.css