Custom names for tabs in Firefox?

6

1

I want to have custom names for some tabs in latest firefox.

I have lots of tabs open and some of them represent different build of the same application. It means that I can see the same favicon and the same text. It would great if I can name them (ideally permanently as I have them bookmarked) like v3.0, v3.0.4, v3.05

So the tab name would be

3.0 for http://wwwdev/imacs/radek/3.0/pages/main/login.php
3.0.4 for http://wwwdev/imacs/radek/3.0.4/pages/main/login.php
3.0.5 for http://wwwdev/imacs/radek/3.0.5/pages/main/login.php

looks like TabRenamizer doesn't work with the latest firefox build.

Radek

Posted 2010-08-12T00:01:55.227

Reputation: 2 914

Answers

3

There's more than one way to skin this particular cat. For your usage, a Greasemonkey script looks appropriate. Since the version of your application is easily extracted from the URL, the script might look like this:

var match_data = document.URL.match(/^[a-z]+:\/\/[^\/]*\/imacs\/radek\/([0-9.]+)\//);
if (match_data != null) {
    document.title = match_data[1] + " " + document.title;
}

Gilles 'SO- stop being evil'

Posted 2010-08-12T00:01:55.227

Reputation: 58 319

will Greasemonkey make firefox slower? – Radek – 2010-08-13T00:14:40.707

I updated my question with some example what I want to achieve. So you think that I can use the script to make the document title rename in case I have new version 3.0.6? – Radek – 2010-08-13T00:17:01.713

@Radek: The script extracts the version number from the URL. You can easily adapt the regexp or the title construction expression if they're not exactly what you want. Greasemonkey will make every page load take about 1µs slower — in other words I don't think it makes any visible difference. – Gilles 'SO- stop being evil' – 2010-08-13T09:07:00.110