Skip navigation.

Enhanced Copy for Opera - Copy URL, Title & Selection

, ,

Firefox has a niche addon called "CopyURL+", which enables you to copy URL+PageTitle, URL+Selection, URL+Selection+PageTitle, etc. Well, I want that on Opera.

Yaske made opera_ex (link Japanese) a small Windows application that does exactly that (and more apparently), which you can call as an external program from Opera.

Later, higeorange rewrote it for Linux (Gtk2-Perl version & Ruby-Gnome version).

Both links are in Japanese. I could translate them if on high demand, but I don't think it's needed. Here is a sort-of description: opera_ex on Linux


Anyway, I'm neither on Windows nor Linux, and I don't want to use an external program for Opera. I want a browser to be stand alone.

Owing to the "Delay" action introduced at Opera9.50beta, it is now possible to copy URL+PageTitle+Selection and so on using Opera internal actions and JavaScript.

Here is how you do.

If you want to copy with a format like this,

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

You Can Use Google Web History with Opera

, ,

It was long thought that Google's another killer web service Google Web History cannot be used in Opera.

If you go to their page you will find that to enable Google Web History you have to install Google Toolbar, which means, like many other Google services, only IE and Firefox users are able to access this service. But it was not the case. Google Web History stores the websites you visited according to the request for Google PageRank. So even if you don't have Google Toolbar installed on your Firefox, you can get Google Web History with an extension like PageRank Checker.

It's a good news. You didn't need Google Toolbar at all to use Google Web History. All you have to do is to send a request to get Google PageRank for every page you open. In fact, you don't even need to display the PageRank on a page.

Here is a UserJS to enable Google Web History in Opera, written by mallowlabs (his blog entry in Japanese). He says it's distributed under public domain, so I copy and paste it here.


enablegooglewebhistory.user.js
// ==UserScript==
// @name EnableGoogleWebHistory
// @author mallowlabs
// @namespace http://mallowlabs.s206.xrea.com/
// @version 0.0.2
// @license public domain
// @description : Enable Google Web History
// @published 2007-01-05
// @modified 2006-01-05
// @include *
// ==/UserScript==

// see also
// http://www.scss.com.au/family/andrew/opera/panels/pagerank/
// http://d.hatena.ne.jp/amatanoyo/20080104/1199450996
// =========================================
(function(){

    // avoid frame
    if (window.self != window.parent) return;

    var r=function(x,y){
        return Math.floor((x/y-Math.floor(x/y))*y+.1);
    },
    ch=function(url){
        url='info:'+url;
        var c=[0x9E3779B9,0x9E3779B9,0xE6359A60],i,j,k=0,l,f=Math.floor,
        m=function(c){
            var i,j,s=[13,8,13,12,16,5,3,10,15];
            for(i=0;i<9;i+=1){
                j=c[r(i+2,3)];
                c[r(i,3)]=(c[r(i,3)]-c[r(i+1,3)]-j)^(r(i,3)==1?j<<s[i]:j>>>s[i]);
            }
        };
        for(l=url.length;l>=12;l-=12){
            for(i=0;i<16;i+=1){
                j=k+i;c[f(i/4)]+=url.charCodeAt(j)<<(r(j,4)*8);
            }
            m(c);
            k+=12;
        }
        c[2]+=url.length;
        for(i=l;i>0;i--)
            c[f((i-1)/4)]+=url.charCodeAt(k+i-1)<<(r(i-1,4)+(i>8?1:0))*8;
        m(c);
        return'6'+c[2];
    };
    var url=document.location;

    /* create image element */
    new Image().src = 'http://www.google.com/search?client=navclient-auto&ch='+ch(url)+'&features=Rank&q=info:'+escape(url);
})();


(Thanks to Google PageRank Button for the request URL computation)

All you need to do is install the above, go to Google Web History, login and enable it! Enjoy web browsing 10 times more!


Having used Google Web History myself for a day now, I think it's awesome! I was using Opera9.50beta's Search History for a while, but it's search function is pretty poor so far. I couldn't even do an AND search. I also like the fact that Google stores my web history forever, not only up to the limit of my browser cache.


Added 2008-1-10

This entry was featured in Use Google Web History Without Installing Google Toolbar. Thanks for visiting!

