IE got it right: Color related tabs

  1. joeytwiddle

    Member

    { #1 — 2 years ago }

    Color grouping by domain is useful, but I don't think it is exactly what the user needs. I think Internet Explorer has found a good approach.

    When you open a new tab by clicking (or Ctrl+clicking) on an existing page, the two tabs are given the same color. The user can easily see which tabs are related. Further related tabs will join the color group.

    To break out of the color group, the user could enter a new URL or start a new (empty) tab. New pages with no relations to any others should start "uncolored" (e.g. grey) to show that they are not part of any groups.

    The implementation could check document.referrer when a new tab opens, and see if it matches any existing tab or frame (likely the last one focused/active). If it matches, it would take its color, or setup a new color for both tabs if necessary.

  2. joeytwiddle

    Member

    { #3 — 2 years ago }

    I should mention that sometimes document.referrer can fail, and that is when the browser was redirected to a new URL by Javascript or 304. In this case document.referrer may point to the redirection page, and not the page the user originally clicked.

    I had this problem using when Greasemonkey because it did not act on the redirection page, only at the final destination, but maybe CT can act quickly before the redirection occurs.

    Thank you for yours efforts. CT is a great addon!

Reply

You must log in to post.