Sign up | Lost password? | Help

[ advanced search ]

Cooliris userJS for Opera??

Forums » Opera Community » General Opera topics » User JavaScript

Saturday, 11. August 2007, 16:48:03

Nexus009

Vagabondo Dell'Infinito

avatar

Posts: 1650

Nuova Atlantide -Italy-

Cooliris userJS for Opera??

is possible a userjs with preview site funcion of Cooloris extension for FF ??

Info: http://www.cooliris.com/

Sunday, 12. August 2007, 21:57:46

Aux

Auxiliary

avatar

Posts: 362

Latvia

I think no, because JS can not go somewhere, render web-page and display it as a thumbnail. But why anyone whould need that functionality? It does NOT save your traffic! And it is much better to open page in separate tab and view it full-size.

Monday, 13. August 2007, 18:00:21

Nexus009

Vagabondo Dell'Infinito

avatar

Posts: 1650

Nuova Atlantide -Italy-

Aux i have this code (copy and past and go in your address field) :
javascript:(function(){var bar = document.getElementById('Previewbar');if(bar){bar.parentNode.removeChild(bar);return}; var toolbar = document.createElement('div');toolbar.setAttribute('style','position:fixed;right:0;top:0;font:14px Times New Roman;background: -o-skin(\'Window Skin\');border:1px solid;padding: 10px;');toolbar.id='Previewbar';toolbar.innerHTML=' <body bgcolor="#FF0000"><p><object data="http://my.opera.com" type="text/html" width="400" height="450"></object></p></body> ';var clse=document.createElement('img');clse.title='Close';clse.setAttribute('style','position:absolute;right:2px;top:2px;background: -o-skin(\'Caption Close Button Skin\');margin: 1px; width: 18px; height: 18px;');clse.addEventListener('click',function(){toolbar.parentNode.removeChild(toolbar)},false);toolbar.appendChild(clse);document.documentElement.appendChild(toolbar);})()


this code open a web site in window with javascript....

If add a script when modify the URL my.opera.com with a link on mouse hover... is possible???

i not good in javascript code... excuse my bad Englesh

Tuesday, 14. August 2007, 08:48:27

Nexus009

Vagabondo Dell'Infinito

avatar

Posts: 1650

Nuova Atlantide -Italy-

shoust thank for this script :smile:

i have a find in internet this userJS:
ROBO Sticky

if I insert in the note this code:
<object data="http://my.opera.com" type="text/html" width="400" height="450"></object>


and i selected the option XHTML my note is a web page :smile:
http://img518.imageshack.us/img518/2420/immaginelr0.jpg

is possible an implementation for this userjs ( ROBO Sticky) whit:
open new note only XHTML whit the code

<object data="http://LINK MOUSE HOVER*" type="text/html" width="400" height="450"></object>



*
or a button in Link Popup Menu that copy link address of mouse hover and paste in http://LINK MOUSE HOVER code???

Thanks

Tuesday, 14. August 2007, 11:29:04

Nexus009

Vagabondo Dell'Infinito

avatar

Posts: 1650

Nuova Atlantide -Italy-

in the ROBO Sticky is possible also insert the code for frame:

<p><iframe name="I1" src="http://my.opera.com"></iframe></p>

:smile:

Wednesday, 15. August 2007, 01:36:41

Risk3

avatar

Posts: 45

Would it be possible to modify this UserJS script so that a thumb window opens selectively, that is only when I hover a link and press a hotkey?

Thursday, 23. August 2007, 04:51:51

arnymars

Natural Hobbiest

avatar

Posts: 283

Hello guys,

For the forum admin: COOLIRIS is the hottest Firefox / IE plugin allowing to browse the web much faster, with fewer clicks and without stocking in cash huge number of unnessesary files. It's time to implement similar plugin in Opera, possibly using suggested above approach.

Can someone explain in layman language, what exactly an average Opera user should do to enjou functionality of the unfinished "like cooliris" plugin or widget described above. It is desirable to avoid any clicks at all similar to Cooliris approach.

Friday, 24. August 2007, 14:49:24

arnymars

Natural Hobbiest

avatar

Posts: 283

I like Shoust's Cooliris_like userjs. But it need improvements:

