-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
161 lines (141 loc) · 3.22 KB
/
popup.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>mydealz enhance</title>
<style>
.container {
min-height: 130px;
border-radius: 10px;
padding: 10px;
border: 3px solid green;
}
.helptext {
font-size: small;
display: inline-block;
margin-top: 0;
margin-bottom: 0px;
text-align: right;
margin-left: 300px;
}
.tooltip {
position: relative;
display: inline-block;
font-size: x-small;
border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
font-size: x-small;
/* Position the tooltip */
position: absolute;
z-index: 1;
top: -5px;
right: 105%;
padding: 10px;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}
body {
min-width: 500px;
min-height: 150px;
overflow-x: hidden;
}
h1 {
margin-top: 0;
}
ul {
padding-left: 0;
list-style: none;
}
p {
display: inline-block;
font-size: medium;
margin-top: 0;
margin-bottom: 0px;
}
li {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
padding: 5px;
}
li span {
margin-right: 10px;
}
.textInput {
border-radius: 5px;
border: 0.2mm solid grey;
height: 20px;
width: fit-content;
min-width: 60px"
}
.checkbox {
margin-top: 10px;
}
.button {
padding: 5px 10px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: green;
cursor: pointer;
color: white;
margin-top: 10px;
margin-bottom: 0;
}
.button:hover {
background-color: darkgreen;
color: white;
}
</style>
</head>
<body>
<div class="container">
<p>
mydealz_enhance
</p>
<div class="helptext tooltip">
help
<span class="tooltiptext">
You can add keywords here. Deals containing the keyword in its title will be hidden. After adding a keyboard you
can
click it to remove it from the list.
</span>
</div>
<label>
<input class="checkbox" type="checkbox" id="hide-images-checkbox">
Hide Images
</label>
<br>
<label>
<input class="checkbox" type="checkbox" id="remove-colors-checkbox">
Black/White Mode
</label>
<br>
<label>
<input class="checkbox" type="checkbox" id="hide-categories-checkbox">
Hide Category-Banner
</label>
<br>
<label>
<input class="checkbox" type="checkbox" id="disable-filter-checkbox">
Enable Keyword-Filter <span style="font-size: x-small;">(refresh page to undo filtering)</span>
</label>
<div id="keywordComponent">
<h4>List of blocked keywords:</h4>
<ul id="keywords-list">
</ul>
<input class="textInput" id="keywordInput" type="text">
<button id="add-keyword-button" class="button">Add</button>
</div>
<script src="popup.js"></script>
</div>
</body>
</html>