V1.7.15 | Release

This commit is contained in:
2021-12-07 23:09:45 -05:00
parent 168af59882
commit 5f22ce7e72
12 changed files with 397 additions and 79 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "watch-party-crx",
"version": "1.7.14",
"version": "1.7.15",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "watch-party-crx",
"version": "1.7.14",
"version": "1.7.15",
"private": true,
"dependencies": {},
"scripts": {
+1 -1
View File
@@ -26,7 +26,7 @@ try {
console.info("CHROME ENV");
}
const APP_VERSION = "1.7.14";
const APP_VERSION = "1.7.15";
const firebaseConfig = {
apiKey: "AIzaSyCJLuYpzXLDRmu2ttzFuSGmYcpFxqToWFU",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "Watch Party",
"short_name": "WP",
"version": "1.7.14",
"version": "1.7.15",
"description": "Watch streamed content together.",
"background": {
"page": "background.html"
+1 -1
View File
@@ -32,7 +32,7 @@ import {
} from "./Api";
import Tutorial from "./Tutorial";
const APP_VERSION = "1.7.14";
const APP_VERSION = "1.7.15";
const darkTheme = createMuiTheme({
palette: {
+6 -8
View File
@@ -234,14 +234,12 @@ export default class VideoListener {
const nS = this.nameSelectors[this.video.source];
switch (this.video.source) {
case PLAYER_SOURCE.NETFLIX:
var nshow = document.querySelector(nS.show).innerHTML || "";
var nepisode = "";
if (document.querySelectorAll(nS.episode)) {
document
.querySelectorAll(nS.episode)
.forEach((el) => (nepisode += el.innerHTML + " "));
}
return nshow === "" && nepisode === "" ? null : nshow + "\n" + nepisode;
var n = document.querySelector(nS.show).childNodes;
var s = "";
n.forEach((v) => {
s += (v.wholeText || v.innerText) + "\n";
});
return s;
case PLAYER_SOURCE.DISNEY:
this.video.element.parentElement.click();
await this.timeout(200);
+9 -63
View File
@@ -24,14 +24,13 @@ const PartyWrapper = document.createElement("div");
PartyWrapper.id = "party_wrapper";
document.body.appendChild(PartyWrapper);
document.addEventListener(
window.addEventListener(
"keydown",
(ev) => {
if (ev.code === "KeyF") {
if (ev.target.tagName !== "INPUT" && ev.target.tagName !== "TEXTAREA") {
ev.stopImmediatePropagation();
ev.stopPropagation();
}
ev.stopImmediatePropagation();
ev.stopPropagation();
if (ev.target.tagName === "INPUT" || ev.target.tagName === "TEXTAREA") {
document.querySelector('.chat-message-box').dispatchEvent(ev);
}
},
{ capture: true }
@@ -50,20 +49,10 @@ head.appendChild(link);
switch (getPlayerSource()) {
case PLAYER_SOURCE.NETFLIX:
document.body.classList.add("netflix");
break;
case PLAYER_SOURCE.HULU:
document.addEventListener(
"keydown",
(ev) => {
if (ev.target.tagName !== "INPUT" || ev.target.tagName !== "TEXTAREA") {
ev.stopImmediatePropagation();
ev.stopPropagation();
} else {
ev.target.focus();
}
},
{ capture: true }
);
document.body.classList.add("hulu");
break;
case PLAYER_SOURCE.AMAZON:
@@ -107,31 +96,11 @@ switch (getPlayerSource()) {
},
{ capture: true }
);
window.addEventListener(
"keydown",
(ev) => {
if (ev.target.tagName === "INPUT" || ev.target.tagName === "TEXTAREA") {
ev.target.focus();
}
ev.stopImmediatePropagation();
ev.stopPropagation();
},
{ capture: true }
);
break;
case PLAYER_SOURCE.PEACOCK:
document.body.classList.add("peacock");
window.addEventListener(
"keydown",
(ev) => {
if (ev.target.tagName === "INPUT" || ev.target.tagName === "TEXTAREA") {
ev.target.focus();
}
ev.stopImmediatePropagation();
ev.stopPropagation();
},
{ capture: true }
);
break;
case PLAYER_SOURCE.GOOGLEPLAY:
document.body.classList.add("googleplay");
@@ -170,31 +139,8 @@ switch (getPlayerSource()) {
break;
case PLAYER_SOURCE.PARAMOUNTPLUS:
document.body.classList.add("paramountplus");
window.addEventListener(
"keydown",
(ev) => {
if (ev.target.tagName === "INPUT" || ev.target.tagName === "TEXTAREA") {
ev.target.focus();
}
ev.stopImmediatePropagation();
ev.stopPropagation();
},
{ capture: true }
);
break;
case PLAYER_SOURCE.STARZ:
document.addEventListener(
"keydown",
(ev) => {
if (ev.target.tagName !== "INPUT" || ev.target.tagName !== "TEXTAREA") {
ev.stopImmediatePropagation();
ev.stopPropagation();
} else {
ev.target.focus();
}
},
{ capture: true }
);
document.body.classList.add("starz");
break;
case PLAYER_SOURCE.LOCAL: