-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
146 lines (122 loc) · 3.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Injector</title>
<style>
body {
font-family: 'Roboto', sans-serif;
padding: 20px;
margin: 0;
background-color: #f5f5f5;
width: 300px;
}
h3 {
font-size: 1.2rem;
color: #333;
margin-bottom: 20px;
text-align: center;
}
.input-group {
display: flex;
flex-direction: column;
margin-bottom: 15px;
}
label {
font-weight: 500;
margin-bottom: 5px;
color: #555;
}
input, textarea {
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: #fff;
font-size: 0.9rem;
box-sizing: border-box;
}
textarea {
resize: vertical;
min-height: 120px;
width: 100%;
}
#addUrlButton {
padding: 12px 0;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
font-weight: bold;
text-transform: uppercase;
transition: background-color 0.3s ease;
width: 100%;
}
#addUrlButton:hover {
background-color: #0056b3;
}
#urlList {
margin-top: 20px;
}
.url-item {
background-color: white;
padding: 10px;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 15px;
}
.url-item strong {
display: block;
margin-bottom: 5px;
font-weight: 600;
color: #007bff;
}
.url-item textarea {
background-color: #f9f9f9;
border: 1px solid #ddd;
}
.action-buttons {
display: flex;
justify-content: space-between;
margin-top: 10px;
}
.action-buttons button {
padding: 8px 12px;
border-radius: 4px;
border: none;
cursor: pointer;
font-size: 0.9rem;
}
.save-button {
background-color: #28a745;
color: white;
}
.save-button:hover {
background-color: #218838;
}
.remove-button {
background-color: #dc3545;
color: white;
}
.remove-button:hover {
background-color: #c82333;
}
</style>
</head>
<body>
<h3>Manage Custom CSS</h3>
<div class="input-group">
<label for="urlInput">Website URL</label>
<input type="text" id="urlInput" placeholder="Enter website URL">
</div>
<div class="input-group">
<label for="cssInput">Custom CSS</label>
<textarea id="cssInput" placeholder="Write custom CSS here..."></textarea>
</div>
<button id="addUrlButton">Add Website</button>
<div id="urlList"></div>
<script src="popup.js"></script>
</body>
</html>