-- time delay or keyboard shortcut + mouseover to open a preview window
-- auto closure of preview window with time delay, when mouse is out of the window or its link
-- resizeable frame with Back and Forward History Buttons in case you browsed the web in it
-- preferences option to not swap cash previewed pages - for speed on older PCs - there is really no need for Opera style page cashing in preview
-- do not replace the preview window with the site full screen window, when the site's script instracts to

The most urgent are Time Delay before open and an added Script to Close preview on mouse out - these are really annoyances.

Saturday, 25. August 2007, 01:31:12

shoust

Operaised

avatar

Posts: 3015

United Kingdom

Update to my userjs.

coolirisalike.js

Changelog:

- Added "Restore" icon to change size of preview window to 3 heights.
- You now hold ctrl over link to activate script, clicking x will disable the cooliris preview until you browse to another page.
- Back and forward links inside the preview, its not possible to detect whether whichever button is available or not though.
- Added code to try and stop frame breaker scripts.

Things I had trouble with:

- Trying to make preview window close when not hovered over - tends to be buggy which it may close as soon as you hover over the preview, the code is commented out as of now.

Things that are just not possible to do:

"preferences option to not swap cash previewed pages - for speed on older PCs - there is really no need for Opera style page cashing in preview"

Cannot do it simply because its not possible to control opera's cache like that. Plus you need to render the whole page to attempt to view it anyway, because otherwise the site won't work...

Sunday, 26. August 2007, 20:27:24

is there any possible way to make this work in the built-in feed reader as well...like, for example, whenever an article in the feed reader shows just a link. it would be cool to get the cooliris preview thing to do that without having to open it up in another tab.

also, is there a way to re-size the preview's window? don't get me wrong, i like it a lot but it is kinda small.

Monday, 27. August 2007, 05:49:25

arnymars

Natural Hobbiest

avatar

Posts: 283

Originally posted by shoust:

Update to my userjs.
Cannot do it simply because its not possible to control opera's cache like that.



I'm not sure, but may be this can help: Opera UserJS Specs

by User JavaScripts one can set what history navigation mode Opera should use for the current document. It accepts one parameter:
Mode: 'automatic', 'compatible', or 'fast'.
window.opera.setOverrideHistoryNavigationMode
window.opera.getOverrideHistoryNavigationMode

Tuesday, 11. September 2007, 09:50:46

Nexus009

Vagabondo Dell'Infinito

avatar

Posts: 1650

Nuova Atlantide -Italy-

shoust!
i have insert this button in [Link Popup Menu] :D :
Item, "Cooliris"= Open link in new page & Restore page, 1 & Go to page, "javascript:resizeTo(320,240)"  

Monday, 17. September 2007, 05:02:40

dieburnbot

avatar

Posts: 20

USA

Originally posted by Nexus009:

shoust!
i have insert this button in [Link Popup Menu] :D :

Item, "Cooliris"= Open link in new page & Restore page, 1 & Go to page, "javascript:resizeTo(320,240)"  



Thanks for this code, it works very well, however I was wondering if you knew how to edit the string so that it automatically activates Fit to Width when it pops up the preview. If it would fit the preview to width it would be perfect I'm just not sure how to put it in.


Monday, 17. September 2007, 12:09:27

AyushJ

avatar

Posts: 4754

Originally posted by dieburnbot:

how to edit the string so that it automatically activates Fit to Width when it pops up the preview.


Item, "Cooliris"= Open link in new page & Restore page, 1 & Enable mediumscreen mode & Go to page, "javascript:resizeTo(320,240)",1

Monday, 17. September 2007, 17:03:40

Nexus009

Vagabondo Dell'Infinito

avatar

Posts: 1650

Nuova Atlantide -Italy-

with this code, is possible a little preview to site :D :
insert in [Link Popup Menu]

Item, "Thumbnails"= "Open link in new page & Go to page, "http://www.iwebtool2.com/img/?r=http://www.sito.it&domain=%l" & Restore page, 1 & Go to page, "javascript:resizeTo(100,150)""

Tuesday, 18. September 2007, 01:33:55 (edited)

dieburnbot

avatar

Posts: 20

USA

Thanks Ayush it works great. Nexus that preview is waay too small. :D Also, for some reason the javascript:resizeTo(340,240) doesn't seem to resize the popup window it just keeps it a standard size. I tired to change the value and it didn't do anything. I'm using the latest Opera 9.5 alpha so I'm assuming its a bug.

