3 ms·
Is there a reason you can't use the declarative API to block these websites? Isn't that what you're doing on Safari? https://developer.chrome.com/docs/extensio
by jefftk 5y ago
Is there a reason you can't use the declarative API to block these websites? Isn't that what you're doing on Safari?
https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/ https://developer.chrome.com/docs/extensions/reference/decla...
(Disclosure: I work at Google, speaking only for myself)
- shadowfaxRodeo 5y agoI wrote that previous comment before I fully understood the new specification. I'm still not entirely sure, but it looks like you're right. I thought the rules were static, I see now they can be updated dynamically — which works perfectly for my use case.
- HWR_14 5y agoSo, if I read this correctly, there's no way to modify the results of a request anymore? I can just redirect to a new URL, block or allow? I' m not even sure, upon reading that, if I can use JS to redirect based on the full URL not just the matching snippet to a new URL.