Showing posts with label firefox. Show all posts
Showing posts with label firefox. Show all posts

Open URL in Firefox with middle mouse button

Often I copy an URL somewhere and want to open it in a new tab in Firefox.
Normal steps:
  • Open a new tab with Ctrl-T
  • Click into the URL address bar
  • Paste the URI and press Enter
Wouldn't it be nice to make all these steps in one, f.ex. by clicking with the middle mouse button on the current tab.

Firefox has this possibility, but you can't enable it from the normal preference dialog.
Instead you have to alter the configuration parameters directly.

Install instructions

  • Navigate to about:config
  • Put middlemouse.contentLoadURL in the filter bar
  • Press the right mouse button over the option and select toggle, so it's value is true.
Now lets test it:
  • select and copy this text: www.ubuntu.com 
  • press the middle mouse button in the window where you're reading this post
  • A new browser tab should appear with the Ubuntu site.

Flash Video in Linux and Webcam

You also experienced problems when trying to use a webcam from a flash application in your Firefox browser?
It claimed about not being able to detect the cam, whereas VLC finds and uses it perfectly.

Well, there's a known compatibility limitation between the underlying video-for-linux (v4l) layer.
Modern Linux systems use version 2, whereas the Flash applets seem to be comfortable only with version 1.

There's a possibility to force Firefox to use the version 1 of v4l, by launching it this way:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so firefox &

Now the Flash applet should be able to detect and use your webcam.

More details can be found in this article I found.

Pin down the oficial Firefox version in Ubuntu

Today, I'll write an article about a more complicated administration tool: APTs pinning.

What is pinning?



Pinning is used to prevent your Ubuntu system to upgrade a package to a higher version through its automatic update system.

Why do you want to prevent an update?


Well, maybe the newer version of an application isn't working the way you want to or is buggy and you prefer to use the older version.

In my example, this happened to me with Firefox. The version 3.5 that ships with the official Ubuntu repositories works perfect.
But as I enabled the Mozilla-Daily repository from Launchpad to install the better Thunderbird 3.0 (see my article about installing it), that same repository also holds a newer version from Firefox. So my system all the time tries to upgrade to the version from Launchpad, which works worse for me.

How could I prevent upgrading Firefox from that repository, but still be able to use and update my Thunderbird 3.0 package from that one?

Obtain list of priorities


After searching through several articles and forum post, finally I found the tool I needed to setup the pinning.
apt-cache policy
apt-cache policy firefox-3.5

Whereas the first command shows a list of all your enabled repositories and their priorities, the second one gives you information about a concrete package.

In my case it shows:
firefox-3.5:
Installed: 3.5.4+nobinonly-0ubuntu0.9.10.1
Candidate: 3.5.5+nobinonly-0ubuntu0.9.10.1
Version table:
3.5.6~hg20091129r26611+nobinonly-0ubuntu1~umd1~karmic 0
50 http://ppa.launchpad.net karmic/main Packages
3.5.5+nobinonly-0ubuntu0.9.10.1 0
500 http://archive.ubuntu.com karmic-updates/main Packages
500 http://archive.ubuntu.com karmic-security/main Packages
*** 3.5.4+nobinonly-0ubuntu0.9.10.1 0
100 /var/lib/dpkg/status
3.5.3+build1+nobinonly-0ubuntu6 0
500 http://archive.ubuntu.com karmic/main Packages

You can see the installed version is 3.5.4, there is a newer version 3.5.5 from the official Ubuntu repositories, and a newer version 3.5.6 from the Luanchpad repository.
Interesting to look at is the Candidate: line, which shows the version that will be installed next by the update mechanism. Normally, this would be 3.5.6, but in my case, I lowered the priority of the Launchpad repository to 50, which is lower than the default, so it is not selected any more.

You want to know how this is possible? Read on.

Use pinning to lower upgrade priorities


The trick lays inside the /etc/apt/preferences, use man apt_preferences to read more about it.
Just execute the following instruction:

