-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
212 lines (189 loc) · 8.92 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cubefish</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans" type="text/css">
<link rel="stylesheet" href="stylesheet.css">
</head>
<body>
<div class="modal-header">
<h1 class="logo">
<img src="images/logo_128.png" alt="Cubefish" class="logo-icon">Cubefish <span class="version">v.(2.7.1)BETA</span>
</h1>
</div>
<div class="modal-header">
<div id="exempt-container">
<div class="exempt-container-card">
<div id="apply-exempt" class="apply">Exempt</div>
<span class="small-text">Exempt this page<br>from all regex</span>
</div>
<div class="exempt-container-card">
<label class="switch">
<input id="on-off-button" type="checkbox">
<span class="slider"></span>
</label>
<span class="small-text">Off/On</span>
</div>
</div>
</div>
<!-- Tabs -->
<div class="tab">
<button class="tablinks" id="defaultOpen" name="Add">Add</button>
<button class="tablinks" name="List">List</button>
<button class="tablinks" name="Info">Info</button>
</div>
<div id="Add" class="tabcontent">
<!-- Page selector -->
<div id="page-selector" class="modal-content">
Add background to:
<form>
<input type="radio" id="one-p" name="pageSelect">
<label for="one-p">This page only</label><br>
<input type="radio" id="all-p" name="pageSelect">
<label for="all-p" id="all-p-label">All pages from <span>nowhere?</span></label><br>
<input type="radio" id="regex-p" name="pageSelect">
<label for="regex-p">Hostname specific RegEx:</label>
</form>
<div id="regex-container" class="modal-content">
<div class="messageContainer">
<div id="regex-field" class="message" type="text" spellcheck="false" contenteditable="true">regex</div>
</div>
</div>
</div>
<!-- Collapsibles -->
<div class="collapsible"><div class="collIcon"></div>Presets</div>
<div class="content">
<div id="preset-container">
<!-- Gets populated later on -->
</div>
</div>
<div class="collapsible"><div class="collIcon"></div>Color background</div>
<div class="content">
<div class="sub-content">
<div class="content-divider">
<label for="colorWell"><div id="color-display"></div></label>
<div id="hex-wrapper">
<div id="hex-input" class="messageContainer">
<div id="hex-field" class="message" type="text" spellcheck="false" contenteditable="true">
<code id="hex-code">#ffffff</code>
</div>
</div>
</div>
<div id="button-wrapper-color">
<div id="apply-color" class="apply">Apply</div>
</div>
</div>
<input type="color" value="#ffffff" id="colorWell">
</div>
</div>
<!-- End Collapsibles -->
<div class="modal-content">
<div id="cbh">
<p>Custom background</p>
<div id="button-wrapper">
<div id="apply-img" class="apply">Apply</div>
</div>
</div>
</div>
<div id="imgURL-container" class="modal-content">
<div class="messageContainer">
<div id="imgURL" class="message" type="text" spellcheck="false" contenteditable="true">img URL</div>
</div>
</div>
</div>
<div id="List" class="tabcontent">
<div class="tab">
<button class="tablinks2" id="defaultOpen2" name="Single-Pages">Single Pages</button>
<button class="tablinks2" name="RegEx">RegEx</button>
<button class="tablinks2" name="Exempt">Exempt</button>
</div>
<div id="Single-Pages" class="tabcontent2">
<div class="list-container" id="current-page">
<div class="title">Current Page</div>
<div class="list-entry-container" id="current-page-container">
<div class="bg-not-found">There is currently no background selected for this page specifically.</div>
</div>
</div>
<div class="list-container" id="page-list">
<div class="title">Page List</div>
<div class="list-entry-container" id="empty-list-container">
<div class="bg-not-found"><i>It's quiet here... too quiet.</i></div>
</div>
</div>
</div>
<div id="RegEx" class="tabcontent2">
<div class="list-container" id="current-RegEx">
<div class="title">Current Page</div>
<div class="list-entry-container" id="current-RegEx-container">
<div class="bg-not-found">There are currently no regex entries for this hostname.</div>
</div>
</div>
<div class="list-container">
<div class="title">RegEx List</div>
<!-- List of hostnames-->
<div class="clean-list-container" id="RegEx-list">
<!-- Gets populated later on -->
</div>
<!-- End of list of hostnames-->
</div>
</div>
<div id="Exempt" class="tabcontent2">
<div class="list-container" id="current-Exempt">
<div class="title">Current Page</div>
<div class="list-entry-container" id="current-Exempt-container">
<div class="bg-not-found">There are currently no exempt pages for this hostname.</div>
</div>
</div>
<div class="list-container">
<div class="title">Exempt List</div>
<!-- List of hostnames-->
<div class="clean-list-container" id="Exempt-list">
<!-- Gets populated later on -->
</div>
<!-- End of list of hostnames-->
</div>
</div>
</div>
<div id="Info" class="tabcontent">
<div class="info">
<h2>How to use Cubefish</h2>
<h3>Adding a background</h3>
<ol>
<li>
Select a scope on which to apply a background, this could be This page, All pages from
a website, or pages corresponding to a regular expression evaluated on the domain they are
applied on where the least recently added expression has the highest priority.
(If none of the scopes is selected, choosing a background is treated as a preview)
</li>
<br>
<li>
Choose a background, this can be one of the presets, a colour background or a custom
background.
For the custom background, find any image on the web, right click it and select
"Copy image address". Paste this address
(ending in an image file extension like .png or .gif)
in the custom background field and hit Apply.
</li>
</ol>
<h3>Getting rid of a background</h3>
<p>
If a background is applied to one page only, it can be removed under the List tab
under Single Pages. Otherwise the corresponding regex can be removed under the RegEx tab.
If you want no backgrounds applied to a certain page, you can also exempt that page from
background evaluation using the Exempt button, this will add it to the Exempt pages list,
here "exempts" can also be removed again.
</p>
<h2>Credtis</h2>
<h3>Extension/Add-On development:</h3>
- Naitzirch
<h3>Presets:</h3>
Full credit for the presets goes to their respective artists for which a list can be found
<a href="presets/images/credits.txt" target="_blank">here</a>.
</div>
</div>
<script type="text/javascript" src="popup.js"></script>
</body>
</html>