Skip to content

Commit 87a1f25

Browse files
authored
Remove testing directories. Updated options page styling. (#140)
1 parent 5f8816e commit 87a1f25

27 files changed

+836
-538
lines changed

moz.xpi

2.06 KB
Binary file not shown.

moz.zip

-111 KB
Binary file not shown.

moz/__test__.js

-2
This file was deleted.

moz/compare.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/** GitHub@alexey-bass
2+
* Simply compares two string version values.
3+
*
4+
* Example:
5+
* compareVer('1.1', '1.2') => -1
6+
* compareVer('1.1', '1.1') => 0
7+
* compareVer('1.2', '1.1') => 1
8+
* compareVer('2.23.3', '2.22.3') => 1
9+
*
10+
* Returns:
11+
* -1 = left is LOWER = right is GREATER
12+
* 0 = they are equal
13+
* 1 = left is GREATER = right is LOWER
14+
* And FALSE if one of input versions are not valid
15+
*
16+
* @function
17+
* @param {String} left Version #1
18+
* @param {String} right Version #2
19+
* @return {Integer|Boolean}
20+
* @author Alexey Bass (albass)
21+
* @since 2011-07-14
22+
*/
23+
function compareVer(left, right) {
24+
if(typeof left + typeof right != 'stringstring')
25+
return false;
26+
27+
for(let a = left.split('.'), b = right.split('.'), i = 0, l = Math.max(a.length, b.length); i < l; i++) {
28+
if((a[i] && !b[i] && parseInt(a[i]) > 0) || (parseInt(a[i]) > parseInt(b[i])))
29+
return +1
30+
/* left is higher */;
31+
else if((b[i] && !a[i] && parseInt(b[i]) > 0) || (parseInt(a[i]) < parseInt(b[i])))
32+
return -1
33+
/* right is higher */;
34+
}
35+
36+
return 0
37+
/* equal */;
38+
}

moz/loading.png

-1.76 KB
Binary file not shown.

moz/manifest.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage_url": "https://github.com/SpaceK33z/web-to-plex/",
55

66
"manifest_version": 2,
7-
"version": "4.1.1.6",
7+
"version": "4.1.1.7",
88
"browser_specific_settings": {
99
"gecko": {
1010
@@ -70,12 +70,6 @@
7070
"all_frames": true
7171
},
7272

73-
// Testing purposes only
74-
{
75-
"matches": ["*://ephellon.github.io/web.to.plex/test/*"],
76-
"js": ["utils.js", "__test__.js"]
77-
},
78-
7973
// The sites
8074
{
8175
"matches": ["*://*.movieo.me/*"],

moz/movie.poster.jpg

-58.2 KB
Binary file not shown.

moz/options.css

+92-48
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ a {
8181
text-decoration: none !important;
8282
}
8383

84-
a[target="_blank"]::after {
84+
[target="_blank"]:not(#version)::after {
8585
content: " [\2197]";
8686
font-size: 70%;
8787

8888
vertical-align: super;
89+
}ertical-align: super;
8990
}
9091

9192
hr {
@@ -281,6 +282,8 @@ summary, option {
281282
}
282283

283284
#sidebar summary {
285+
font-size: 12px;
286+
284287
margin-left: -50px;
285288
padding-left: 50px;
286289
}
@@ -297,7 +300,8 @@ summary, option {
297300
}
298301

299302
#sidebar .checkbox {
300-
display: none;
303+
display: block;
304+
transform: scale(0.75);
301305
}
302306

303307
display > summary:first-child {
@@ -337,25 +341,52 @@ details:last-child > summary {
337341
margin: 6px 12px;
338342
}
339343

340-
#footer {
344+
footer {
341345
bottom: 0;
342346
position: fixed;
343347

344348
width: 100%;
345349
}
346350

347-
[in-use] {
351+
[using], [counter-for] {
348352
color: #197bcc;
349353
}
350354

351-
[in-use]::after {
355+
[using]::after {
352356
content: '\2610';
353357
}
354358

355359
[in-use="true"i]::after {
356360
content: '\2611';
357361
}
358362

363+
[special][using]:not([in-use="true"i]) {
364+
color: #666;
365+
}
366+
367+
[special][in-use="true"i], [special][counter-for] {
368+
color: #cc7b19;
369+
}
370+
371+
[counter-for] {
372+
border: 1px solid #197bcc;
373+
374+
margin: 0;
375+
padding: 0 3px;
376+
}
377+
378+
[counter-for][in-use]::after {
379+
content: '' !important;
380+
}
381+
382+
[special][counter-for] {
383+
border-color: #cc7b19;
384+
}
385+
386+
#sidebar [counter-for] {
387+
font-size: 10px;
388+
}
389+
359390
[top] {
360391
border-bottom-left-radius: 0 !important;
361392
border-bottom-right-radius: 0 !important;
@@ -379,6 +410,14 @@ details:last-child > summary {
379410
background: #298bdc !important;
380411
}
381412

413+
#sidebar .checkbox:not([special]) {
414+
display: none !important;
415+
}
416+
417+
display summary [using]:not([special]) {
418+
display: none !important;
419+
}
420+
382421
/* bbodine @CodePen - https://codepen.io/bbodine1/pen/novBm */
383422
.checkbox {
384423
width: 80px;
@@ -480,6 +519,11 @@ span.checkbox {
480519
opacity: 0.25 !important;
481520
}
482521

522+
.checkbox[disabled] + [using] {
523+
color: #666;
524+
opacity: 0.25;
525+
}
526+
483527
[white] {
484528
color: #fff !important;
485529
}
@@ -490,7 +534,7 @@ span.checkbox {
490534

491535
input[type="range"] {
492536
appearance: none;
493-
-webkit-appearance: none;
537+
-moz-appearance: none;
494538

495539
background: #0004;
496540
outline: #0000;
@@ -525,10 +569,7 @@ input[type="range"] + output::after {
525569
content: '';
526570
}
527571

528-
input[type="range"]::-webkit-slider-thumb {
529-
appearance: none;
530-
-webkit-appearance: none;
531-
572+
input[type="range"]::-moz-range-thumb {
532573
background: #cc7b19;
533574
border: 1px solid #cc7b19;
534575
border-radius: 100%;
@@ -538,34 +579,52 @@ input[type="range"]::-webkit-slider-thumb {
538579
width: 32px;
539580
}
540581

541-
input[type="range"]::-moz-range-thumb {
542-
background: #cc7b19;
543-
border: 1px solid #cc7b19;
544-
border-radius: 100%;
545-
cursor: pointer;
582+
[disabled], [disabled] * {
583+
cursor: not-allowed !important;
584+
color: #909090EE !important;
585+
}
546586

547-
height: 32px;
548-
width: 32px;
587+
[code], code {
588+
background: #222 !important;
589+
border-radius: 3px !important;
590+
box-shadow: none !important;
591+
box-sizing: border-box !important;
592+
font-family: "System, Monospace, Menlo, Arial", Consolas, "Liberation Mono", Menlo, Courier, monospace !important;
593+
font-size: 12px !important;
594+
line-height: 18px !important;
595+
596+
margin: 0 !important;
597+
padding: 0.2em 0.4em !important;
549598
}
550599

551600
#version {
552-
color: #fff;
601+
background: #0000 !important;
602+
border: 1px solid #666 !important;
603+
color: #666 !important;
553604

554-
position: fixed;
555-
right: 4px;
556-
top: calc(100vh - 24px);
605+
position: fixed !important;
606+
right: 12px !important;
607+
top: calc(100vh - 30px) !important;
608+
609+
transition: border 0.15s, color 0.15s;
557610
}
558611

559-
[disabled], [disabled] * {
560-
cursor: not-allowed !important;
561-
color: #909090EE !important;
612+
/* Release is higher than GitHub */
613+
#version[status="high"] {
614+
border-color: #6cc644 !important;
615+
color: #6cc644 !important;
562616
}
563617

564-
[code], code {
565-
border: 1px solid #FFF3;
566-
font-family: monospace, console, consolas, system, arial !important;
618+
/* Release is same as GitHub */
619+
#version[status="same"] {
620+
border-color: #197bcc !important;
621+
color: #197bcc !important;
622+
}
567623

568-
padding: 0 3px;
624+
/* Release is lower than GitHub */
625+
#version[status="low"] {
626+
border-color: #f66a0a !important;
627+
color: #f3582c !important;
569628
}
570629

571630
/* notifications */
@@ -589,6 +648,7 @@ input[type="range"]::-moz-range-thumb {
589648
z-index: 999999;
590649
}
591650

651+
592652
/* Web to Plex general information notifications */
593653
.notification.info {
594654
background: #666 !important;
@@ -655,7 +715,7 @@ input[type="range"]::-moz-range-thumb {
655715
height: 65px;
656716
width: 100%;
657717

658-
-webkit-tap-highlight-color: #0000;
718+
/* -webkit-tap-highlight-color: #0000; */
659719
}
660720

661721
.prompt-header {
@@ -758,21 +818,9 @@ input[type="range"]::-moz-range-thumb {
758818
background: #ffffff4d !important;
759819
}
760820

761-
762-
*::-webkit-scrollbar {
763-
width: 10px;
764-
}
765-
766-
*::-webkit-scrollbar-thumb {
767-
min-height: 50px;
768-
background: rgba(255, 255, 255, 0.15);
769-
border: 2px solid rgba(0, 0, 0, 0);
770-
border-radius: 8px;
771-
background-clip: padding-box;
772-
}
773-
774-
*::-webkit-scrollbar-track {
775-
/* background: url(noise.png) fixed, #3f4245 !important; */
821+
* {
822+
scrollbar-width: thin;
823+
scrollbar-color: rgba(255, 255, 255, 0.15);
776824
}
777825

778826
*::placeholder {
@@ -783,10 +831,6 @@ input[type="range"]::-moz-range-thumb {
783831
color: #999;
784832
}
785833

786-
*::-webkit-input-placeholder {
787-
color: #999;
788-
}
789-
790834
@keyframes spin {
791835
0% { transform: rotate(0deg) }
792836

0 commit comments

Comments
 (0)