The original creater has put the script up to UserScript.org. To keep up with current version, please go there (although I don't think there will be further updates).

Dump your tab bar away!!! -- Really cool opera customize

A new trend that's capturing Japanese Opera users' hearts is to hide the tab bar.

I am one of those who already farewelled my tab bar months ago. In general, Opera users tend to open a large number of tabs, partly because Opera can handle the cache neatly even if hundreds of tabs are open unlike Firefox. When I had my tab bar shown, all I was seeing of the bab bar was tons of favicons trying find space for themselves.



The page title, which is the thing I was identifying the tabs, were unrecognizable. So I ended up clicking a few tabs before I reach the one I wanted to read.

One solution suggested would be to place tab bar on a side. This can be done by right-clicking on a tab bar and choosing [customize] from the menu, then choose placement to be either left or right.



One big problem of this is I can't see the tab I'm in if I was in the tab below the bottom of the window. I could use a window panel insted. There I can scroll down or search in tabs. I didn't simply do it becuase I didn't like having sidebars at all. (I didn't have a widescreen back then)

Then I read a blog post of someone who got rid of the tab bar completely. I have to admit that even I, who don't need the tab bar at all any more, had sceptic opinion about hiding the tab bar. My thought was, "How can I live without a tab bar?" Ever since I switched to my first tab browser, Mozilla, I depended so much on the tab bar. After a few weeks, for some motives I tried it. At first I felt weired --- I found myself glancing at the top of the window from time to time looking for "some" information. But after a day or two it became natural to me to have no tab bar any more.

What I use a lot instead of the tab bar is the tab cycle. I'm a keyboard guy, so I assigned tab cycle to something more easily accessible (instead of Ctrl+Tab & Ctrl+Shift+Tab). With mouse it's even easier. Opera has it's best mouse feature, Right-Click plus wheel cycle. In this tab cycle pop-up, you can have as many tabs as possible with the names, of course. Think about it, the cost of eye motion to look up at the tab bar and to see the tab-cycle pop-up is exactly the same. My window looks much wider now, not just phisically but mentally (a lot!), by not seeing extremely messy tab bar.

If you think this is a crazy idea, I want you to try it today. The browser window will look really cool. It's very easy to do it as well. You just need to go to appearance customize menu and hide tab bar. And this is optional, but check the "Open new tab next to active" on the [Advanced]>>[Tabs] menu. Finally, you might want to check Show Window Menu in opera:config page.

Why I use Opera

,

This is my new blog. Before going anywhere let me introduce myself briefly.

I am a student in Montreal, Canada. I decided to make this blog to share some ideas about Opera with all of you who can read English.

To date, Opera is not the most popular desktop browser in Japan, even though they sell literally tons of Nintendo Wii and cell phones that run Opera Mini. Yet, the user group there is known to be very skilled and equipped with full of passion for Opera.

It is pretty unfortunate that most of you can't read Japanese, just like I can't read Russian. (Actually I speak a bit of German, Spanish and French but that's another thing). I'm quite curious to get some feedback from you on the ideas I will scratch down in this blog. They should be mainly about customizing Opera. Some are my own opinion, some are things I am inspired by the Japanese Opera blogsphere. Anyway I started it today on a whim, I will see how it goes. What I'm certain is that I will not write this with the best frequency all the time, but I am always looking for things to write in here and FEEDBACKS ARE WELCOME!

Oh, last thing, my id "edvakf" doesn't mean anything. I used it many many years ago just because I liked the sound.



To start I write why I use Opera.

I was a Firefox user about half a year ago. Some add-ons I was using with Firefox were really nifty and I didn't even think I could live without them. One problem was my PC at that time was quite an antique one, so I didn't want to push him hard. Firefox was sometimes eating more than half of his RAM. Then I was recommended to use Opera and I did (it's free anyway, and it worked on Xubuntu).

I was impreassed by its speed, the look, the fact that most of my must-have Firefox add-ons' functions were alread there for me to use by default, and most importantly, the keyboard was fully customizable!

I'm a lazy boy. When I browse, I don't want to use a mouse, I don't want to use two hands, I don't want to move my hand from the home position... That's how I'm lazy. So I customized Opera so that I can browse using only my right hand. Now I sometimes browse hours and hours almost with one hand, and with minimum motion.

Two month ago, I bought a macBook Pro with 2GB RAM. I don't worry too much about the speed loss and using up memory by using Firefox. But I haven't installed it on here. I don't know how it is now. I used Mozilla Prism once, it was damn slow. I think I keep loving Opera for a few more years.