If you're anything like me, you're now bored of Firefox opening a new window when you request to see source code.

Here are two bookmarklets that will come in handy for you, the first one displays the source code on the same tab, whereas the second will create a new tab and open the source there, hence preserving the page in the state it was when you requested to view the source. To install them, just drag them to your bookmarks toolbar.

Update: apparently I can't post bookmarklets to posterous, so you need to create your one bookmark on the bookmark toolbar and copy and paste the code below on the location field

To open on same window:

javascript:s=window.location.href;window.location=s.replace('http','view-source:http');

To open on a new window:

javascript:s=window.location.href;u=s.replace('http','view-source:http');z=window.open(u,'_blank');z.focus();

Technically speaking the second bookmarklet will open a new window, but behaviour depends on Firefox configuration and by default it will open a new tab, rather than a new window for new open requests. You can use this with other browsers, although I haven't tested and it's useless in Opera since this is Opera's default behaviour anyway.