Showing posts with label opera. Show all posts
Showing posts with label opera. Show all posts

Saturday, February 27, 2010

Opera and vi Style Navigation Scrolling Shortcuts

I'm an emacs user, but honestly, vi style navigation is better if you are a touch typist. By vi style navigation, I mean scrolling down with j and up with k, and with these keys, you can keep your hands on the home row.

One thing that annoys me reading web pages is that in order to scroll, I have to press the down button instead; however this has an easy fix in Opera since it supports customizable one key shortcuts.

  1. Go to Tools - Preferences.
  2. Go to Advanced - Shortcuts
  3. Select Enable single-key shortcuts.
  4. Duplicate the current keyboard  setup by pressing Duplicate.
  5. Select the new duplicate keyboard setup, press Edit.
  6. Select the Browser Window group.
  7. Select  New, for the shortcut, enter "j", for the command, enter Scroll down.
  8. Select  New, for the shortcut, enter "k", for the command, enter Scroll up. 
  9. Select OK, and make sure you select the duplicate, not the original keyboard set.

Now, you can scroll down with j and up with k. This works in all sites except those that make use of j already, like Gmail and Google Reader.  j and k already have different functions in those sites.

Combined with this Readability tip, it makes perusing the web much nicer.

Opera and Readability Bookmarklet Shortcut

Arclab's Readability is a browser bookmarklet that gets the text of the current webpage you are viewing, and reformats it for a much better reading experience. Since it is Javascript based, it is usable with most browsers.

One catch though is, one has to click the readability link and there is no keyboard shortcut. I have seen a Google Chrome extension that assigns a keyboard shortcut to readability, and since Opera is my browser of choice, came up with a solution for Opera.

  1. Go to http://lab.arc90.com/experiments/readability/ and select your preferred style.
  2. Now, instead of dragging the bookmarklet to your toolbar, right click it and select "Copy Link Address".
  3. Go to the Speed Dial page in Opera, and assign one of the speed dial pages (1-9) with the link you copied.
  4. Now, you can view any page with Readability by pressing Ctrl-1 for example if you have assigned the Readability for the first SpeedDial page. 

Also see http://www.ustunozgur.com/2010/02/opera-and-vi-style-navigation-scrolling.html for more reading tips within Opera.

Alternative Method:

The method above, though simple forces you to sacrifice a speeddial just for Readability. Also, one can't assign an alternative keyboard shortcut, like Ctrl-r to his liking. An alternative approach is to assign a shortcut in Opera that goes to the Readability bookmarklet:

  1. Copy the Readability bookmarklets url to clipboard as above. 
  2. Go to Tools-Preferences.
  3. Go to Advanced-Shortcuts.
  4. Keyboard setup, Edit.
  5. Click on Application.
  6. Click New, for the shortcut key, Enter r Ctrl if you want Ctrl-r for readability.
  7. For the  action, enter Go to page," (with only opening quote), then paste the url and close the quote " . 
  8. Now, Ctrl-r is assigned to reload by default, search for r ctrl and remove that assignment in the shortcuts list.
  9. Pressing Ctrl-r on any page will format it using Readability now. Obviously, this method works for any bookmarklet, for example, Instapaper. 

Sunday, April 05, 2009

Opera'da NTVMSNBC, Radikal, BBC'deki Reklamlardan Kurtulmak

Öncelikle Fanboy'un adblock listesini yükleyin. Bunu yükledikten sonra çoğu reklam engellenecektir, kaldıramadıklarını da reklama sağ tıklayıp Block Content'e tıklayarak diyerek kaldırın.

Daha sonra şu userscripti kullanarak reklamlardan doğan boşlukları kaldırabilirsiniz. Scriptin içine nasıl değişiklik yapılacağıyla ilgili bilgileri de koydum.

Opera'da Userscript kullanmak için dosyaları bir klasöre atıp Preferences-Advanced-Javaşcript Options bölümünden en alttaki UserJavaScript files değer yerine scripti içine koyduğumuz klasörü tanıtmamız gerekiyor.

Betik Firefox'ta da Greasemonkey ile çalışıyor olmalı.

Benzer bir seyi eksisozluk icin yapan, HuzursuZ'un yazdigi bir betik icin: cleansozluk Zaten kodu da bu scriptten esinlenerek yazdim.

cleansozluk'u Greasemonkey olmadan bir Firefox eklentisi olarak kullanmak icin daha once bir Firefox add-on hazirlamistim. Su an daha onaylanmadigi icin deneysel asamada, Mozilla'nin sitesinden yuklemek icin giris yapmak gerekiyor. Isteyen Softpedia'dan dogrudan indirebilir.