Git Product home page Git Product logo

Comments (5)

sylouuu avatar sylouuu commented on July 29, 2024 1

Hello @NeilForsyth,

I've added the "Title matcher" input and it works like the "URL matcher".

The difference is that you have to use @0 instead of $0 (dollar syntax reserved to URL matcher) in the title input.

You can combine both to alter your title!

Be sure to opt-in for new version notification in Tab Modifier settings. :)

Let me know after the release if it's OK for you with this new feature!

Best

from chrome-tab-modifier.

sylouuu avatar sylouuu commented on July 29, 2024

Hi @NeilForsyth,

This feature should work in the current version.

  • Create your rule based on GMail like mail.google.com
  • Enter your Regexp in the "URL matcher" input
  • Use $1 or $2 inside the title to print your variable such as your email

See the README to get more details about configurations.

Best

from chrome-tab-modifier.

NeilForsyth avatar NeilForsyth commented on July 29, 2024

Um... I think there's a misunderstanding... perhaps this will clarify what I mean:

2017-01-06_1-50-08

i.e. if I put something like ([a-z]*@gmail.com) in the URL Matcher input, then $1 in the title, then it would only work if [email protected] was actually written in the URL... but it's not in the URL... it's in the page title already, just at the end (where it's often cut off).

from chrome-tab-modifier.

sylouuu avatar sylouuu commented on July 29, 2024

Oh my bad. Yes URL matcher scans the URL with the Regexp, you want to scan the title.

So yes it's not possible.

In case you just want to display your email as a title you may try something. Clear URL matcher and put this in the title input : {.gb_vb} - {title}

.gb_vb seems to be the CSS class where your email is displayed in GMail.

Best

from chrome-tab-modifier.

NeilForsyth avatar NeilForsyth commented on July 29, 2024

Thanks for that - I've spent some time over the past day figuring out equivalent classes etc. for other sites, and so far it's all working great!

I must say it's more work digging through the DOM than a regex on the title though, so my original feature request still stands, but it's not so critical to me anymore.

...I actually find myself wanting to have a regex (or some other text mangling system) apply from the results of the {selectors}! That's a more powerful request than what I originally asked for, and perhaps a bit much.

Thanks @sylouuu for writing this Chrome extension, and for your support!

from chrome-tab-modifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.