-
Notifications
You must be signed in to change notification settings - Fork 10
/
options.html
56 lines (43 loc) · 1.82 KB
/
options.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="options.css">
<script src="settings.js"></script>
<script src="ui.js"></script>
<script src="options.js"></script>
<title>Options</title>
</head>
<body id="editor" class="editorDefaultState">
<fieldset id="toolbar">
<button class="default" id="btnSave"></button>
<a target="_blank" href="https://github.com/andre-st/chrome-injectjs">Visit Github</a>
</fieldset>
<fieldset>
<textarea id="scriptarea" spellcheck="false">
// ============================================ Extension Config Script ================================================
// Synposis:
//
// mixin( "https://www.url1.de", ()=>{ ... }, { runAsContentScript: true });
// mixin([ "http://url1.com", "http://url2.com" ], ` #selector { attr: "val" }` );
//
// redir( /https:\/\/www\.url1\.de/, "https://example.com" );
// redir( /(https:\/\/www\.url1\.de)/, "$1?language=de" ); // $1, $2, $3 (capture) group references
//
//
// Helpers inside Mixin code: Mixin-options required
// ----------------------------------------------- ------------------------------------------------------------------
// getUrl ( url: string, text => { ... }) { runAsContentScript: true }
// saveUrl( url: string ) { runAsContentScript: true }
// unxss ( txt: string )
//
//
// Examples and Helpers:
// - https://gist.github.com/search?q=user%3Aandre-st+%23injectjs
// - https://www.regextester.com/
//
// =====================================================================================================================
</textarea>
</fieldset>
</body>
</html>