1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
{
"namespace": "experimental.webRequest",
"types": [
{
"id": "RequestMatcher",
"type": "object",
"description": "Matches network events by various criteria. Experimental junk, do not use!",
"properties": {
"url": {
"type": "string",
"description": "Matches for a full URL",
"optional": true
},
"instanceType": { "type": "string", "enum": ["experimental.webRequest.RequestMatcher"] }
}
},
{
"id": "CancelRequest",
"description": "Declarative event action that cancels a network request. Experimental junk, do not use!",
"type": "object",
"properties": {
"instanceType": { "type": "string", "enum": ["experimental.webRequest.CancelRequest"] }
}
},
{
"id": "ModifyRequest",
"description": "Declarative event action that modifies a network request. Experimental junk, do not use!",
"type": "object",
"properties": {
"instanceType": { "type": "string", "enum": ["experimental.webRequest.ModifyRequest"] }
}
}
],
"functions": [
],
"events": [
{
"name": "onRequest",
"options": {
"supportsListeners": false,
"supportsRules": true,
"conditions": ["RequestMatcher"],
"actions": ["CancelRequest", "ModifyRequest"]
}
}
]
}
]
|