-
Notifications
You must be signed in to change notification settings - Fork 50
/
main.html
47 lines (44 loc) · 3.49 KB
/
main.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
<!--
Copyright (c) 2011 Shyc2001 (http://twitter.com/shyc2001)
This work is based on:
*"Switchy! Chrome Proxy Manager and Switcher" (by Mohammad Hejazi (mohammadhi at gmail d0t com))
*"SwitchyPlus" by @ayanamist (http://twitter.com/ayanamist)
This file is part of SwitchySharp.
SwitchySharp is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SwitchySharp is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SwitchySharp. If not, see <http://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
<title></title>
<script src="assets/libs/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="assets/libs/jquery.base64.js" type="text/javascript"></script>
<script src="assets/libs/data-uri-toolkit.js" type="text/javascript"></script>
<script src="assets/libs/parseUri.js" type="text/javascript"></script>
<script src="assets/scripts/logger.js" type="text/javascript"></script>
<script src="assets/scripts/settings.js" type="text/javascript"></script>
<script src="assets/scripts/i18n.js" type="text/javascript"></script>
<script src="assets/scripts/plugin.js" type="text/javascript"></script>
<script src="assets/scripts/profileManager.js" type="text/javascript"></script>
<script src="assets/scripts/ruleManager.js" type="text/javascript"></script>
<script src="assets/scripts/main.js" type="text/javascript"></script>
<script src="assets/scripts/utils.js" type="text/javascript"></script>
</head>
<body>
<!--
The following data URI is assets/scripts/sandbox.js compiled with Google Closure (SIMPLE_OPTIMIZATIONS), then wrapped in a "script" element and finally base64-encoded.
... Because Chromium won't execute <script src="assets/scripts/sandbox.js"></script> in a sandboxed iframe. So I had to inline it. I'm terribly sorry for anyone reading this.
TODO: the "sandbox" field in manifests can be used instead. However, that would require Chrome 21.
-->
<iframe id="sandbox-frame" sandbox="allow-scripts" src="data:text/html;base64,PHNjcmlwdD53aW5kb3cuc2hFeHBNYXRjaD1mdW5jdGlvbihhLGUpe3ZhciBkLGM9ITEsZixiPTAsaD1lLmxlbmd0aCxnPWEubGVuZ3RoO2ZvcihmPTA7ZjxoO2YrPTEpaWYoZD1lLmNoYXJDb2RlQXQoZiksNjM9PT1kKWMmJihiKz0xKSxjPSExLGIrPTE7ZWxzZSBpZig0Mj09PWQpe2lmKGY9PT1oLTEpcmV0dXJuIGI8PWc7Yz0hMH1lbHNle2lmKGMpe2M9YjtiPWEuaW5kZXhPZihTdHJpbmcuZnJvbUNoYXJDb2RlKGQpLGMrMSk7aWYoMD5iKXtpZihhLmNoYXJDb2RlQXQoYykhPT1kKXJldHVybiExO2I9Y31jPSExfWVsc2UgaWYoYj49Z3x8YS5jaGFyQ29kZUF0KGIpIT09ZClyZXR1cm4hMTtiKz0xfXJldHVybiBiPT09Z307d2luZG93LnJlZ0V4cE1hdGNoPWZ1bmN0aW9uKGEsZSl7cmV0dXJuIFJlZ0V4cChlKS50ZXN0KGEpfTt3aW5kb3cudTJwPWZ1bmN0aW9uKCl7cmV0dXJuImRpcmVjdCJ9O3dpbmRvdy5hZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIixmdW5jdGlvbihhKXtpZigidW5kZWZpbmVkIiE9PXR5cGVvZiBhLmRhdGEudTJwKXRyeXt3aW5kb3cudTJwPWV2YWwoYS5kYXRhLnUycCl9Y2F0Y2goZSl7Y29uc29sZS5sb2coZSl9ZWxzZSBpZigidW5kZWZpbmVkIiE9PXR5cGVvZiBhLmRhdGEubWF0Y2gpe3ZhciBkPXUycChhLmRhdGEubWF0Y2gudXJsLGEuZGF0YS5tYXRjaC5ob3N0KTthLnNvdXJjZS5wb3N0TWVzc2FnZSh7cmVxaWQ6YS5kYXRhLnJlcWlkLHByb2ZpbGVJZDpkfSwiKiIpfX0sITEpOzwvc2NyaXB0Pg=="></iframe>
</body>
</html>