sudo echo "Package: *
Pin: release o=LP-PPA-ubuntu-mozilla-daily
Pin-Priority: 50" > /etc/apt/preferences.d/Mozilla-Daily

## or if that doesn't work for you (tried it only on Karmic):
sudo echo "Package: *
Pin: release o=LP-PPA-ubuntu-mozilla-daily
Pin-Priority: 50" > /etc/apt/preferences

sudo apt-get update


How to obtain the correct values


Remember the apt-cache policy command? Searching its output, you find the information:
 500 http://ppa.launchpad.net karmic/main Packages
release v=9.10,o=LP-PPA-ubuntu-mozilla-daily,a=karmic,n=karmic,l=Ubuntu,c=main
origin ppa.launchpad.net

From the release line I just selected the o=LP-PPA-ubuntu-mozilla-daily, enough to clearly select which packages will be pinned.

After the apt-get update, you will not be troubled any longer by the firefox updates from that repository, but the thunderbird-3.0 updates will still show up, because it doesn't exist in the official repositories.

Troubleshooting


I run into some trouble and will share the solutions here as well.

Can't find the o=LP-PPA-ubuntu-mozilla-daily entry


This happened in one of my machines, so at the end I had to pin down the whole Launchpad repositories, not only the Mozilla-Daily one.
sudo echo "Package: *
Pin: origin ppa.launchpad.net
Pin-Priority: 50" > /etc/apt/preferences.d/Mozilla-Daily
sudo apt-get update


Firefox and/or xulrunner still update from Mozilla-Daily


That happens when some packages have been updated from the Mozilla-Daily repository before. You'll need to downgrade them to a version from the official repositories.
Here an example (find the correct version with the apt-cache policy command):
sudo aptitude install firefox-gnome-support=3.5.5+nobinonly-0ubuntu0.9.10.1

Profile Switcher Extension for Firefox

The ProfileSwitcher extension enables you to use several profiles in Firefox and Thunderbird.
So you could create a developer profile and install all programmer extensions (like Firebug, Web Developer toolbar, etc.).
But if you just want to navigate, you don't need them and loading all of them just slows down the startup time of Firefox. Just use another profile without them, with a different set of extensions.

From the extension's preferences, you can choose what to do when you launch another profile (close the one in use, don't close it, ask every time).

Install instructions


Unfortunately, this extension can't be found on Mozilla yet, so just download it from the home-page or use this link to download the recent one when this post was written.

Extension collections for Firefox and Thunderbird


On Mozilla they started a new kind of extension sharing, so called Collections.
You can create your own set of useful extensions and share them with the whole world.

So here I'll share two collections with you, one for Firefox, the other for Thunderbird.
These collections are the extensions that I've installed and use on a daily basis.

Firefox 3.5 is out

They released the latest version of this magnificent web browser.


Go here to see real-time download statistics and a world map where Firefox 3.5 is downloaded.



Install instructions


sudo -v

echo "deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main" > /tmp/MozillaDaily.list
sudo mv /tmp/MozillaDaily.list /etc/apt/sources.list.d
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247510BE
sudo apt-get update
sudo aptitude install firefox-3.5 firefox-3.5-gnome-support latex-xft-fonts

# Create a new entry in gnomes alternatives system and set Firefox 3.5 to be the preferred choice.
sudo update-alternatives --verbose --install /usr/bin/firefox firefox /usr/bin/$(readlink /usr/bin/firefox) 60
sudo update-alternatives --verbose --install /usr/bin/firefox firefox /usr/bin/firefox-3.5 70
sudo update-alternatives --verbose --auto firefox
# If you get into any trouble and want to use your previous Firefox again, just change the selection with
# sudo update-alternatives --config firefox


Note


Some instructions come from this post.

Automatic paging on Firefox

