Изменения в версии 1.3.7 Beta 5
Redirection infrastructure -- consider this still experimental. This adds the option to map blocked network requests to uBO-provided resources. Specifically, this solves issue raised in #949 -- and more generally consider this yet another tool in uBO's arsenal to enforce users' choices.
The library of resources which are used for redirection is -- and will always be completely under control of uBO, this is not something under the control of any 3rd parties. This ensures only safe resources are used for redirection.
It could be said this feature is vaguely similar to NoScript's surrogates, except that in the case of uBO it's network redirection to plainly map one resource into another one, and it can be used for any kind of resource, not just scripts (anything which can be represented with a data: URI).
Only blocked network requests are candidates for redirection.
To create a redirection filter, just add the redirect=[...] filter option to it, like so:
The [...] is a token identifying the resource to which to redirect: it must be a resource which appears in the redirection library.
For the redirect= filter option to be taken into account, some conditions must be met by the static filter, for efficiency purpose. The static filter ...
must be hostname-anchored, i.e. starts with ||.
must have one type specified -- negated types are not valid.
must have a redirect token which identifies an existing resource in the redirection library.
If at least one of the above conditions is not met, no redirection will take place, though the filter will still block matching network requests.
Example of cases solved by the redirect filter option:
Ads in video: http://www.chip.de/n...s_85752247.html
Site detects blocker: http://dayt.se/forum...nline-Streaming
Closed as fixed: Firefox
NoScript Force HTTPS feature interferes with uBlock Origin
uBo is causing CPU hog with imdb.com (popup video)
Support subscribe links
Block ad videos playing automatically
Fixed issue arising from Add the I don't care about cookies filter to Regions, languages? (see comment).