furybee / chrome-tab-modifier

Take control of your tabs
https://chrome.google.com/webstore/detail/tab-modifier/hcbgadmbdkiilgpifjgcakjehmafcjai
MIT License
549 stars 105 forks source link

Remove unsuccessful selectors #367

Closed martic closed 1 week ago

martic commented 2 weeks ago

Describe the bug Maybe this is more a feature request.

When regex selectors don't match can the regex be removed. I use this rule to help me organise my Gmail. [Email:{.ain a}] {H2.hP} [from] {.gD span} [to] {.acZ.xD [email]} [tag] {.ahR div[name^="C/"]} This works great while an email is opened, but not when in in the inbox.

To Reproduce Steps to reproduce the behavior: Make a rule for gmail. explore gmail using rule

Expected behavior I would like the unsuccessful tags to be hidden so instead of seeing this in the inbox: [Email:inbox] {H2.hP} [from] {.gD span} [to] {.acZ.xD [email]} [tag] {.ahR div[name^="C/"]} I see this: [Email:inbox] [from] [to] [tag] Bonus would to also control text if the regex fails So its just this: [Email:inbox]

Screenshots Title when an email is open, which is great. image

Title when displaying the Inbox: image

Perhaps, a toggle option can be selected to turn this option on and off.

Thanks for a great plugin!