Comments (5)
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.
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.
Um... I think there's a misunderstanding... perhaps this will clarify what I mean:
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.
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.
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)
- Please help – using tables? HOT 1
- cannot change tab name for server http://127.0.0.1:8188/ HOT 1
- Does not work with Notion web app HOT 3
- Color active tab? HOT 1
- Any keyboard shortcut to rename tab?
- Tab Modifier reborn & v1.0 HOT 4
- chrome extension market can't find Tab Modifer HOT 1
- Cannot add custom icon HOT 4
- $1 not works
- "Starts With" detection type never matches HOT 3
- Custom Icon Section needs to be fixed. Issue on New Updated Version HOT 1
- Group name is not set after reordering a tab HOT 1
- Duplicate-function leads to confusion/trouble - suspect it duplicates internal ID HOT 4
- Regression? Prior behavior for Unique was to the pattern, not the full URL of a page HOT 2
- Rename Tab function broken
- add map for matcher or regex HOT 1
- Title has been processed repeatedly.
- Tab Title of the Rule is overwritten by the Actual Website Title after page load completes. HOT 5
- Favicon briefly changes to my specified one, but then changes back once page loads HOT 5
- Regex rule does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-tab-modifier.