Whitelisting single pages instead of domains
Background
The ABP UI team would like to offer the possibility to whitelist specific pages, instead of whole domains, as it is now.
A visual prototype of the idea is here https://eyeogmbh.invisionapp.com/share/TYSWLRTQ37D#/screens and there is already an implementation review https://gitlab.com/eyeo/adblockplus/abpui/adblockplusui/merge_requests/373
What to change
We are currently able to send requests such as browser.runtime.sendMessage({"filters.whitelist", tab});
to either whitelist or unwhitelist a specific tab or its current url, but this results in whitelisting the whole domain.
Eventually, we would like to be able to whitelist only specific pages (both path and query string) passing an optional singlePage
boolean flag to the message, i.e.
browser.runtime.sendMessage({
type: "filters.whitelist", // or "filters.unwhitelist"
singlePage: true,
tab
});
This would allow users to allow ads only in some specific page/section of a Website, as opposite of enabling ads everywhere.
This is particular useful for sites containing tons of undesired inner links, in articles that might be of interest for our users.
The extension should finally be able to distinguish between a whole whitelisted domain, VS a specific page of a specific site.