The writings of Peter Stuifzand

Weblog: firefox

Don't you just hate it when you click a link while you're on YouTube watching a video. Before you realize what happened you click the back button. Normally this will reload the page and start the video from the beginning.

But not today. It continued at the same point where I left. That's how it should be.

A list of Firefox keybindings. I couldn't find this list, because I was searching for key bindings.

I was reading presentation slides from YAPC::EU 2010 and found this one: Web Automation with WWW::Mechanize::Firefox. It explains a module that connects to a running Firefox instance and will use it to follows links, create screenshots and more.

I rewrote the example a little bit make it work. I ended up with the this. These are two methods that work. The original method didn't work for me

# The original line in the example
my $png = $mech->content_as_png();

# Method 1
my $png = $mech->element_as_png($mech->selector('html')); 

# Method 2
my $png = $mech->content_as_png(undef, 
                {left=>0,top=>0,width=>200, height=>200});

Now I can automatically create screenshots from webpages. I will still need some way to control the width of the page and maybe a way to crop parts. I could use the element_as_png method for cropping, which allows me to get a screenshot of part of a page, maybe that's enough.

Firefox 3.6 released

If you're a developer you should take a look at the Firefox 3.6 for developers page.

I created a Greasemonkey script that will show a hovering statusbar when hovering over a link. It looks like this:

Hovering statusbar

Use at your own risk! This script comes with no warranty. You have been warned.

Install the script: Hovering statusbar Greasemonkey userscript

I experienced some problems while using Firefox on Debian. With the use of google it was fixed.

Firefox segmentation fault debian work around. This bug report contains a work around.

I just noticed that the Hit-a-Hint extension is upgraded for Firefox 1.5. This is great because it will let click links and buttons without using the mouse.

When I installed it there was one problem though, it didn't work. The solution was found quickly. Goto about:config and search the key extensions.hah.hints.tags and change that to:

//a|//input|//textarea|//select|//button|//isindex|//frame|//iframe

and it will work. I'm not sure what the problem was, but this will at least make it work.

With Scrapbook you can create notes from webpages, or save complete websites on a specific date. So this extension is helpful when you're a writer, or a researcher.

Problems with tools like these is that you have to find some place in your workflow to use them. If you don't have a place it is possible that I will stay in tools menu for a long time without you using it.

View archived entries