This repository was archived by the owner on Dec 11, 2025. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathpopup.html
More file actions
135 lines (134 loc) · 3.66 KB
/
Copy pathpopup.html
File metadata and controls
135 lines (134 loc) · 3.66 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hide Comment in learncpp.com</title>
<script src="popup.js"></script>
</head>
<style>
.tab {
background-color: #f1f1f1;
display: flex;
justify-content: space-between;
border-bottom: 1px solid #ccc;
gap: 3px;
}
.tab div {
padding: 10px 20px;
cursor: pointer;
flex-grow: 1;
text-align: center;
}
.tab .active {
color: white;
background-color: #007bff;
}
button {
padding: 5px 10px;
cursor: pointer;
background-color: #007bff;
color: white;
border: none;
border-radius: 3px;
}
</style>
<body style="width: 300px; height: 400px; box-sizing: border-box">
<div
id="error-text"
style="
color: red;
margin: 6px 0;
min-height: 30px;
width: 100%;
box-sizing: border-box;
text-align: center;
"
></div>
<div class="tab">
<div class="active" id="main-controller">Main</div>
<div id="config-controller">Configuration</div>
</div>
<div
id="main-tab"
style="
padding: 10px;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
box-sizing: border-box;
flex-direction: column;
gap: 20px;
"
>
<button style="font-size: 20px; padding: 3%;" id="hide-comments">
Hide Comments
</button>
<button style="font-size: 20px; padding: 3%;" id="unhide-comments">
Show Comments
</button>
</div>
<div
id="config-tab"
style="
padding: 10px;
height: 100%;
width: 100%;
box-sizing: border-box;
display: none;
"
>
<div
data-edit-id=""
id="modify-add-config"
style="display: flex; flex-direction: column; gap: 12px; display: none"
>
<h3>Add</h3>
<legend style="font-weight: bold; margin-bottom: 6px">
Type (Name: hide comment that matches the name exactly, Comment: hide
comment that contains the text)
</legend>
<select name="config-type" style="padding: 12px">
<option value="" disabled selected>Select type</option>
<option value="name">Name</option>
<option value="comment">Comment</option>
</select>
<legend style="font-weight: bold; margin-bottom: 6px">Value</legend>
<input
name="config-text"
type="text"
placeholder="Enter value"
style="padding: 12px"
/>
<div style="display: flex; gap: 8px; margin-top: 10px">
<button id="cancel-config-button" style="padding: 12px; flex-grow: 1">
Cancel
</button>
<button id="save-config-button" style="padding: 12px; flex-grow: 1">
Save
</button>
</div>
</div>
<div id="config-view-container" style="width: 100%; height: 100%">
<div style="margin: 17px 0px">
<input type="checkbox" id="toggle-background" /><label
for="toggle-background"
>
Remove comments on comment load</label
>
</div>
<h3 style="display: flex">
<span style="flex-grow: 1">Configuration</span>
<button id="add-new-config">Add</button>
</h3>
<div id="config-container"></div>
<ul
id="config-list"
style="list-style: none; padding: 0; overflow-y: scroll"
></ul>
</div>
</div>
</body>
</html>