Monday, 24. September 2007, 21:43:54

this is probably a stupid question...but how does one go about inserting those bits of code into the original file on a mac?

i tried copying the code...then, i opened the file in textedit and then tried pasting it...but nothing happened...i mean, it didn't work.

i would appreciate any help.

Tuesday, 23. October 2007, 15:48:15

bryanfury

avatar

Posts: 31

hola,

i start to use this script a few hours ago, but when the preview screen appears also an error message appears. i try to close the error message but the preview screen also closes, or gone white, nothing on it. here is the error screeen. opera 9.24, windows 32bit.

http://imaj.at/25627

Tuesday, 10. March 2009, 19:49:47 (edited)

I just learned about this script today from Tamil's blog. I have installed it and it works as described but I find the previews too small to be useful. The default size which is also the largest is too small. Clicking the re-size button on the preview tool bar re-sizes it even smaller.

I would like to increase the preview size much more. In fact I would like current default size to be the smallest size and go up from there. I use Cooliris previews in FireFox all the time and that preview window is re-sizable by dragging and I always have it much larger than the size of Cooliris Alike is now. What do I need to change? Thanks


Edit: I installed another script called Power Drag http://my.opera.com/xErath/blog/2008/06/25/meet-meenoo-and-drag This script makes pics and text in put areas re-sizeable. A pleasant surprise was that it made the Cooliris Alike preview window re-sizeable to. I am able to drag the preview window and re-size it like I do with Cooliris in Firefox. One problem is the re-size icon is at the bottom right of the preview and the preview is at the right of the screen so dragging is a little difficult because you are dragging into the side of the screen.
Here is a pic http://www.imagespeech.com/out.php/i3147_20090310144740.jpg

It would be great if some one could add the dragging of the preview window and move the icon to the left. It would make this almost as good as Cooliris Previews is.

Friday, 27. March 2009, 02:53:55

Logiphile

avatar

Posts: 43

Egypt

first of all i have no experience about js & web developping but i found that some sites support image preview standalone like istockphoto
so i used dragonfly to see an image source code as below :
 <img class="e_loupe " id="imageThumb_2173809" width="110" height="73" alt="" src="http://www2.istockphoto.com/file_thumbview_approve/2173809/1/istockphoto_2173809-red-velvet-curtain.jpg"/>

another from other site
<img src="../imageGenerator.aspx?path=ethad-elkora.jpg&width=200&height=110" alt="اتحاد الكرة المصري" onmouseover="showtrail('http://www.yallakora.com/pictures/main/ethad-elkora.jpg','','','5.0000','3','1',10,1);" onmouseout="hidetrail();"/>

the preview using this method sound better, so is this method can be implanted using js??
i f i missed the point sorry and just ignore my post :no:

Saturday, 4. July 2009, 02:41:16

lxwong

avatar

Posts: 7

Originally posted by shoust:

Update to my userjs.

coolirisalike.js

.......



After dowloading your userjs, what am I supposed to do with it? Just how do I "install" this?
Thanks.

Saturday, 4. July 2009, 03:26:45

Originally posted by lxwong:

After dowloading your userjs, what am I supposed to do with it? Just how do I "install" this?



(type in your addressbar, these settings are equal to Preferences( CTRL+F12) -> Advanced -> Content )

opera:config#UserPrefs|UserJavaScript

Make sure its ticked.

opera:config#UserPrefs|UserJavaScriptFile

Set this to a folder. Save the .JS file to this folder. It should now be active and working.

Wednesday, 4. November 2009, 02:51:47

@shoust, first, sorry for reliving this thread. i found that enabling coolirisalike.js cause gmail to never load or pass the loading page in standard mode. if you think i can do any investigation please tell me.

Saturday, 5. December 2009, 22:39:41

Quadunit404

q

avatar

Posts: 52

USA

Originally posted by lxwong:

Originally posted by shoust:

Update to my userjs.

coolirisalike.js

.......



After dowloading your userjs, what am I supposed to do with it? Just how do I "install" this?
Thanks.

This contains the answer.

Forums » Opera Community » General Opera topics » User JavaScript