- Notifications
You must be signed in to change notification settings - Fork 8.5k
/
Copy pathindex.html
74 lines (74 loc) · 2.31 KB
/
index.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!doctype html>
<htmllang="en">
<head>
<metacharset="UTF-8" />
<metahttp-equiv="X-UA-Compatible" content="IE=edge" />
<metaname="viewport" content="width=device-width, initial-scale=1.0" />
<title>Scripting Demo</title>
<linkrel="stylesheet" href="index.css" />
<scriptdefersrc="index.js"></script>
</head>
<body>
<form>
<h1>Scripting Demo</h1>
<divclass="tabs">
<label>
Dynamic
<inputtype="radio" name="type" value="dynamic" checked/>
</label>
<labelclass="selected">
Programmatic
<inputtype="radio" name="type" value="programmatic" />
</label>
</div>
<label>
<span>Persist across sessions</span>
<selectname="persist" value="no">
<optionvalue="no">No</option>
<optionvalue="yes">Yes</option>
</select>
</label>
<label>
<span>Run at</span>
<selectname="run-at" value="document_idle">
<optionvalue="document_start">document_start</option>
<optionvalue="document_end">document_end</option>
<optionvalue="document_idle">document_idle</option>
</select>
</label>
<label>
<span>World</span>
<selectname="world" value="ISOLATED">
<optionvalue="ISOLATED">ISOLATED</option>
<optionvalue="MAIN">MAIN</option>
</select>
</label>
<label>
<span>All Frames</span>
<selectname="all-frames" value="no">
<optionvalue="no">No</option>
<optionvalue="yes">Yes</option>
</select>
</label>
<label>
<span>Matches</span>
<inputtype="text" name="matches" value="https://example.com/*" />
</label>
<pclass="hint">
Note: Make sure you request the required
<code>host_permissions</code> in the manifest.
</p>
<divclass="buttons programmatic-buttons">
<buttontype="button" id="inject-programmatic">Execute Script</button>
</div>
<divclass="buttons dynamic-buttons">
<buttontype="button" id="register-dynamic" disabled>
Register Script
</button>
<buttontype="button" id="unregister-dynamic" disabled>
Unregister Script
</button>
</div>
</form>
</body>
</html>