lewisje wrote:Also, I suspect that it would be out of scope for ABP to insert JS to deal with certain types of content; however, a similar idea has been tried in NoScript (called "surrogate scripts")
Since I posted that, uBlock Origin is trying out just this sort of thing: https://github.com/gorhill/uBlock/blob/ ... ources.txt
Currently the extension has a bundled list of resource tokens and corresponding swap-resources; if a resource is blocked by a hostname-anchored filter (beginning with ||
) that has one (non-negated) request type, and it has a redirect=token
option, where token
is in the list, the resource will be swapped with the corresponding swap-resource.
This list includes a buggy-looking 26-byte GIF for image-swapping, a minimal HTML page for frame-swapping, and three surrogate scripts; the list cannot currently be edited by the end user, but it may be in the future, and it will not be extensible by third parties.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.