Skip to content

Commit 9229130

Browse files
author
Louis
committed
Adding options to turn on/off academic tools, developer tools etc.
1 parent df1371c commit 9229130

8 files changed

+402
-51
lines changed

icon.png

-16.3 KB
Loading

icon128.png

-16.1 KB
Loading

icon16.png

-16.2 KB
Loading

icon48.png

-16.2 KB
Loading

manifest.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33

44
"name": "Tab Save",
55
"description": "This extension downloads files in open tabs.",
6-
"version": "1.0",
6+
"version": "1.3",
77

88
"browser_action": {
99
"default_icon": "icon.png",
1010
"default_popup": "popup.html"
1111
},
1212
"permissions": [
1313
"downloads", "tabs", "<all_urls>"
14-
]
14+
],
15+
"content_security_policy": "script-src 'self' https://www.googleapis.com; object-src 'self'",
16+
"options_page": "options.html"
1517
}

options.html

Whitespace-only changes.

popup.html

+246-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,252 @@
22
<html>
33
<head>
44
<style>
5-
body {
6-
min-width: 357px;
7-
overflow-x: hidden;
8-
}
5+
body {
6+
min-width: 357px;
7+
overflow-x: hidden;
8+
}
9+
* {
10+
font-family: "SEGOEUIL", Helvetica, Tahoma, sans-serif;
11+
}
12+
13+
#main {
14+
width: 600px;
15+
font-size: smaller;
16+
margin: 1.5em 1.5em 0.5em 1.5em;
17+
cursor: default;
18+
line-height: 0;
19+
border: 6px solid rgba(57, 167, 153, 0.61);
20+
border-radius: 0 36px;
21+
padding: 1.5em;
22+
}
23+
24+
#main::selection, #main *::selection {
25+
background-color: transparent;
26+
}
27+
28+
#main h1 {
29+
font-weight: normal;
30+
line-height: 1 !important;
31+
font-size: 50px;
32+
margin: 0 0 0.4em 0;
33+
}
34+
35+
#main > * {
36+
margin-left: 20px !important;
37+
}
38+
39+
input[type="url"] {
40+
border: none;
41+
outline: none;
42+
width: 80%;
43+
}
44+
45+
#tablist {
46+
overflow-y: scroll !important;
47+
max-height: 400px;
48+
}
49+
50+
#tablist p {
51+
width: 97%;
52+
height: 1.6rem;
53+
cursor: auto;
54+
overflow-y: overlay;
55+
white-space: nowrap;
56+
margin: 0;
57+
padding-bottom: 2px;
58+
}
59+
60+
#tablist p:active, #tablist p:focus {
61+
text-overflow: initial;
62+
outline: none;
63+
}
64+
65+
#p p::selection {
66+
background: #62C9BC;
67+
}
68+
69+
div#p {
70+
overflow: auto!important;
71+
width: 100%;
72+
line-height: 2 !important;
73+
}
74+
75+
a.close {
76+
-webkit-box-shadow: inset 0 0 5px 0 rgba(255,255,255,0.5);
77+
line-height: 1.1 !important;
78+
font-size: 15px;
79+
display: block;
80+
height: 18px;
81+
-webkit-border-radius: 32px;
82+
float: right;
83+
padding: 0 4px;
84+
margin-top: -24px;
85+
-webkit-transition: all 0.4s ease-out;
86+
transition: all 0.4s ease-out;
87+
}
88+
89+
.close svg {
90+
width: 10px;
91+
height: 10px;
92+
fill: #CFCFCF;
93+
-webkit-transition: all 0.4s ease-out;
94+
transition: all 0.4s ease-out;
95+
}
96+
97+
#p p:active + .close, #p p:focus + .close {
98+
opacity: 0;
99+
}
100+
101+
#p p:hover + .close svg, .close:hover svg {
102+
fill: #51C0CF;
103+
}
104+
105+
/*Scrollbars*/
106+
107+
p::-webkit-scrollbar {
108+
display: none;
109+
}
110+
111+
#textin::-webkit-scrollbar, #tablist::-webkit-scrollbar {
112+
width: 18px;
113+
}
114+
115+
#textin::-webkit-scrollbar-track, #tablist::-webkit-scrollbar-track {
116+
background-color: transparent;
117+
}
118+
119+
#textin::-webkit-scrollbar-thumb, #tablist::-webkit-scrollbar-thumb {
120+
border: 4px solid rgba(0, 0, 0, 0);
121+
-webkit-border-radius: 16px;
122+
background-clip: padding-box;
123+
-webkit-box-shadow: inset 0 0 0px rgba(0,0,0,.3);
124+
background-color: #dadada;
125+
}
126+
127+
#txtin::-webkit-scrollbar-corner, #tablist::-webkit-scrollbar-corner {
128+
background-color: transparent;
129+
}
130+
131+
/* Buttons */
132+
133+
section {
134+
margin: 0 1.5em;
135+
height: 24px;
136+
border: 3px solid transparent;
137+
}
138+
139+
section > svg {
140+
float: left;
141+
}
142+
143+
#editbtn {
144+
margin-right: 60px;
145+
}
146+
147+
#editbtn svg * {
148+
fill: #315C5E;
149+
}
150+
151+
#editbtn, #doibtn {
152+
background: none;
153+
border: 0;
154+
outline: none;
155+
height: 27px;
156+
}
157+
158+
#doibtn {
159+
color: #f18585;
160+
font-family: monospace;
161+
vertical-align: super;
162+
}
163+
164+
#doibtn sup {
165+
font-family: monospace;
166+
}
167+
168+
#doibtn svg {
169+
vertical-align: sub !important;
170+
padding-right: 5px;
171+
}
172+
173+
#doibtn > sup::after {
174+
padding: 4px;
175+
pointer-events: none;
176+
content: ""attr(alt)"";
177+
display: block;
178+
position: absolute;
179+
bottom: 10px;
180+
opacity: 0;
181+
width: 200px;
182+
margin-right: -40px;
183+
background: rgba(241, 133, 133, 0.85);
184+
right: 225px;
185+
color: white;
186+
-webkit-transition: all 0.8s ease-out 0.2s;
187+
width: hidden;
188+
}
189+
190+
#doibtn > sup:hover::after {
191+
opacity: 1;
192+
margin-right: 0;
193+
width: 200px;
194+
-webkit-transition: all 0.8s ease-out 0.5s;
195+
}
196+
197+
#btnDL {
198+
float: right;
199+
background: white;
200+
margin-top: -4px;
201+
margin-bottom: 5px;
202+
border: 0;
203+
border-radius: 430px;
204+
color: white;
205+
padding: 1px 3px;
206+
font-size: 1em;
207+
outline: none;
208+
box-shadow: inset 2px 2px 6px 0 rgba(255,255,255,0.5);
209+
-webkit-box-shadow: inset 2px 2px 6px 0 rgba(255,255,255,0.5);
210+
-webkit-transition: all 0.4s ease-out;
211+
}
212+
213+
#btnDL:active, #btnDL:visited {
214+
margin-top: -3px;
215+
margin-bottom: 4px;
216+
box-shadow: inset 0 -1px 1px 0 #7E7E7E, 0 2px 13px 0 #fff;
217+
-webkit-box-shadow: inset 0 -1px 1px 0 #7E7E7E, 0 2px 13px 0 #fff;
218+
text-shadow: none;
219+
}
220+
221+
#dlsvg {
222+
width: 37px;
223+
height: 36px;
224+
}
225+
226+
#dlsvg * {
227+
fill: #39A799;
228+
width: 20px;
229+
height: 26px;
230+
}
231+
232+
/* Editing */
233+
234+
#txtin {
235+
outline: none;
236+
border-radius: 16px;
237+
width: 90%;
238+
padding: 8px;
239+
border: 0;
240+
border-style: groove;
241+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(251, 247, 255, 0.63)), color-stop(100%,rgba(229, 241, 255, 0.51)));
242+
height: 146px;
243+
margin: 0px;
244+
-webkit-transition: all 0.4s ease-out;
245+
transition: all 0.6s ease-out 0.4s;
246+
}
247+
248+
input[type="url"] + #txtin {
249+
height: 80px;
250+
}
9251
</style>
10252

11253
<!--

0 commit comments

Comments
 (0)