-
Notifications
You must be signed in to change notification settings - Fork 10
/
_rules.txt
38 lines (31 loc) · 1017 Bytes
/
_rules.txt
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
``` whistle.chii/inspect.html
<script>
function escapeJs(str) {
if (!str || typeof str !== 'string') {
return '';
}
return str.replace(/["'\\\n\r\u2028\u2029]/g, function(char) {
switch (char) {
case '"':
case "'":
case '\\':
return '\\' + char;
case '\n':
return '\\n';
case '\r':
return '\\r';
// Line separator
case '\u2028':
return '\\u2028';
// Paragraph separator
case '\u2029':
return '\\u2029';
}
});
};
window.ChiiTitle = escapeJs('${whistle.chii}') || 'anonymous';
window.ChiiServerUrl = location.host + '/...whistle-path.5b6af7b9884e1165...///whistle.chii';
</script>
<script src='/...whistle-path.5b6af7b9884e1165...///whistle.chii/target.js'></script>
```
* htmlAppend://`{whistle.chii/inspect.html}` enable://safeHtml