forked from gorhill/httpswitchboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrulemanager.html
More file actions
74 lines (69 loc) · 2.79 KB
/
rulemanager.html
File metadata and controls
74 lines (69 loc) · 2.79 KB
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>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>HTTP Switchboard — Rule manager</title>
<link rel="stylesheet" type="text/css" href="css/fonts.css">
<link rel="stylesheet" type="text/css" href="css/rulemanager.css">
</head>
<body>
<div id="navi-bar">
<h1>HTTP Switchboard — Rule manager</h1>
<button id="commitAll"><span class="fa"></span>Commit all</button>
<button id="revertAll"><span class="fa"></span>Revert all</button>
<button id="removeAll"><span class="fa"></span>Remove all</button>
</div>
<div>
<table>
<tr>
<td colspan="2" style="width:49%;"><h2>Rules</h2>
<td>
<td colspan="2" style="width:49%;"><h2>Recipe</h2>
<tr>
<td colspan="2">
This is where you want to backup all of your scopes and rules: Click
"Export rules", optionally click "Encode recipe", save the result into
a file which content can be pasted here later.
<p>Syntax is very strict, only the most geeky users should risk editing here.
If you are importing a recipe from an untrusted source, be sure there is nothing
wrong with it (ex.: <b>“whitelist * evil.com”</b>)</p>
<td>
<td colspan="2">
A “recipe” is just a set of rules encoded in a way to make it easy to
backup or exchange set of rules between users. Hopefully geekier users will share
their carefully crafted recipes to help less geeky users.
<tr>
<td colspan="2">
<textarea id="recipeBeautiful" class="recipe"></textarea>
<td style="vertical-align:middle;">
<span id="recipeDecode" title="Decode recipe">Decode recipe</span>
<span id="recipeEncode" title="Encode recipe">Encode recipe</span>
<td colspan="2">
<textarea id="recipeUgly" class="recipe"></textarea>
<tr>
<td style="text-align:center;">
<span id="recipeImport" title="Import rules">Import rules</span>
<td style="text-align:center;">
<span id="recipeExport" title="Export rules">Export rules</span>
<td>
<td>
<td>
</table>
<h2>Global scope</h2>
<div class="scopes" id="global"></div>
<h2>Behind-the-scene scope</h2>
<div class="scopes" id="behind-the-scene"></div>
<h2>Domain-level scopes</h2>
<div class="scopes" id="perdomain"></div>
<h2>Site-level scopes</h2>
<div class="scopes" id="persite"></div>
</div>
<div id="messages" style="display:none">
<p id="confirmRemoveAll">You are about to delete all rules.
It is irreversible.
Click OK to confirm.</p>
</div>
<script src="lib/jquery-2.min.js"></script>
<script src="js/rulemanager.js"></script>
</body>
</html>