Comments (17)
@Peuj does whitelist regex allow to use negations? :-)
It seems that this works. I'm using ^(?!.*github.com).*$
and it works well. However, it will be better if blacklist is explicitly supported.
BTW, I think it's a little bit strange to ignore whitelist instead of blacklist 🤔
from duplicate-tabs-closer.
@caheru
It's possible, the behavior would be the opposite of what is done today.
The blacklist would be accessible and used only in NOT automatic close mode
.
Also as with whitelist you can use regex or not.
from duplicate-tabs-closer.
@Peuj does whitelist regex allow to use negations? :-)
from duplicate-tabs-closer.
not at all !!! :D
from duplicate-tabs-closer.
BTW, I think it's a little bit strange to ignore whitelist instead of blacklist 🤔
This could be workaround for tendency to change naming conventions of that lists, because @Peuj not favors any of them.
But, I was really not joking - some time name should be change sth like (Allow|Deny)list.
It seems that this works. I'm using
^(?!.*github.com).*$
and it works well. However, it will be better if blacklist is explicitly supported.
btw @ouuan combining the rules for different things is complex thing. Could You prepare some most sophisticated example you could imagine, and if @Peuj will accept that I will be greatful to make change.
from duplicate-tabs-closer.
@ouuan You're right, it works but it's not explicitly the goal.
BTW, I think it's a little bit strange to ignore whitelist instead of blacklist
Not sure of what you mean.
I don't use the whitelist and will probably not use the blacklist also.
I've provided this feature from a request but as I don't use it, the behavior could probably be better.
So I've renamed this thread to be an opened discussion about whitelist/blacklist.
Any suggestions with usecases is welcome. 😃
from duplicate-tabs-closer.
BTW, I think it's a little bit strange to ignore whitelist instead of blacklist
Not sure of what you mean.
I think he/she means "black/whitelist" is related to racism, and "allow/deny list" is better. I read about articles about it, but I seldom think of it, because I don't think it's related to racism.
from duplicate-tabs-closer.
Any suggestions with usecases is welcome. 😃
@ouuan and @Peuj tell me what you think could be useful.
As I mentioned and seen - that one method of negative regex is mostly one of greatest workaround in older system ;) (kinda Mammoth here)
BTW, I think it's a little bit strange to ignore whitelist instead of blacklist
Not sure of what you mean.
I think he/she means "black/whitelist" is related to racism, and "allow/deny list" is better. I read about articles about it, but I seldom think of it, because I don't think it's related to racism.
yeah, you got it. I agree with You @ouuan but in fact there was many of that kind of black/white lists in history. Like pubs for Black, shops for Nazi. There was a lot of history behind that.
I don't get it even more for github master general branch name which is considered to be changed. We all have ppl getting Masters degree - is it make it bad? I dont think so.
But there could be someone which could be offended because it.
Also, thanks for "he/she". I am he. But in general I know that if you don't know who - you call just they/them @ouuan
from duplicate-tabs-closer.
My suggestion is ordered set of rules which are:
- blocking closing (which is whitelist)
- allowing closing (which is blacklist)
Iterating throught this ordered set/list.
- if any allowed hit - look for any exactly less general blocking rule out there (sub i.e. we want to remove duplicated general pages from slack.com/discord.com but not specifically open ones from some chat rooms - bad example but not know better now)
- if any blocking hit - stop looking and just block closing (we want github always be open just because; that would be good for some Single Page Apps because they sometimes operate on
#
fragment part of URI than on URL differentiations)
But, btw. Last time I rarelly use that closing and just add all of things to specific folder of my Starred Tabs list, and then try to reprocess that folder. So, maybe I don't get idea no longer.
from duplicate-tabs-closer.
In fact I'm OK with these changes as long as they are not breaking changes. I can care about my words when talking with others, but not when using a git alias.
from duplicate-tabs-closer.
I personally don't care about colors, master, he/she,... Depending of your native language, where you live,.. there are different meanings and what is important is the intention behind the words.
Anyway as it's right that someone could be offended, I'll changed the "black/whitelist" naming.
Going back to main subject, I missed the mode
used with the usecases.
Here's my understanding, fell free to comment:
First there are two modes:
Close mode
( Close tab automatically)Watch mode
(Update badge value)
Now about the rules:
-
Allow duplicate rules (aka whitelist aka blocking closing):
Used inClose mode
to avoid specific duplicate tabs to closed.
Not used inWatch mode
as no action is done.
I've planned to add a filter in the panel to hide duplicate tabs matching Allow duplicate rules. -
Close duplicate rules (aka blacklist aka allowing closing):
Used inWatch mode
to close only specific duplicate tabs.
and/or
Used inClose mode
to override the existingMatching rules
from duplicate-tabs-closer.
Great @Peuj
What about @ouuan ?
(offtop: agree with You both)
from duplicate-tabs-closer.
@JulianVolodia and @ouuan (and others)
And again, I don't use those features so if there is something you don't need in what I've described let me know.
Obvious remark, but I would like to not loose times to develop and mostly maintain something not used. 😏
from duplicate-tabs-closer.
@Peuj obvious if asked and everybody ask about. Great to know. I just want to contribute, bc that's very nice project which helped me to decrease my tabs count and then to stop do "read-it-later" lifestyle any longer (that addon work on it with some unexpected mobile Chrome crashes to free me). ;)
Thanks for telling.
from duplicate-tabs-closer.
-
Whitelist
⠅ global/defaultOFF
, separate/fewON
. Just like RegExp:(?=)
(?<=)
-
Blacklist
⠅ global/defaultON
, separate/fewOFF
. Just like RegExp:(?!)
(?<!)
Do you mean like this 👇?
https://chrome.google.com/webstore/detail/nokdeeoiaiicgnonknihiccadnnmpeoh
https://github.com/trambopoline/new-domain-in-new-tab
But I think duplicate-tabs-closer
is completely enough for now.
from duplicate-tabs-closer.
ignore urls
maybe more clear
from duplicate-tabs-closer.
I found this plugin, which implements the whitelist function
It is open source, but the disadvantage is that it has no manual mode and will automatically deduplicate tabs in the background.
https://github.com/marinebox/tab-killer
https://chrome.google.com/webstore/detail/tab-killer/gpmdlohnnmjfoojdcjojoimhkiifcbkl?hl=zh-CN
from duplicate-tabs-closer.
Related Issues (20)
- Not able to find duplicate tabs in different browser windows HOT 1
- Whitelist or Blacklist Domains
- Feature Request: show that a link is already open in a tab
- Make the list of duplicates deeper – allow appearance of more than two HOT 1
- Don't close duplicate tab special cases (ctrl + k, or other manual override) HOT 1
- Containers disappeared from scope setting
- View page source tab is seen as a duplicate (again?)
- Feature request: Show URL in tooltip on hover
- support for firefox sync
- It doesn't close loopback address, `127.0.0.1`
- Duplicate tabs list should update after clicking Close all
- All browser dialogs immidiately auto-close when clicked HOT 1
- Option to exclude duplicates that are manually opened
- addon doesn't closes duplicate "about:blank" tabs
- Is Duplicate Tabs Closer extension still being maintained and updated? HOT 3
- Does not detect duplicate unloaded tabs.
- New tabs. HOT 2
- Close duplicates matching any site/url on user-provided list HOT 1
- Serious performance issues if user is crazy enough to have a LOT of tabs open. HOT 3
- Closed all tabs that were not loaded across all tab groups
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 duplicate-tabs-closer.