furybee / chrome-tab-modifier Goto Github PK
View Code? Open in Web Editor NEWTake control of your tabs
Home Page: https://chrome.google.com/webstore/detail/tab-modifier/hcbgadmbdkiilgpifjgcakjehmafcjai
License: MIT License
Take control of your tabs
Home Page: https://chrome.google.com/webstore/detail/tab-modifier/hcbgadmbdkiilgpifjgcakjehmafcjai
License: MIT License
Everything works great, except when i setup the next rule
{
"rules": [
{
"name": "Whatsapp",
"url_fragment": "web.whatsapp.com/",
"tab": {
"title": "Google",
"icon": "https://www.google.ca/favicon.ico",
"pinned": false,
"protected": false,
"unique": false,
"muted": false,
"url_matcher": null
}
}
]
}
i see the google icon in the tab, but after some few seconds the whatsapp icon comes back, i guess the website is setting up back again, because it show the number of notifications.
Anyway i want to keep the favicon of google instead of whatsapp favicon.
Thanks for the project, it's awesome!
Hello,
I use Tab Modifier extension on my professional computer, Chrome extensions are synchronized with all my computers so when I use my personnal computer, Tab Modifier is enabled, rules are synced and I don't want it.
Is it possible to enable/disable Tab Modifier rule (or extension) depending computer on which I am connected ?
Thanks
I would like to be able to apply a regex transformation to the existing tab title, instead of completely replacing or adding to it.
e.g. I sign into multiple gmail accounts simultaneously, and each tab is "Inbox (1,234) - [email protected]", but when tabs are narrow, all i see is "Inbox (1,234) - ", thus i can't tell which tab is which account. I'd like to switch it around so the mailbox name is first: something like s/(^.*\)) (.*$)/\2 \1/
Many other websites start the tab title with some generic phrase followed by more useful title info, it would be great to RegEx capture and omit the generic phrase at the beginning.
Example of two different GMail inboxes, and different eBay pages that look the same:
Hi there, first I want to say that I love this extension, it's beautiful in both its design and implementation. One thing I wish Chrome had by default was the ability to move the position of tabs using hotkeys. At the moment, I'm using an extension that gives me this functionality (with the hotkeys CMD+. to go right and CMD+, to go left), but I think this would be an excellent addition to your already powerful extension.
A recent change erased all of my rules. Luckily I have my json file, but when I import it, it tells me it was successfully imported, but doesn't add the rules back. I can only seem to import/create up to 33 rules now. When I try to add a 34th, it shows up, and tells me it's successful, but when I click to Settings and then back to Rules, it's gone. This may be related to the recent storage change.
If increasing the limit is not an option, another solution for my scenario would be to allow rules to work with each other. I have all these different rules because I manually mapped a dozen or so GET variable IDs to 4 pages that use them (e.g. "www.website.com/InfoPage.aspx?ID=1234"), so if there could be a priority system where I can define one fragment ("www.website.com/InfoPage.aspx") to mean "Info Page" and then another fragment ("ID=1234") to mean "ABCD {title}" so it would say "ABCD Value Info Page", that would greatly reduce the number of rules I need. As it was, I had to look for each combination of URL and ID individually.
I just started using this wonderful product. Now, when I fire up Chrome, the tabs don't necessarily open in the order I've listed them in Tab Rules. I expected the first to be left-most, and second tab to be to the right of the first, etc. Their final sequence (left to right) on the Chrome bar seems to vary.
Is this a bug or a feature? (Or maybe simply a stupid user trick?)
It would be nice if this extension could support this scenario:
Now it just closes that tab again.
I'd like to get this to work with crosh windows but either I'm not setting it up properly or its just impossible.
So, for me, this is the "URL" of a crosh window
chrome-extension://nkoccljplnhpfnfiajclkommnmllphnl/html/crosh.html
I've tried matching the entire string, the randomish looking "nkoccljplnhpfnfiajclkommnmllphnl", and "crosh.html"
Nothing works
Hello,
I am viewing a local pdf file with the extension Pdf Viewer, the url is:
chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/file:///C:/Users/agm/Downloads/funny-quotes.pdf
I cannot rename the tab. Everything else is working fine, I can rename online stuffs like gmail and yahoo emails.
Thanks for your help :)
Hi,
I've just been exploring this addon and it's very useful, but there is one place in which I can't use it, but it is desperately needed. Slack tabs are a good example so I will use that. Here is what my tabs look like:
I have 5 different Slack organizations, plus some other stuff. I have asked the Slack devs to add an option to customize the icon on a per org basis, but they have not yet done this, which is what motivated me to try this chrome extension.
The problem is that the favicon is used by slack (and many other web applications also do this) to convey information to the user. In the example above, the first of the slack tabs is alerting me to the fact that I have an unread message mentioning my username specifically. The other four have no unread messages. In the case of slack there are only three options (unread, mentioned and no-unread). The website achieves this by altering the favicon to whatever state is appropriate at the time.
My feature request would be to allow me to match the current favicon in addition to the URL in order to display a different icon for the three different statuses.
Can you add a new feature that lets you change a tab that starts with, for example, www.youtube.com?
When I add a rule to change the tab of "www.TabRuleURL.com" and visit any site and add "www.TabRuleURL.com" at the end, for example, "www.facebook.com/www.TabRuleURL.com" the extension thinks that it's the same site and changes the tab based on the rule I made for "www.TabRuleURL.com"
Thanks in advance
I set some tabs to auto pin and unique. When they get automatically refreshed i think Chrome sees it as me trying to open a new one so it auto switches to that tab instead. Is there a way to avoid this?
Thanks
How hard would it be and/or would it be possible to implement filtering by HTTP headers?
I am currently using the plugin (and loving it) with a local + remote server setup, so I can see at a glance which site I'm editing, but the remote side also has a staging and production separation, but the URL for both is the same. The only way I can differentiate them is by a value in the page HTTP headers.
I have hacked together a proof of concept that achieves the basic functionality of checking the headers using webRequest.onHeadersReceived.addListener
in background.js
and sending a message to retrieve the tab headers in content.js
, but that's all so far.
What are your thoughts on extending the matching to include things like headers or cookies in general? Could there be a way for the user to provide custom JS functions for testing the tab's properties?
Please see this SO question for reference: http://stackoverflow.com/questions/41492886/dom-selector-to-get-text-of-element-ignoring-children/41492946?noredirect=1#comment70192261_41492946
Basically I have an element that looks like this:
<div id="pageTitle">This Page! <a href="nextpage.html">Next Page</a></div>
I want the tab to be named "This Page!" but if I use {.pageTitle}
it will be named "This Page! Next Page".
Hi,
I have Asana saved as a url fragment for my account, but when I navigate throught it it always ask me if I want to "Leave". I'm guessing this is due to the "Protected" option being on or? The same happens for Pipedrive. I want the tab with Asana or Pipedrive to be pinned, but not always ask me if I want to Reload/Leave?
Thanks! :)
For instance:
<div id="now-playing-media" title="Ed Sheeran - Shape Of You (NOTD Remix)" style="width: 937.703px;">
<span class="bar-value"><span class="author">Ed Sheeran</span> - Shape Of You (NOTD Remix)</span>
</div>
Can I make the tab title "Ed Sheeran - Shape Of You (NOTD Remix)"?
I tried a few things, including {#now-playing-media:attr("title")}
but can't get anything to work.
Hi @sylouuu,
What a cool extension!
What do you think of showing the tab number at the place of the favicon when pressing Ctrl or Alt?
I have modified the gmail favicon to have some added initials to differentiate between work/personal. I am using the follow to "attempt" to use a locally store file but it doesn't seem to work. The title changes so I know that works but the icon stays the same.
Do you have any thoughts on this?
{
"twitter.com": {
"title": "I'm working hard!",
"icon": "file:///C:/Program%20Files%20(x86)/Google/Chrome/Tab-Modifier/faviconARC.ico"
}
}
We all know that Chrome does not allow us to colorize tabs but because we can customize favicons it means that we can also colorize them.
Have a look at the screenshot below which contains 3 tabs from 3 different Jenkins instances, all of them having the same favicon.
Changing favicons yourself and hosting them somewhere online is a very time consuming operations so it would be much easier if this extension would allow us to apply a recoloring filter on the original favicon of the site. This would allow us to distinguish between different similar software instances.
The favicon is supposed to be saved locally at the configuration time and filtered, no refresh is necessary.
Dear,
I just try using tam modifier for opera, and bellow is the script that I want to use to pin all 5 site, but none of them pinned, can you help me what wrong with script ?
Thank you in advance.
PS: I'm using opera 37 on PC
{
"rules": [{
"name": "Gmail",
"url_fragment": "mail.google.com/mail/u/0/?#inbox",
"tab": {
"title": null,
"icon": null,
"pinned": true,
"protected": false,
"unique": false,
"muted": false,
"url_matcher": null
}
}, {
"name": "ID-BB",
"url_fragment": "mail.google.com/mail/u/1/#inbox",
"tab": {
"title": null,
"icon": null,
"pinned": true,
"protected": false,
"unique": false,
"muted": false,
"url_matcher": null
}
}, {
"name": "Office",
"url_fragment": "mail.google.com/mail/u/2/#inbox",
"tab": {
"title": null,
"icon": null,
"pinned": true,
"protected": false,
"unique": false,
"muted": false,
"url_matcher": null
}
}, {
"name": "Yahoo",
"url_fragment": "mg.mail.yahoo.com/neo/",
"tab": {
"title": null,
"icon": null,
"pinned": true,
"protected": false,
"unique": false,
"muted": false,
"url_matcher": null
}
}, {
"name": "Feedly",
"url_fragment": "feedly.com/i/latest",
"tab": {
"title": null,
"icon": null,
"pinned": true,
"protected": false,
"unique": false,
"muted": false,
"url_matcher": null
}
}]
}
I'm trying to use chrome-tab-modifier to display the current track on plug.dj. It works, but when the song changes the tab title does not update. This would be a great feature for many sites I believe.
I would like to suggest an option to un-apply rules, once the URL changes and isn't matched any more.
Example:
Unfortunately it ist not possible to change the adressbar-icons from "internal" Chrome-Adresses like
"chrome://history".
Do you know how this can be achieved or do you plan a future version to make it possible ?
Maybe you know where Chrome stores the graphic data for those "default Icons" (like the clock icon from the history tab) ?
When there are URLs that meet criteria of multiple rules (even if they don't overlap i.e. one is just an icon and one is just a title), only one rule is fulfilled. Is there any way to have multiple rules work together?
I am wondering if it is possible to have this tool grab a block of html from a page to use in the title.
For example I have 100 windows open using salesforce, however all of the windows titles just say "case # " I'd rather have it look into the web page and extract and display this html div tag to my tab's title is "TITLE OF MY CASE"
Hello, Thanks for the extension, it is exactly what I was looking for, but I can't seem to get it to work with local urls that start with "file:///". Is there a special syntax for this?
I don't know if there's anything to be done about this, but since YouTube probably change their title as well through Javascript, using this addon to change titles on YouTube sends the browser into some kind of infinite war of title changes.
My aim is to automatically rename tabs using the URL.
For example: if the URL is cdetsng.company.com/blah/ABCde12345&xyz=1/... , then I want to tab tile to display only the variable part "de12345", because the part before that remains same (like for ABCef67890, the URL will be cdetsng.company.com/blah/ABCef67890). (I can easily put the title as ABC, but that's of no use to me.)
Great extension, thanks. Is there a way to stop tabs from refreshing by themselves (i.e. Twitter home stream), as this changes the tab title back to the unmodified one.
Thanks for a great extension, it's perfect for changing the favicons on pinned tabs, so that it's easier to identify them. Also useful for changing dark favicons to lighter ones, so that they're easier to see on a dark Chrome theme. 👍
However, changing the favicon doesn't work for GitHub (github.com). Works fine for Slack, Waffle.io, etc.
Changing the tab's title works (so the rule is matched), but the favicon doesn't change.
This extension is required just in page load, event page should be used.
https://developer.chrome.com/extensions/event_pages
Sometimes we have multiple rules that match the same page. We need to be able to reorder the rules.
UI for reordering is usually not trivial, and usually a pain to implement. I'd suggest something like when editing a playlist in YouTube. We could have a draggable handle at the left of the rule, and the user would be able to drag-and-drop the rules using the handle.
As a workaround, we are able to reorder the rules by exporting them, editing them in a text editor, and importing them again.
Instead of writing several rules with the same actions, I'd like to write one and just use a regex to match several URLs.
Some real-world use-cases:
If you want some inspiration, Stylish extension is very flexible regarding matching URLs, although I understand such complicated UI is beyond the vision for chrome-tab-modifier.
Would it be possible to add an nth-of-type option for DOM element selection?
i.e. {span:nth-of-type(3)}
Thanks!
Hi,
First of all this is a great Addon. Thank you for your work!
What do you think of adding some possibility to run a js. script after a page is loaded?
The reason i'd like that is that i like to recolor a element of a site so i know that i am in DEV or PROD
So in fact i want to change the background of a specific container. eg. Red for PROD and Green for DEV and if there is the posibility to run a script after loading a page that would be great.
I have two issues with using pinned tabs these days… 1) I keep opening new tabs for some sites and 2) I keep closing my pinned tabs.
It'd be interesting to see a new feature where there's pinned tab protection… if I try to close a tab, it either asks me if I really want to or just flat out prevents it.
Second feature would be preventing myself from having my pinned gmail tab open 3 times… i.e. if mail.google.com is opened, it becomes pinned via chrome-tab-modifier and if it already has one of those tabs, it either prevents me from opening another one or tells me to stop being this stupid…
OS X El Capitan
Chrome: Version 48.0.2564.116 (64-bit)
If I disable the extension and do it, then it works fine and doesn't switch focus.
I would expect it not to switch focus. If I finish the address with "www.facebook.com" I would expect the tab to close and the focus to switch to the already opened tab. If I finish the address with something else than Facebook, then I would expect the new tab to behave as without the extension enabled.
The goal of this option is to add the ability to indicate just a domain without specific sub-domain.
For examples, I have these domains :
www.lmonsite-fr.com
back.lmonsite-fr.com
www.dmonsite-fr.com
back.dmonsite-fr.com
www.rmonsite-fr.com
back.rmonsite-fr.com
www.pmonsite-fr.com
back.pmonsite-fr.com
www.monsite-fr.com
back.monsite-fr.com
And in reality, I have 6 subdomains in 7 languages. Sometimes, there are some moves. More domains, more sub-domains. Or less for both. Manage this list could be quickly boring.
Is it possible to cover all sub-domains by a classical "joker" pattern ?
Can you port this add-on to FireFox?, I recently changed from Chrome to FireFox because of faster performance but there are no tab modifying add-ons in the FireFox add-on store
Hej,
I've tried the extension, but it seems that Chrome seems to be having some troubles rendering the Fira Sans font that You've decided to use.
I'm not sure if it's just my case - googling returns quite a few results for the same thing, so I presume it's not THAT uncommon.
Any chance You could use another and/or more general typeface in the next releases?
Since You're using it pretty much everywhere, the unfortunate result of this bug is that the extension displays without any text whatsoever... Kinda nasty unless You're used to work with webdev / chrome extensions...
Great plugin, thanks for your efforts.
I use it in similar way, as described in the README.md. What I would find useful is to be able to overlay the selected icon over the existing favicon, when having multiple local sites open, it's harder to see, which one is which, without creating a separate icon for each project.
Example: Map the green hollow circle icon to local domains, map the red circle over live domains, which then overlays the existing favicon.
It would be better to have this as an option, rather then a feature replacement.
This is a great extension. Simple and clean.
But website is able to change tab's title with javascript.
This is bad for this extension. Example page: facebook.com.
My suggestions for problem solving are:
1.) Check every x (2-5-10-30) seconds if title changed.
2.) Monitor all ajax events and fire title check after ajax success.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.