aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornullius <nullius@nym.zone>2018-01-01 04:11:16 +0000
committerGitHub <noreply@github.com>2018-01-01 04:11:16 +0000
commitd4b26a768622c1ce75f4d40c8531bbaeab8a3609 (patch)
tree695955cdd2f1bb2e2efd6f51d15e0e3c0ae0e9f8
parent0fd6a4769ca36d3fe0dcccd8a8f7eabcf8d5363c (diff)
parenteff8be1b9152724b7a75b8be0ca27d0beba64d72 (diff)
downloadcloudflare-tor-d4b26a768622c1ce75f4d40c8531bbaeab8a3609.tar.lz
cloudflare-tor-d4b26a768622c1ce75f4d40c8531bbaeab8a3609.tar.xz
cloudflare-tor-d4b26a768622c1ce75f4d40c8531bbaeab8a3609.zip
Merge pull request #9 from whatsusername/master
Update UI
-rw-r--r--src/manifest.json6
-rw-r--r--src/setwhitelist.html6
-rw-r--r--src/style.css3
3 files changed, 9 insertions, 6 deletions
diff --git a/src/manifest.json b/src/manifest.json
index f9417071..e168c3fa 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -2,12 +2,12 @@
"manifest_version": 2,
"name": "Block Cloudflare MiTM Attack",
"description": "If the destination website use Cloudflare, block further request.",
-"version": "1.0.8",
+"version": "1.0.8.1",
"homepage_url": "https://trac.torproject.org/projects/tor/ticket/24351",
"permissions": ["webRequest","webRequestBlocking","<all_urls>","storage","activeTab"],
"options_ui": {
"page": "setwhitelist.html",
- "browser_style": true
+ "browser_style": false
},
"icons": {
"32": "icons/icon-32.png",
@@ -28,4 +28,4 @@
"strict_min_version": "52.0"
}
}
-} \ No newline at end of file
+}
diff --git a/src/setwhitelist.html b/src/setwhitelist.html
index 4304a264..cf19c9d4 100644
--- a/src/setwhitelist.html
+++ b/src/setwhitelist.html
@@ -1,8 +1,8 @@
-<html><head><meta charset="utf-8"></head><body><form>
+<html><head><meta charset="utf-8"><link rel="stylesheet" href="style.css"></head><body><form>
[Whitelist]<br>
1. Add FQDN you want to ignore. One FQDN per line. Click "Save".<br>
2. Open new tab and visit whitelisted website.<br>
-<textarea cols="50" rows="10" id="myset_cfwhite"></textarea><br>
+<textarea cols="50" rows="12" id="myset_cfwhite" wrap="off"></textarea><br>
<br>
[Advanced]<br>
<label><input type="checkbox" id="myset_xincapsula"> Also detect and block Incapsula MiTM</label><br>
@@ -15,4 +15,4 @@
<br>
<input type="submit" value=" Save ">
</form><script src="setwhitelist.js"></script>
-</body></html> \ No newline at end of file
+</body></html>
diff --git a/src/style.css b/src/style.css
new file mode 100644
index 00000000..594891ef
--- /dev/null
+++ b/src/style.css
@@ -0,0 +1,3 @@
+body{font:13px Verdana}
+label{-webkit-user-select:none;-moz-user-select:none}
+textarea{white-space:pre;overflow-wrap:normal;overflow-x:scroll}