AutoPager Homepage
Once upon a time, there existed a great extension for Firefox called repagination.
It gave you the possibility to right click on the Next link of a forum and load the next linked pages at the end of the current page. This was so useful, because you could read almost all post. Or load a bunch of Google results right into the current page. Cute.
But when Firefox upgraded to version 2.1+ this extension stopped working.
Since then, I had it always installed waiting that some day it got updated for the latest Firefox.

Since yesterday.

Finally, I found a decent replacement, eh, what I'm saying, ..., a so much better replacement: AutoPager.
And this extension really rocks!
It automatically loads the next page of a site inline when you reach the end of the current page for infinite scrolling of content. You don't even have to click anywhere. AutoPager works with a ton of sites, including Lifehacker, of course, Google .......
Just try it on this blog, endless scrolling through all my posts automatically.
And it offers a Wizard for creating next-link detections for new sites.

Example for EurobillTracker Rankings:

URL Pattern: http://en.eurobilltracker.com/rankings/*
Link XPath: //a[contains(text(),'Next >>')]
Content XPath: //body/table/tbody/tr/td/table/tbody/tr/td/table[1]

Firefox Window Border Fix

Today I had the same strange window border error as I had once with Thunderbird:

Suddenly, it started to miss its borders of the main window, being maximized always and didn't react on any changes like shrink, move, resize, maximize.
It covers the toolbar completely and when you open for example its addons window it doesn't show up, because it is hidden beneath the main window.

The fix is very similar:

  • Close Firefox

  • Edit by hand the file ~/.mozilla/firefox/xyz1234.default/localstore.rdf in your default profile directory.

  • Search the entry

    <RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
    width="800"
    height="600"
    sizemode="normal"
    screenX="5"
    screenY="5" />

  • Change the width, height and screenXY entries to the ones you see here

  • Restart Firefox and it should have its borders again.

Google Redesigned


Google Redesigned is a Firefox extension that aims to fully redesign the look and feel of popular Google services. This is achieved with Cascading StyleSheet (CSS) files which are loaded on the client's browser. The extension simplifies the use of these styles by providing auto-updates, easy management and notifications of changes.

More screenshots

Tab Mix Plus for Firefox 3.01

Tab Mix Plus, one of the best Firefox extensions, isn't yet available for the latest version of this great browser, but it's developer is working to make it compatible.
If you don't want to wait any longer, you can install a development version which works with Firefox 3.01.

Firefox 3 Download Day is today


After resolving some server problems, today is Firefoxs Download Day.
Go and grab it!

You can also see how many downloads have been performed in each country.

By the way, reload the download page several times and you'll see that they used different background graphics. I found three so far...



Great! Today the FireFTP extension was updated and works with Firefox 3 now!

Firefox Extensions (1st update)

I made some updates to my Firefox Extensions list.
It now indicates if an extension isn't compatible with new Ubuntu Hardy.

New extensions:
  • WebMail Notifier
  • DragDropUpload
  • SpamAvert
  • Better GMail 2
  • DownloadHelper

Firefox 3 Download Day

Download Day - English

Day is near that Firefox latest version will be official.
On june 17th they plan to set a Guinness World Record for the total downloads of Firefox on the so called Download Day.

Funny!
You can pledge to download Firefox 3 today. And, help spread the word!

Today, another 3 add-ons they I find useful have been ported to Firefox 3 Release Candidate.
So, I'm really looking forward to the official release.


Update: It is expected that Firefox 3 ships this upcoming Tuesday, June 17th. See Mozillas Developer site about this news.

Ubuntu 8.04 (hardy heron)

Should I upgrade to Ubuntu's latest release or should I wait?

At the moment, based on my own experience, there are more negative impressions than positive ones.

Negative

  • Most of my recommended Firefox add-ons don't work anylonger with the latest beta version of Firefox that gets installed automatically.
  • OpenOffice 2.4 lacks the paste special dialog when I try to paste some text copied from web pages into a spreadsheet. Why was that removed?
  • VirtualBox doesn't work anylonger. It has to be reinstalled, but I still have some trouble with its module.
  • It takes an eternity to start from my external USB drive (it slows down completely, and needs about half a minute to spin-up again). With 7.10 (feisty) it only took a few seconds.
  • My Windows partition doesn't show up in nautilus any longer as "Windows", but only as "xx.x GB Media", no matter what I try to get this configured.
  • Compiz wooble windows work worse on Dual screens (almost imposible to drag maximized windows from one screen to the other).

