-
Notifications
You must be signed in to change notification settings - Fork 144
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
Ghostery 10: Simple custom filters editor #1354
Conversation
8b1067d
to
67098e4
Compare
c969c99
to
6275d92
Compare
b41feeb
to
0ed9537
Compare
62fdc7e
to
b55f711
Compare
Something is wrong specifically in Safari with page <-> BG communication on custom filters update - I'm trying to find what, that's why I have changed the PR to draft. |
@@ -14,7 +14,7 @@ export default function asyncSetup(promises, threshold = 5000) { | |||
|
|||
const result = { | |||
pending: Promise.race([ | |||
Promise.all(promises), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was in one of the implementation when I was passing ternary in adblocker.js
- but it is not now, I'll clean it up.
extension-manifest-v3/src/pages/settings/components/custom-filters.js
Outdated
Show resolved
Hide resolved
extension-manifest-v3/src/pages/settings/components/custom-filters.js
Outdated
Show resolved
Hide resolved
c02d363
to
ebbf464
Compare
ebbf464
to
f5e4c65
Compare
@chrmod PR ready to be re-reviewed ;) |
const dnrRules = []; | ||
const dnrErrors = []; | ||
const results = await Promise.allSettled( | ||
[...networkFilters].map((filter) => converter.convert(filter)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for array spread
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a Set. Look above. I've changed that to simply remove duplicated filters (I discovered them while testing).
@chrmod I installed Ghostery today, but can't find the "Simple custom filters editor" where can I test/try it? |
@Kees1958 This is currently behind the developer tools flag. It means that it is in internal testing phase. However, if you want to check it out, click 5 times version of the extension on the home page of the settings. |
@smalluban Thanks for the fast response. URL filters blocking and cosmetic hiding seems to work well, so that is great. This is really great for cleaning leftovers on my favorite news websites. Thanks a lot for providing this feature. Two minor remarks
On Linux Mint using Ungoogled Chromium I switched from AdBlockPlus to Ghostery |
fix #22
A custom filter editor is a way for filter maintainers and users to apply and test their own adblocking rules.
Initial rollout will have it hidden in the "developer section". In near future this will become available to all users.