-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
257 lines (218 loc) · 11.6 KB
/
index.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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WebExt Generator</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
</head>
<body>
<nav class="navbar cus-nav navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="/"> Web Extension Generator</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item nav-cus-item active">
<a target="_blank" rel="noopener noreferrer" class="nav-link" href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/What_are_WebExtensions">
<button class="btn btn-sm ">Learn</button>
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item nav-cus-item active">
<button id="" class="btn cus-btn btn-sm btn-primary ">
<a target="_blank" rel="noopener noreferrer" class="nav-link" href="#">Generate<span class="sr-only">(current)</span></a>
</button>
</li>
<li class="nav-item nav-cus-item active">
<a target="_blank" rel="noopener noreferrer" class="nav-link" href="https://thimble.mozilla.org/">
<button class="btn btn-sm ">
Customize
</button>
<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item nav-cus-item active">
<a class="nav-link" id="testBtn">
<button class="btn btn-sm ">Test and Debug</button><span class="sr-only">(current)</span></a>
</li>
<li class="nav-item nav-cus-item active">
<a target="_blank" rel="noopener noreferrer" class="nav-link" href="https://addons.mozilla.org/en-GB/developers/">
<button class="btn btn-sm ">Submit</button>
<span class="sr-only">(current)</span>
</a>
</li>
</ul>
</div>
</nav>
<div id="wrapper">
<div id="deck1">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Name</span>
</div>
<input type="text" class="form-control" id="extname" required>
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="desc">Description</span>
</div>
<input type="text" class="form-control" id="extdescription" required>
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Version</span>
</div>
<input type="number" step="0.1" min="0.1" class="form-control" id="extversion" required>
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Developer Name</span>
</div>
<input type="text" class="form-control" id="DevName">
</div>
</div>
<div id="deck1-2">
<a id="more1"><img id="pointer" src="img/right.svg"></a>
</div>
<div id="deck2">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Short Name</span>
</div>
<input type="text" class="form-control" maxlength="12" id="ShortName">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Homepage URL</span>
</div>
<input type="URL" class="form-control" id="HomepageURL">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Version Name</span>
</div>
<input type="text" class="form-control" maxlength="10" id="VersionName">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Developer URL</span>
</div>
<input type="URL" class="form-control" id="DevURL">
</div>
</div>
</div>
<div id="wrapper">
<br>
<h6>Any scripts ?</h6>
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-light">
<input type="checkbox" id="backgroundScript" autocomplete="off"> Background Script
</label>
<label class="btn btn-light">
<input type="checkbox" id="contentScript" autocomplete="off"> Content Script
</label>
</div>
</div>
<div id="wrapper"
<br><br>
<h6>User Interface options</h6>
<div class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-light">
<input type="checkbox" id="OptionsPage" autocomplete="off"> Options Page
</label>
<label class="btn btn-light">
<input type="checkbox" id="AddrBarSug" autocomplete="off"> Address Bar Suggestion
</label>
<label class="btn btn-light">
<input type="checkbox" id="DevTools" autocomplete="off"> Dev Tools Panel
</label>
<label class="btn btn-light">
<input type="radio" name="position" id="page" class="sinsel" required>Address bar
</label>
<label class="btn btn-light">
<input type="radio" name="position" id="browser" class="sinsel">Toolbar
</label>
<label class="btn btn-light">
<input type="radio" name="position" id="sidebar" class="sinsel">Sidebar
</label>
<label class="btn btn-light">
<input type="radio" name="position" id="popup" class="sinsel">Popup
</label><br> <br>
</div>
</div>
<table>
<h6>Permissions </h6>
<tr>
<td><input type="checkbox" name="check" id="activeTab"><label class="checkbox" for="activeTab">ActiveTab</label></td>
<td><input type="checkbox" name="check" id="alarms"><label class="checkbox" for="alarms">Alarms</label></td>
<td><input type="checkbox" name="check" id="background"><label class="checkbox" for="background">Background</label></td>
<td><input type="checkbox" name="check" id="bookmarks"><label class="checkbox" for="bookmarks">Bookmarks</label></td>
<td><input type="checkbox" name="check" id="browserSettings"><label class="checkbox" for="browserSettings">BrowserSettings</label></td>
<td><input type="checkbox" name="check" id="browsingData"><label class="checkbox" for="browsingData">BrowsingData</label></td>
<td><input type="checkbox" name="check" id="contentSettings"><label class="checkbox" for="contentSettings">ContentSettings</label></td>
</tr>
<tr>
<td><input type="checkbox" name="check" id="contextMenus"><label class="checkbox" for="contextMenus">ContextMenus</label></td>
<td><input type="checkbox" name="check" id="contextualIdentities"><label class="checkbox" for="contextualIdentities">ContextualIdentities</label></td>
<td><input type="checkbox" name="check" id="cookies"><label class="checkbox" for="cookies">Cookies</label></td>
<td><input type="checkbox" name="check" id="debugger"><label class="checkbox" for="debugger">Debugger</label></td>
<td><input type="checkbox" name="check" id="dns"><label class="checkbox" for="dns">Dns</label></td>
<td><input type="checkbox" name="check" id="downloads"><label class="checkbox" for="downloads">Downloads</label></td>
<td><input type="checkbox" name="check" id="downloads.open"><label class="checkbox" for="downloads.open">Downloads.open</label></td>
</tr>
<tr>
<td><input type="checkbox" name="check" id="find"><label class="checkbox" for="find">Find</label></td>
<td><input type="checkbox" name="check" id="geolocation"><label class="checkbox" for="geolocation">Geolocation</label></td>
<td><input type="checkbox" name="check" id="history"><label class="checkbox" for="history">History</label></td>
<td><input type="checkbox" name="check" id="identity"><label class="checkbox" for="identity">Identity</label></td>
<td><input type="checkbox" name="check" id="idle"><label class="checkbox" for="idle">Idle</label></td>
<td><input type="checkbox" name="check" id="management"><label class="checkbox" for="management">Management</label></td>
<td><input type="checkbox" name="check" id="menus"><label class="checkbox" for="menus">Menus</label></td>
</tr>
<tr>
<td><input type="checkbox" name="check" id="nativeMessaging"><label class="checkbox" for="nativeMessaging">NativeMessaging</label></td>
<td><input type="checkbox" name="check" id="notifications"><label class="checkbox" for="notifications">Notifications</label></td>
<td><input type="checkbox" name="check" id="pageCapture"><label class="checkbox" for="pageCapture">PageCapture</label></td>
<td><input type="checkbox" name="check" id="pkcs11"><label class="checkbox" for="pkcs11">Pkcs11</label></td>
<td><input type="checkbox" name="check" id="privacy"><label class="checkbox" for="privacy">Privacy</label></td>
<td><input type="checkbox" name="check" id="proxy"><label class="checkbox" for="proxy">Proxy</label></td>
<td><input type="checkbox" name="check" id="search"><label class="checkbox" for="search">Search</label></td>
</tr>
<tr>
<td><input type="checkbox" name="check" id="sessions"><label class="checkbox" for="sessions">Sessions</label></td>
<td><input type="checkbox" name="check" id="storage"><label class="checkbox" for="storage">Storage</label></td>
<td><input type="checkbox" name="check" id="tabHide"><label class="checkbox" for="tabHide">TabHide</label></td>
<td><input type="checkbox" name="check" id="tabs"><label class="checkbox" for="tabs">Tabs</label></td>
<td><input type="checkbox" name="check" id="theme"><label class="checkbox" for="theme">Theme</label></td>
<td><input type="checkbox" name="check" id="topSites"><label class="checkbox" for="topSites">TopSites</label></td>
<td><input type="checkbox" name="check" id="webNavigation"><label class="checkbox" for="webNavigation">WebNavigation</label></td>
</tr>
<tr>
<td><input type="checkbox" name="check" id="webRequest"><label class="checkbox" for="webRequest">WebRequest</label></td>
<td><input type="checkbox" name="check" id="webRequestBlocking"><label class="checkbox" for="webRequestBlocking">WebRequestBlocking</label></td>
</tr>
</table>
<br><br>
<button type="button" id="submit">Generate Boilerplate</button>
<script src="jszip.min.js"></script>
<script src="filesaver.js"></script>
<script src="gen.js"></script>
</body>
<footer style= "position:absolute ;right: 0;
bottom: 0;
left: 0;
padding: 1rem;
background-color: #efefef;
text-align: center;color: blue;">
This is an open source project, contributions are welcome. Check <a href="https://github.com/ranjithrajv/webext-generator/">Github repo</a>
</footer>
</html>