Skip to content

Commit 5cafab9

Browse files
committed
Merge branch 'beta-branch'
2 parents b1fff48 + 7d711d1 commit 5cafab9

23 files changed

+51
-27
lines changed

moz.xpi

16 Bytes
Binary file not shown.

moz.zip

16 Bytes
Binary file not shown.

moz/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage_url": "https://webtoplex.github.io/",
55

66
"manifest_version": 2,
7-
"version": "4.1.2.1",
7+
"version": "4.1.2.2",
88
"browser_specific_settings": {
99
"gecko": {
1010

moz/plex.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let script = {
2-
"url": "*://app.plex.tv/desktop#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
2+
"url": "*://app.plex.tv/desktop/?#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
33

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

moz/utils.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ var INITIALIZE = INITIALIZE || (async date => {
10031003
});
10041004

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

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

2646-
if(init instanceof Function)
2647-
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);
2648-
else
2646+
if(init instanceof Function) {
2647+
button.setAttribute('class', 'closed floating web-to-plex-button restarting');
2648+
button.onmouseenter = button.onmouseleave = null;
2649+
button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...');
2650+
INITIALIZE(new Date);
2651+
init();
2652+
} else {
26492653
new Notification('warning', "Couldn't reload. Please refresh the page.");
2654+
}
26502655
}
26512656
},
26522657
furnish('i[orange][gradient=lighten]', { glyph: 'restart 3x', onmouseup: event => event.target.parentElement.click() }) // <img/>
@@ -3207,6 +3212,7 @@ var INITIALIZE = INITIALIZE || (async date => {
32073212
UTILS_TERMINAL.LOG('Told to reinitialize...');
32083213
document.queryBy('.web-to-plex-button').map(e => e.remove());
32093214
INITIALIZE(new Date);
3215+
init && init();
32103216
return true;
32113217

32123218
case 'NO_RENDER':

opa.crx

11 Bytes
Binary file not shown.

opa.zip

12 Bytes
Binary file not shown.

opa/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage_url": "https://webtoplex.github.io/",
55

66
"manifest_version": 2,
7-
"version": "4.1.2.1",
7+
"version": "4.1.2.2",
88

99
"icons": {
1010
"16": "16.png",

opa/plex.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let script = {
2-
"url": "*://app.plex.tv/desktop#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
2+
"url": "*://app.plex.tv/desktop/?#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
33

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

opa/plugn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ chrome.runtime.onMessage.addListener(processMessage = async(request = {}, sender
665665

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

670670
return true;
671671
} catch(error) {

opa/utils.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ let INITIALIZE = (async date => {
10351035
});
10361036

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

10401040
if(postToo)
10411041
top.postMessage(options);
@@ -2640,10 +2640,15 @@ let INITIALIZE = (async date => {
26402640
onmouseup: event => {
26412641
let self = event.target, parent = button;
26422642

2643-
if(init instanceof Function)
2644-
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);
2645-
else
2643+
if(init instanceof Function) {
2644+
button.setAttribute('class', 'closed floating web-to-plex-button restarting');
2645+
button.onmouseenter = button.onmouseleave = null;
2646+
button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...');
2647+
INITIALIZE(new Date);
2648+
init();
2649+
} else {
26462650
new Notification('warning', "Couldn't reload. Please refresh the page.");
2651+
}
26472652
}
26482653
},
26492654
furnish('i[orange][gradient=lighten]', { glyph: 'restart 3x', onmouseup: event => event.target.parentElement.click() }) // <img/>
@@ -3238,6 +3243,7 @@ let INITIALIZE = (async date => {
32383243
UTILS_TERMINAL.LOG('Told to reinitialize...');
32393244
document.queryBy('.web-to-plex-button').map(e => e.remove());
32403245
INITIALIZE(new Date);
3246+
init && init();
32413247
return true;
32423248

32433249
case 'NO_RENDER':

src.crx

13 Bytes
Binary file not shown.

src.zip

13 Bytes
Binary file not shown.

src/cloud/plex.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let script = {
2-
"url": "*://app.plex.tv/desktop#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
2+
"url": "*://app.plex.tv/desktop/?#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
33

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

src/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage_url": "https://webtoplex.github.io/",
55

66
"manifest_version": 2,
7-
"version": "4.1.2.1",
7+
"version": "4.1.2.2",
88

99
"icons": {
1010
"16": "img/16.png",

src/plugn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ chrome.runtime.onMessage.addListener(processMessage = async(request = {}, sender
665665

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

670670
return true;
671671
} catch(error) {

src/utils.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ let INITIALIZE = (async date => {
10351035
});
10361036

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

10401040
if(postToo)
10411041
top.postMessage(options);
@@ -2640,10 +2640,15 @@ let INITIALIZE = (async date => {
26402640
onmouseup: event => {
26412641
let self = event.target, parent = button;
26422642

2643-
if(init instanceof Function)
2644-
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);
2645-
else
2643+
if(init instanceof Function) {
2644+
button.setAttribute('class', 'closed floating web-to-plex-button restarting');
2645+
button.onmouseenter = button.onmouseleave = null;
2646+
button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...');
2647+
INITIALIZE(new Date);
2648+
init();
2649+
} else {
26462650
new Notification('warning', "Couldn't reload. Please refresh the page.");
2651+
}
26472652
}
26482653
},
26492654
furnish('i[orange][gradient=lighten]', { glyph: 'restart 3x', onmouseup: event => event.target.parentElement.click() }) // <img/>
@@ -3238,6 +3243,7 @@ let INITIALIZE = (async date => {
32383243
UTILS_TERMINAL.LOG('Told to reinitialize...');
32393244
document.queryBy('.web-to-plex-button').map(e => e.remove());
32403245
INITIALIZE(new Date);
3246+
init && init();
32413247
return true;
32423248

32433249
case 'NO_RENDER':

win.crx

12 Bytes
Binary file not shown.

win.zip

13 Bytes
Binary file not shown.

win/cloud/plex.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let script = {
2-
"url": "*://app.plex.tv/desktop#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
2+
"url": "*://app.plex.tv/desktop/?#!/(server/(?:[a-f\\d]+)|provider/(?:tv.plex.provider.vod))/(details|list)\\?*",
33

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

win/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage_url": "https://webtoplex.github.io/",
55

66
"manifest_version": 2,
7-
"version": "4.1.2.1",
7+
"version": "4.1.2.2",
88

99
"icons": {
1010
"16": "img/16.png",

win/plugn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ chrome.runtime.onMessage.addListener(processMessage = async(request = {}, sender
665665

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

670670
return true;
671671
} catch(error) {

win/utils.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ let INITIALIZE = (async date => {
10351035
});
10361036

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

10401040
if(postToo)
10411041
top.postMessage(options);
@@ -2640,10 +2640,15 @@ let INITIALIZE = (async date => {
26402640
onmouseup: event => {
26412641
let self = event.target, parent = button;
26422642

2643-
if(init instanceof Function)
2644-
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);
2645-
else
2643+
if(init instanceof Function) {
2644+
button.setAttribute('class', 'closed floating web-to-plex-button restarting');
2645+
button.onmouseenter = button.onmouseleave = null;
2646+
button.querySelector('.list-action').setAttribute('tooltip', 'Restarting...');
2647+
INITIALIZE(new Date);
2648+
init();
2649+
} else {
26462650
new Notification('warning', "Couldn't reload. Please refresh the page.");
2651+
}
26472652
}
26482653
},
26492654
furnish('i[orange][gradient=lighten]', { glyph: 'restart 3x', onmouseup: event => event.target.parentElement.click() }) // <img/>
@@ -3238,6 +3243,7 @@ let INITIALIZE = (async date => {
32383243
UTILS_TERMINAL.LOG('Told to reinitialize...');
32393244
document.queryBy('.web-to-plex-button').map(e => e.remove());
32403245
INITIALIZE(new Date);
3246+
init && init();
32413247
return true;
32423248

32433249
case 'NO_RENDER':

0 commit comments

Comments
 (0)