My programs for Opera

Updates. Descriptions most useful UserJS and more.

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 smile 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 wink .
Instead of «background-image: url("data:image/png;base64,...");» you can use «background-image: url("images/i_img.png");»

Compatibility with Opera 9.5Compatibility with Opera 10.5

Comments

z@h3kZAHEK Monday, September 22, 2008 7:01:17 AM

Thanks:)

A.RuzanovLex1 Monday, June 7, 2010 12:13:49 PM

z@h3kZAHEK Tuesday, June 8, 2010 5:10:08 AM

Nice Lex. Thanks smile

A.RuzanovLex1 Tuesday, June 8, 2010 7:45:04 AM

Small improvement. First column has width 50%.

z@h3kZAHEK Tuesday, June 8, 2010 1:42:46 PM

But maybe can be improved more.

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 smile
http://img52.imageshack.us/img52/5513/20100608164123.jpg

A.RuzanovLex1 Tuesday, June 8, 2010 2:02:10 PM

1) You can type «c:» or use button Up.
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

but is it possible to add a link


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 smile

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 . right

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

We can of course use a button to back to main directory but I think it can be added a link to this page.

z@h3kZAHEK Tuesday, June 8, 2010 2:20:23 PM

Did you checked the coded on http://ruzanow.ru/opera/dir.css
I am using as import this css files automatically but drives page seems bad now smile

A.RuzanovLex1 Tuesday, June 8, 2010 2:36:34 PM

http://userjs.org/scripts/browser/enhancements/ops.js

The only apparent fix is replacement «document.addEventListener('load'» to «window.addEventListener('load'». But most likely it will require much rewrite.

but I think it can be added a link to this page

Javascript disabled on these pages. Generated css-content don't work as link. However, you can add to .lng file:
489139792="Folder Listing <br><a s tyle="font-size:16px;" href="opera:drives">opera:drives</a>"

A.RuzanovLex1 Tuesday, June 8, 2010 2:38:26 PM

I am using as import this css files automatically but drives page seems bad now


Not changes for me.

And for «drives page» used drives.css

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies