-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Add current ETLD+1" doesn't work correctly #17
Comments
Hey 👋 That's a good point, it should also impact IP links. Do you have any idea of a proper way to fix it? |
I'm not 100% what the best way would be to be honest. I don't know if there is a library that will do that for you. |
What's complicated is that I need the code to be small. I don't want it to become super complex for a "less important" feature 🤔 The proposed fix seems like a good way to achieve this, but it still forces me to integrate several megabytes of text just for an "easy to add domain" button :( I'll give me some time thinking of a way to fix this without to much code :D |
Yeah, that's the problem. Maybe just try to cater for the top 10 obvious one's like |
That could be a good way to fix this issue! I'll also integrate an IP regex to detect whenever the current domain is an IP. |
After reflection, I realized that the JSON file isn't that big and only needs to be loaded within the popup menu. So, I decided to integrate it directly. Thanks again for pointing this out; it will be included in the next release :) |
Hi Kevin
If you go to https://www.amazon.co.uk/ for example and click the "Add current ETLD+1" button, it adds
co.uk
to the domains list.I'm guessing you are just taking the last part of the domain and assuming only 1 dot i the TLD, but there are quite a few with 2 parts, and even some with 3 and 4.
Thanks
Xnl
The text was updated successfully, but these errors were encountered: