Tab Prefix: ›

Put a prefix on tab titles.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Tab Prefix: ›
// @namespace    http://zesty.ca/
// @version      0.1
// @description  Put a prefix on tab titles.
// @author       Ka-Ping Yee
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var PREFIX = "›";
    var ok_titles = {};
    var update_title = function() {
        var new_title = document.title;
        if (!ok_titles[document.title]) {
            new_title = (PREFIX + document.title).trim();
            ok_titles[new_title] = 1;
            document.title = new_title;
        }
        window.setTimeout(update_title, 500);
    };
    update_title();
})();