-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.html
72 lines (60 loc) · 1.5 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
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: Arial, sans-serif;
width: 300px;
padding: 10px;
}
h2 {
font-size: 1.2em;
margin-bottom: 10px;
}
.rule {
margin-bottom: 10px;
padding: 10px;
background-color: #f0f0f0;
border-radius: 5px;
}
.urlPatternInput,
.cssInput {
width: 100%;
margin-bottom: 5px;
}
.deleteButton {
background-color: #e74c3c;
color: white;
border: none;
padding: 5px 10px;
border-radius: 3px;
cursor: pointer;
}
.deleteButton:hover {
background-color: #c0392b;
}
#saveButton {
background-color: #3498db;
color: white;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
width: 100%;
margin-top: 10px;
}
#saveButton:hover {
background-color: #2980b9;
}
</style>
</head>
<body>
<h2>Add Custom CSS</h2>
<input id="urlPattern" type="text" placeholder="URL Pattern (RegExp)">
<textarea id="customCSS" placeholder="Enter your CSS here"></textarea>
<button id="saveButton">Save</button>
<h2>Saved Rules</h2>
<div id="rulesContainer"></div>
<script src="popup.js"></script>
</body>
</html>