Skip to content

Commit

Permalink
Merge branch 'beta-branch'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephellon committed Feb 14, 2020
2 parents 2639c86 + f845476 commit e4d9833
Show file tree
Hide file tree
Showing 33 changed files with 83 additions and 57 deletions.
Binary file modified moz.xpi
Binary file not shown.
Binary file modified moz.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion moz/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage_url": "https://webtoplex.github.io/",

"manifest_version": 2,
"version": "4.1.2.0",
"version": "4.1.2.2",
"browser_specific_settings": {
"gecko": {
"id": "mink.cbos@gmail.com",
Expand Down
3 changes: 0 additions & 3 deletions moz/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,6 @@ span.checkbox {
.checkbox[white] input:checked + label:hover {
background: #fff !important;
}
.checkbox[white] input:checked + label {
background: #fff !important;
}

[orange], .checkbox[orange]::before {
color: #cc7b19 !important;
Expand Down
2 changes: 1 addition & 1 deletion moz/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ <h2>Connection Settings</h2>
<label>Sick Beard API Key</label>
<input type="text" data-option="sickBeardToken" placeholder="What's your Sick Beard API key?" default/>
<div>
1. Go to Sick <strong>Beard</strong> &rarr; <strong>Config</strong> &rarr; <strong>General</strong> &rarr; <strong>API</strong><br/>
1. Go to <strong>Sick Beard</strong> &rarr; <strong>Config</strong> &rarr; <strong>General</strong> &rarr; <strong>API</strong><br/>
&mdash; a. Ensure the checkbox <u>Enable API</u> is checked<br/>
&mdash; b. Press the <u>Generate</u> button<br/>
2. Copy/Paste the <u>API Key</u><br/>
Expand Down
12 changes: 7 additions & 5 deletions moz/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,21 +632,23 @@ function getOptionValues() {
});

let COM = options.UseLZW,
DEF = options.__defaults == 'true';
DEF = options.__defaults == 'true',
CHT = $('[data-option="__caught"i]'),
THM = $('[data-option="__theme"i]');

for(let key in __caught)
__caught[key] = __caught[key].filter(id => id).slice(0, (COM? 200: 100)).sort();

// if(options.__theme)
// __theme = JSON.parse(options.__theme);
if(THM.value)
__theme = JSON.parse(THM.value);
//
// __theme = __theme.filter(v => v);

let _c = JSON.stringify(__caught),
_t = JSON.stringify(__theme);

$('[data-option="__caught"i]').value = options.__caught = (COM? compress(zip(BWT(_c))): _c);
$('[data-option="__theme"i]').value = options.__theme = (COM? compress(zip(BWT(_t))): _t);
CHT.value = options.__caught = (COM? compress(zip(BWT(_c))): _c);
THM.value = options.__theme = (COM? compress(zip(BWT(_t))): _t);

return options;
}
Expand Down
2 changes: 1 addition & 1 deletion moz/plex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let script = {
"url": "*://app.plex.tv/desktop#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
"url": "*://app.plex.tv/desktop/?#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",

"ready": () => $('.loading').empty,

Expand Down
14 changes: 10 additions & 4 deletions moz/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ var INITIALIZE = INITIALIZE || (async date => {
});

// the message has only 30s to "live"
setTimeout(() => Update.messages.splice(0, 1), 30000);
setTimeout(() => (Update.messages || []).splice(0, 1), 30000);

if(postToo)
top.postMessage(options);
Expand Down Expand Up @@ -2643,10 +2643,15 @@ var INITIALIZE = INITIALIZE || (async date => {
onmouseup: event => {
let self = event.target, parent = button;

if(init instanceof Function)
button.setAttribute('class', 'closed floating web-to-plex-button restarting'), button.onmouseenter = button.onmouseleave = null, button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...'), setTimeout(() => (init && !RUNNING? (init(), RUNNING = true): RUNNING = false), 500);
else
if(init instanceof Function) {
button.setAttribute('class', 'closed floating web-to-plex-button restarting');
button.onmouseenter = button.onmouseleave = null;
button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...');
INITIALIZE(new Date);
init();
} else {
new Notification('warning', "Couldn't reload. Please refresh the page.");
}
}
},
furnish('i[orange][gradient=lighten]', { glyph: 'restart 3x', onmouseup: event => event.target.parentElement.click() }) // <img/>
Expand Down Expand Up @@ -3207,6 +3212,7 @@ var INITIALIZE = INITIALIZE || (async date => {
UTILS_TERMINAL.LOG('Told to reinitialize...');
document.queryBy('.web-to-plex-button').map(e => e.remove());
INITIALIZE(new Date);
init && init();
return true;

case 'NO_RENDER':
Expand Down
Binary file modified opa.crx
Binary file not shown.
Binary file modified opa.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion opa/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage_url": "https://webtoplex.github.io/",

"manifest_version": 2,
"version": "4.1.2.0",
"version": "4.1.2.2",

"icons": {
"16": "16.png",
Expand Down
2 changes: 1 addition & 1 deletion opa/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ <h2>Connection Settings</h2>
<label>Sick Beard API Key</label>
<input type="text" data-option="sickBeardToken" placeholder="What's your Sick Beard API key?" default/>
<div>
1. Go to Sick <strong>Beard</strong> &rarr; <strong>Config</strong> &rarr; <strong>General</strong> &rarr; <strong>API</strong><br/>
1. Go to <strong>Sick Beard</strong> &rarr; <strong>Config</strong> &rarr; <strong>General</strong> &rarr; <strong>API</strong><br/>
&mdash; a. Ensure the checkbox <u>Enable API</u> is checked<br/>
&mdash; b. Press the <u>Generate</u> button<br/>
2. Copy/Paste the <u>API Key</u><br/>
Expand Down
12 changes: 7 additions & 5 deletions opa/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,21 +637,23 @@ function getOptionValues() {
});

let COM = options.UseLZW,
DEF = options.__defaults == 'true';
DEF = options.__defaults == 'true',
CHT = $('[data-option="__caught"i]'),
THM = $('[data-option="__theme"i]');

for(let key in __caught)
__caught[key] = __caught[key].filter(id => id).slice(0, (COM? 200: 100)).sort();

// if(options.__theme)
// __theme = JSON.parse(options.__theme);
if(THM.value)
__theme = JSON.parse(THM.value);
//
// __theme = __theme.filter(v => v);

let _c = JSON.stringify(__caught),
_t = JSON.stringify(__theme);

$('[data-option="__caught"i]').value = options.__caught = (COM? compress(zip(BWT(_c))): _c);
$('[data-option="__theme"i]').value = options.__theme = (COM? compress(zip(BWT(_t))): _t);
CHT.value = options.__caught = (COM? compress(zip(BWT(_c))): _c);
THM.value = options.__theme = (COM? compress(zip(BWT(_t))): _t);

return options;
}
Expand Down
2 changes: 1 addition & 1 deletion opa/plex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let script = {
"url": "*://app.plex.tv/desktop#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
"url": "*://app.plex.tv/desktop/?#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",

"ready": () => $('.loading').empty,

Expand Down
2 changes: 1 addition & 1 deletion opa/plugn.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ chrome.runtime.onMessage.addListener(processMessage = async(request = {}, sender

await fetch(style, { mode: 'cors' })
.then(response => response.text())
.then(async code => browser.tabs.insertCSS({ code }));
.then(async code => chrome.tabs.insertCSS({ code }));

return true;
} catch(error) {
Expand Down
14 changes: 10 additions & 4 deletions opa/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ let INITIALIZE = (async date => {
});

// the message has only 30s to "live"
setTimeout(() => Update.messages.splice(0, 1), 30000);
setTimeout(() => (Update.messages || []).splice(0, 1), 30000);

if(postToo)
top.postMessage(options);
Expand Down Expand Up @@ -2640,10 +2640,15 @@ let INITIALIZE = (async date => {
onmouseup: event => {
let self = event.target, parent = button;

if(init instanceof Function)
button.setAttribute('class', 'closed floating web-to-plex-button restarting'), button.onmouseenter = button.onmouseleave = null, button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...'), setTimeout(() => (init && !RUNNING? (init(), RUNNING = true): RUNNING = false), 500);
else
if(init instanceof Function) {
button.setAttribute('class', 'closed floating web-to-plex-button restarting');
button.onmouseenter = button.onmouseleave = null;
button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...');
INITIALIZE(new Date);
init();
} else {
new Notification('warning', "Couldn't reload. Please refresh the page.");
}
}
},
furnish('i[orange][gradient=lighten]', { glyph: 'restart 3x', onmouseup: event => event.target.parentElement.click() }) // <img/>
Expand Down Expand Up @@ -3238,6 +3243,7 @@ let INITIALIZE = (async date => {
UTILS_TERMINAL.LOG('Told to reinitialize...');
document.queryBy('.web-to-plex-button').map(e => e.remove());
INITIALIZE(new Date);
init && init();
return true;

case 'NO_RENDER':
Expand Down
Binary file modified src.crx
Binary file not shown.
Binary file modified src.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/cloud/plex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let script = {
"url": "*://app.plex.tv/desktop#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
"url": "*://app.plex.tv/desktop/?#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",

"ready": () => $('.loading').empty,

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage_url": "https://webtoplex.github.io/",

"manifest_version": 2,
"version": "4.1.2.0",
"version": "4.1.2.2",

"icons": {
"16": "img/16.png",
Expand Down
3 changes: 0 additions & 3 deletions src/options/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,6 @@ span.checkbox {
.checkbox[white] input:checked + label:hover {
background: #fff !important;
}
.checkbox[white] input:checked + label {
background: #fff !important;
}

[orange], .checkbox[orange]::before {
color: #cc7b19 !important;
Expand Down
2 changes: 1 addition & 1 deletion src/options/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ <h2>Connection Settings</h2>
<label>Sick Beard API Key</label>
<input type="text" data-option="sickBeardToken" placeholder="What's your Sick Beard API key?" default/>
<div>
1. Go to Sick <strong>Beard</strong> &rarr; <strong>Config</strong> &rarr; <strong>General</strong> &rarr; <strong>API</strong><br/>
1. Go to <strong>Sick Beard</strong> &rarr; <strong>Config</strong> &rarr; <strong>General</strong> &rarr; <strong>API</strong><br/>
&mdash; a. Ensure the checkbox <u>Enable API</u> is checked<br/>
&mdash; b. Press the <u>Generate</u> button<br/>
2. Copy/Paste the <u>API Key</u><br/>
Expand Down
12 changes: 7 additions & 5 deletions src/options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,21 +637,23 @@ function getOptionValues() {
});

let COM = options.UseLZW,
DEF = options.__defaults == 'true';
DEF = options.__defaults == 'true',
CHT = $('[data-option="__caught"i]'),
THM = $('[data-option="__theme"i]');

for(let key in __caught)
__caught[key] = __caught[key].filter(id => id).slice(0, (COM? 200: 100)).sort();

// if(options.__theme)
// __theme = JSON.parse(options.__theme);
if(THM.value)
__theme = JSON.parse(THM.value);
//
// __theme = __theme.filter(v => v);

let _c = JSON.stringify(__caught),
_t = JSON.stringify(__theme);

$('[data-option="__caught"i]').value = options.__caught = (COM? compress(zip(BWT(_c))): _c);
$('[data-option="__theme"i]').value = options.__theme = (COM? compress(zip(BWT(_t))): _t);
CHT.value = options.__caught = (COM? compress(zip(BWT(_c))): _c);
THM.value = options.__theme = (COM? compress(zip(BWT(_t))): _t);

return options;
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugn.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ chrome.runtime.onMessage.addListener(processMessage = async(request = {}, sender

await fetch(style, { mode: 'cors' })
.then(response => response.text())
.then(async code => browser.tabs.insertCSS({ code }));
.then(async code => chrome.tabs.insertCSS({ code }));

return true;
} catch(error) {
Expand Down
14 changes: 10 additions & 4 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ let INITIALIZE = (async date => {
});

// the message has only 30s to "live"
setTimeout(() => Update.messages.splice(0, 1), 30000);
setTimeout(() => (Update.messages || []).splice(0, 1), 30000);

if(postToo)
top.postMessage(options);
Expand Down Expand Up @@ -2640,10 +2640,15 @@ let INITIALIZE = (async date => {
onmouseup: event => {
let self = event.target, parent = button;

if(init instanceof Function)
button.setAttribute('class', 'closed floating web-to-plex-button restarting'), button.onmouseenter = button.onmouseleave = null, button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...'), setTimeout(() => (init && !RUNNING? (init(), RUNNING = true): RUNNING = false), 500);
else
if(init instanceof Function) {
button.setAttribute('class', 'closed floating web-to-plex-button restarting');
button.onmouseenter = button.onmouseleave = null;
button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...');
INITIALIZE(new Date);
init();
} else {
new Notification('warning', "Couldn't reload. Please refresh the page.");
}
}
},
furnish('i[orange][gradient=lighten]', { glyph: 'restart 3x', onmouseup: event => event.target.parentElement.click() }) // <img/>
Expand Down Expand Up @@ -3238,6 +3243,7 @@ let INITIALIZE = (async date => {
UTILS_TERMINAL.LOG('Told to reinitialize...');
document.queryBy('.web-to-plex-button').map(e => e.remove());
INITIALIZE(new Date);
init && init();
return true;

case 'NO_RENDER':
Expand Down
Binary file modified win.crx
Binary file not shown.
Binary file modified win.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion win/cloud/plex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let script = {
"url": "*://app.plex.tv/desktop#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
"url": "*://app.plex.tv/desktop/?#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",

"ready": () => $('.loading').empty,

Expand Down
2 changes: 1 addition & 1 deletion win/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage_url": "https://webtoplex.github.io/",

"manifest_version": 2,
"version": "4.1.2.0",
"version": "4.1.2.2",

"icons": {
"16": "img/16.png",
Expand Down
2 changes: 1 addition & 1 deletion win/options/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ <h2>Connection Settings</h2>
<label>Sick Beard API Key</label>
<input type="text" data-option="sickBeardToken" placeholder="What's your Sick Beard API key?" default/>
<div>
1. Go to Sick <strong>Beard</strong> &rarr; <strong>Config</strong> &rarr; <strong>General</strong> &rarr; <strong>API</strong><br/>
1. Go to <strong>Sick Beard</strong> &rarr; <strong>Config</strong> &rarr; <strong>General</strong> &rarr; <strong>API</strong><br/>
&mdash; a. Ensure the checkbox <u>Enable API</u> is checked<br/>
&mdash; b. Press the <u>Generate</u> button<br/>
2. Copy/Paste the <u>API Key</u><br/>
Expand Down
12 changes: 7 additions & 5 deletions win/options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,21 +637,23 @@ function getOptionValues() {
});

let COM = options.UseLZW,
DEF = options.__defaults == 'true';
DEF = options.__defaults == 'true',
CHT = $('[data-option="__caught"i]'),
THM = $('[data-option="__theme"i]');

for(let key in __caught)
__caught[key] = __caught[key].filter(id => id).slice(0, (COM? 200: 100)).sort();

// if(options.__theme)
// __theme = JSON.parse(options.__theme);
if(THM.value)
__theme = JSON.parse(THM.value);
//
// __theme = __theme.filter(v => v);

let _c = JSON.stringify(__caught),
_t = JSON.stringify(__theme);

$('[data-option="__caught"i]').value = options.__caught = (COM? compress(zip(BWT(_c))): _c);
$('[data-option="__theme"i]').value = options.__theme = (COM? compress(zip(BWT(_t))): _t);
CHT.value = options.__caught = (COM? compress(zip(BWT(_c))): _c);
THM.value = options.__theme = (COM? compress(zip(BWT(_t))): _t);

return options;
}
Expand Down
2 changes: 1 addition & 1 deletion win/plugn.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ chrome.runtime.onMessage.addListener(processMessage = async(request = {}, sender

await fetch(style, { mode: 'cors' })
.then(response => response.text())
.then(async code => browser.tabs.insertCSS({ code }));
.then(async code => chrome.tabs.insertCSS({ code }));

return true;
} catch(error) {
Expand Down
Loading

0 comments on commit e4d9833

Please sign in to comment.