[Webkit-unassigned] [Bug 206924] New: Content blocker: add an option to replace response with static content

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 29 02:35:35 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=206924

            Bug ID: 206924
           Summary: Content blocker: add an option to replace response
                    with static content
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: am at adguard.com

AdGuard and uBlock Origin provide an option to replace the matching request's response with some static content.

The rule modifier is called $redirect and it is nowadays used really often.

Examples of the rules that could be used:
||example.org/script.js$script,redirect=noopjs -- return an empty JS file
||example.org/style.csss$style,redirect=noopcss -- return an empty CSS file

Here's what I suggest: add a new content blocker that will provide the same functionality.
Keep a list of named pre-defined resources that can be used to replace the answer.


Here's how it could look like:

    "action": {
        "type": "redirect",
        "resource": "blank-css"
    }

Here's the list of resources that would be helpful:

* Blank CSS file
* Blank HTML document (to replace iframes)
* Blanked JS file
* Blank text file
* "Blank" MP3 (1-sec mp3 file)
* "Blank" MP4 (1-sec mp4 file)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200129/cd32b076/attachment-0001.htm>


More information about the webkit-unassigned mailing list