Enhanced Copy for Opera - Copy URL, Title & Selection
Friday, January 11, 2008 5:40:06 AM
<p>SelectedText<a href="URL">PageTitle</a></p>Write this for your keyboard shortcut or rightclick menu.
Go to page, "javascript:window.prompt('','<p>'+window.getSelection()+'<a href=\x22'+location.href+'\x22>'+document.title+'</a></p>');" & Delay, 10 & Copy & Cancel
If you want an myOpera blog style like,
[URL=URL]PageTitle[/URL]*LineBreak* SelectedText(if exists)Then add this to your shortcut
Go to page, "javascript:var s=window.getSelection(),t='[URL='+location.href+']'+document.title+'[/URL]',t=s?t+'\r\n'+s:t;window.prompt('',t);" & Delay, 10 & Copy & Cancel
Or you can create your own.
What they are doing is, call JavaScript alert, paste URL etc. with the format, Delay, Copy and Close the alert. Without Delay this doesn't work (which means it doesn't work on Opera9.25 or before, so you have to copy and close the alert by hand if you really want).
The only thing that might bother you is that it brings up an alert for a little moment and erases. I first didn't like it, but now I don't mind. I even like it because it tells me I am copying what I want for sure.













