summaryrefslogtreecommitdiff
path: root/webextension
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-05-01 14:16:56 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-05-01 14:16:56 +0530
commit609397d95a73bdae55de41c47b19932e810d0320 (patch)
tree34fb9168eb25567c2d14daa5f69301d6932d58c1 /webextension
parent3f52d293be88f19e8e68aaa8ee6a80cd6c7cc47a (diff)
downloadwallet-core-609397d95a73bdae55de41c47b19932e810d0320.tar.gz
wallet-core-609397d95a73bdae55de41c47b19932e810d0320.tar.bz2
wallet-core-609397d95a73bdae55de41c47b19932e810d0320.zip
drastically reduce permissions for Web integration
The old web integration with more permissions is still available on an opt-in basis.
Diffstat (limited to 'webextension')
-rw-r--r--webextension/manifest.json14
-rw-r--r--webextension/static/style/wallet.css35
-rw-r--r--webextension/static/welcome.html9
-rw-r--r--webextension/static/withdraw.html6
4 files changed, 37 insertions, 27 deletions
diff --git a/webextension/manifest.json b/webextension/manifest.json
index 5bcb8c060..7592b3509 100644
--- a/webextension/manifest.json
+++ b/webextension/manifest.json
@@ -24,6 +24,10 @@
"permissions": [
"storage",
+ "activeTab"
+ ],
+
+ "optional_permissions": [
"tabs",
"webRequest",
"webRequestBlocking",
@@ -39,16 +43,6 @@
"default_popup": "popup.html"
},
- "content_scripts": [
- {
- "matches": ["*://*/*"],
- "js": [
- "contentScript.js"
- ],
- "run_at": "document_start"
- }
- ],
-
"background": {
"page": "background.html",
"persistent": true
diff --git a/webextension/static/style/wallet.css b/webextension/static/style/wallet.css
index 16a414b3d..7c06f2386 100644
--- a/webextension/static/style/wallet.css
+++ b/webextension/static/style/wallet.css
@@ -1,14 +1,15 @@
body {
font-size: 100%;
overflow-y: scroll;
+ margin-top: 2em;
}
#main {
- border: solid 1px black;
+ border: solid 5px black;
border-radius: 10px;
margin-left: auto;
margin-right: auto;
- margin-top: 2em;
+ padding-top: 2em;
max-width: 50%;
padding: 2em;
}
@@ -18,16 +19,6 @@ header {
height: 100px;
margin: 0;
padding: 0;
- border-bottom: 1px solid black;
-}
-
-header h1 {
- font-size: 200%;
- margin: 0;
- padding: 0 0 0 120px;
- position: relative;
- top: 50%;
- transform: translateY(-50%);
}
header #logo {
@@ -37,7 +28,6 @@ header #logo {
padding: 0;
margin: 0;
text-align: center;
- border-right: 1px solid black;
background-image: url(/img/logo.png);
background-size: 100px;
}
@@ -50,7 +40,6 @@ aside {
section#main {
margin: auto;
padding: 20px;
- border-left: 1px solid black;
height: 100%;
max-width: 50%;
}
@@ -61,19 +50,23 @@ section#main h1:first-child {
h1 {
font-size: 160%;
+ font-family: "monospace";
}
h2 {
font-size: 140%;
+ font-family: "monospace";
}
h3 {
font-size: 120%;
+ font-family: "monospace";
}
h4,
h5,
h6 {
+ font-family: "monospace";
font-size: 100%;
}
@@ -281,3 +274,17 @@ a.opener {
object.svg-icon.svg-baseline {
transform: translate(0, 0.125em);
}
+
+.switch {
+ position: relative;
+ display: inline-block;
+ width: 60px;
+ height: 34px;
+}
+
+/* Hide default HTML checkbox */
+.switch input {
+ opacity: 0;
+ width: 0;
+ height: 0;
+} \ No newline at end of file
diff --git a/webextension/static/welcome.html b/webextension/static/welcome.html
index dc893211c..07ecac707 100644
--- a/webextension/static/welcome.html
+++ b/webextension/static/welcome.html
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
- <title>Taler Wallet: Withdraw</title>
+ <title>Taler Wallet Installed</title>
<link rel="icon" href="/img/icon.png" />
<link rel="stylesheet" type="text/css" href="/style/pure.css" />
@@ -12,7 +12,12 @@
<body>
<section id="main">
- <h1>GNU Taler Wallet Installed!</h1>
+ <div style="border-bottom: 3px dashed #aa3939; margin-bottom: 2em;">
+ <h1 style="font-family: monospace; font-size: 250%;">
+ <span style="color: #aa3939;">❰</span>Taler Wallet<span style="color: #aa3939;">❱</span>
+ </h1>
+ </div>
+ <h1>Browser Extension Installed!</h1>
<div id="container">Loading...</div>
</section>
</body>
diff --git a/webextension/static/withdraw.html b/webextension/static/withdraw.html
index d2aab1b64..5137204bd 100644
--- a/webextension/static/withdraw.html
+++ b/webextension/static/withdraw.html
@@ -11,7 +11,11 @@
<body>
<section id="main">
- <h1>GNU Taler Wallet</h1>
+ <div style="border-bottom: 3px dashed #aa3939; margin-bottom: 2em;">
+ <h1 style="font-family: monospace; font-size: 250%;">
+ <span style="color: #aa3939;">❰</span>Taler Wallet<span style="color: #aa3939;">❱</span>
+ </h1>
+ </div>
<div class="fade" id="container"></div>
</section>
</body>