Tab Color by URL instead of host

  1. dilmah

    Member

    { #1 — 3 years ago }

    Hi,

    I'm trying to use this extension for our intranet site at work which we use all day every day, problem is it's all on the same domain, but with various page names inside it. For example:

    Is there any way i can write a regular expression to cater for this, or can i change your code to make this work?
    I already tried replacing:
    Code:
    if(host.search(dpref[i].split("~")[0]))

    to:
    Code:
    if(url.search(dpref[i].split("~")[0]))


    but that didn't seem to work.
    BTW, I'm very new to firefox extension programming, so excuse my ignorance :)

    Thank you!
  2. Administrator

    Key Master

    { #2 — 3 years ago }

    You've come up with a good suggestion and implementation. I'm moving this to the features request thread. Approved and will be implemented as time allows.
  3. acobb

    Member

    { #3 — 2 years ago }

    In the current version, host.match is used, not host.search

    I made this work by using url.href.match, but url.match may work as well.

    More information at http://www.binaryturf.com/forum/topic/ie-tab-not-matching-preset-domains

Reply

You must log in to post.