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 b1fff48 + 7d711d1 commit 5cafab9
Show file tree
Hide file tree
Showing 23 changed files with 51 additions and 27 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.1",
"version": "4.1.2.2",
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
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.1",
"version": "4.1.2.2",

"icons": {
"16": "16.png",
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.1",
"version": "4.1.2.2",

"icons": {
"16": "img/16.png",
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.1",
"version": "4.1.2.2",

"icons": {
"16": "img/16.png",
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
14 changes: 10 additions & 4 deletions win/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

0 comments on commit 5cafab9

Please sign in to comment.