Positive

  • Some icons are much nicer.
  • Slightly speep-up of the whole system, especially Firefox (maybe of some few add-ons only?)
  • Handling of wireless nets is better, as well as the new keyring.

Firefox Extensions

Extensions are small add-ons that add new functionality to Firefox, from a simple toolbar button to a completely new feature. They allow you to customize Firefox to fit your own needs and preferences, while letting us keep Firefox itself light and lean. It is important to install only a few extensions, because unfortunately, Firefox gets slower the more you install (on Windows my Firefox needed almost a minute to come up). To make it worse, normally you can find up to three extensions for the same purpose. So here I'll give you a set of extensions I use, because they a useful and work fine:


  • Adblock Plus Get rid of all those ads and banners on the internet that often take longer to download than everything else on the page.


  • Better Gmail 2 is a compilation of Greasemonkey user scripts that add features to Gmail, improving Gmail's overhauled interface graphically and make it more usable. Each feature can be enabled or disabled.


  • Download Statusbar Allows you to keep track of ongoing and completed downloads in a hide-away statusbar.


  • DownloadHelper is for downloading videos and images from many sites with minimum effort. Using DownloadHelper, you can easily save videos from most of the popular video sites. It is also possible to capture all the images from a galery in a single operation. It also gives you access to a big list of video sites where it can be used.


  • DownThemAll! Lets you download all the links or images contained in a webpage and much more: you can refine your downloads by fully customizable criteria to get only what you really want.

  • DragDropUpload lets fill an upload input of a form using the drag and drop service from the system. Just drop the file into the input box and then send it. No more using the Browse button hassle.


  • FireFTP is an integrated FTP client.


  • Foxmarks Bookmark Synchronizer Automatically synchronizes your bookmarks between two or more computers running Firefox. It also lets you access your bookmarks from any computer anytime via my.foxmarks.com.


  • Hyperwords With Hyperwords all the text on the web becomes interactive: Select any word on any page and choose a command.


  • repagination See more search results etc. on one page, concatenating several pages together. Very useful for forums, where you want to see all posts at once.


    This one doesn't work on Ubuntu Hardy yet!


  • ScrapBook [Tips&Tricks about ScrapBook] Helps you to save whole web page trees and manage the collection. You can mark passages of the page, delete content etc. If you used Spiderzilla before, try this one.

  • SpamAvert generates temporary e-mail addresses for all those pesky online registration forms.


  • Tab Mix Plus Enhanced browser tab handling. This is a must-have extension. Tip: Disable Firefox's internal session handling and use the one from this extensions, it's much more powerful.


    This one doesn't work on Ubuntu Hardy yet!

    Have a look at this post for installing a temporary development version, which is compatible already.



  • WebMail Notifier checks multiples of your webmail accounts and notifies the number of unread emails.


    This one is much more powerful than Gmail Notifier, because it not only checks GMail accounts, but also Hotmail, Yahoo and several other ones (you can add your own userscripts to support even more).


Note:On Ubuntu you should never install extensions from Synaptic, aptitude or the main menu, because otherwise Firefox's internal extension handler can't update those extensions any longer.

FireFTP


FireFTP is a free, secure, cross-platform FTP client for Mozilla Firefox which provides easy and intuitive access to FTP servers.

Along with transferring your files quickly and efficiently, FireFTP also includes more advanced features such as: directory comparison, syncing directories while navigating, SSL encryption, search/filtering, integrity checks, remote editing, drag & drop, file hashing, and much more!

Similar applications:
Filezilla is a stand-alone FTP client, cross-platform as well.
The Linux version isn't that good as the Windows one, that's why I recommend the Firefox plugin.