Merge pull request #9 from whatsusername/master

Update UI
This commit is contained in:
nullius 2018-01-01 04:11:16 +00:00 committed by GitHub
commit d4b26a7686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -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"
}
}
}
}

View File

@ -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>
</body></html>

3
src/style.css Normal file
View File

@ -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}