v1.4.2-release/release

This commit is contained in:
2020-07-15 01:09:59 -04:00
parent 74f52ee432
commit 2dd74b888b
14 changed files with 290 additions and 101 deletions
+54
View File
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv="Content-Security-Policy"
content="default-src *; style-src 'self' https://* 'unsafe-inline'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval'"
/>
<style>
html {
height: fit-content;
width: fit-content;
}
body {
margin: 0;
min-width: 200px;
background-color: rgba(46, 46, 46, 1);
height: fit-content;
}
a:hover {
filter: drop-shadow(0 0 10px black);
}
a {
border-radius: 13px;
font-family: sans-serif;
font-weight: 500;
display: block;
user-select: none;
color: black;
text-decoration: none;
padding: 5px 10px;
text-align: center;
margin: 10px 10px;
}
a:nth-child(1) {
background-color: rgb(23, 245, 160);
}
a:nth-child(2) {
background-color: rgb(235, 77, 77);
}
a:nth-child(3) {
background-color: cornflowerblue;
}
</style>
</head>
<body>
<script src="https://www.gstatic.com/firebasejs/7.14.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.1/firebase-firestore.js"></script>
<script src="background.js"></script>
<a target="_blank" href="https://www.hulu.com/">Hulu</a>
<a target="_blank" href="https://www.netflix.com/browse">Netflix</a>
<a target="_blank" href="https://www.amazon.com/gp/video/storefront">Prime Video</a>
</body>
</html>
+7
View File
@@ -50,6 +50,13 @@ const sendAuth = async (sendResponse) => {
sendResponse(firebase.auth().currentUser);
};
chrome.runtime.onInstalled.addListener(() => {
chrome.tabs.create({
url: 'https://www.chromewatchparty.com/welcome',
active: true,
});
});
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
const { type } = request;
switch (type) {
+14 -34
View File
@@ -4,7 +4,10 @@
"version": "1.4.2",
"description": "Watch streamed content together.",
"background": {
"page": "popup.html"
"page": "background.html"
},
"browser_action": {
"default_popup": "popup.html"
},
"permissions": [
"https://*.hulu.com/*",
@@ -13,43 +16,20 @@
"https://*.disneyplus.com/*",
"https://*.youtube.com/*",
"https://play.hbonow.com/*",
"https://play.hbomax.com/*",
"http://localhost/*"
"https://play.hbomax.com/*"
],
"content_security_policy": "script-src 'self' https://www.gstatic.com/ https://*.firebaseio.com https://www.googleapis.com; object-src 'self'",
"content_scripts": [
{
"matches": ["https://*.hulu.com/*"],
"run_at": "document_idle",
"js": ["/static/js/content.js"],
"css": ["/static/css/app.css"]
},
{
"matches": ["https://*.netflix.com/*"],
"run_at": "document_idle",
"js": ["/static/js/content.js"],
"css": ["/static/css/app.css"]
},
{
"matches": ["https://*.amazon.com/*"],
"run_at": "document_idle",
"js": ["/static/js/content.js"],
"css": ["/static/css/app.css"]
},
{
"matches": ["https://*.disneyplus.com/*"],
"run_at": "document_idle",
"js": ["/static/js/content.js"],
"css": ["/static/css/app.css"]
},
{
"matches": ["https://*.youtube.com/*"],
"run_at": "document_idle",
"js": ["/static/js/content.js"],
"css": ["/static/css/app.css"]
},
{
"matches": ["https://play.hbonow.com/*", "https://play.hbomax.com/*"],
"matches": [
"https://*.hulu.com/*",
"https://*.netflix.com/*",
"https://*.amazon.com/*",
"https://*.disneyplus.com/*",
"https://*.youtube.com/*",
"https://play.hbonow.com/*",
"https://play.hbomax.com/*"
],
"run_at": "document_idle",
"js": ["/static/js/content.js"],
"css": ["/static/css/app.css"]
+4 -47
View File
@@ -1,54 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv="Content-Security-Policy"
content="default-src *; style-src 'self' https://* 'unsafe-inline'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval'"
/>
<style>
html {
height: fit-content;
width: fit-content;
}
body {
margin: 0;
min-width: 200px;
background-color: rgba(46, 46, 46, 1);
height: fit-content;
}
a:hover {
filter: drop-shadow(0 0 10px black);
}
a {
border-radius: 13px;
font-family: sans-serif;
font-weight: 500;
display: block;
user-select: none;
color: black;
text-decoration: none;
padding: 5px 10px;
text-align: center;
margin: 10px 10px;
}
a:nth-child(1) {
background-color: rgb(23, 245, 160);
}
a:nth-child(2) {
background-color: rgb(235, 77, 77);
}
a:nth-child(3) {
background-color: cornflowerblue;
}
</style>
<style></style>
</head>
<body>
<script src="https://www.gstatic.com/firebasejs/7.14.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.1/firebase-firestore.js"></script>
<script src="background.js"></script>
<a target="_blank" href="https://www.hulu.com/">Hulu</a>
<a target="_blank" href="https://www.netflix.com/browse">Netflix</a>
<a target="_blank" href="https://www.amazon.com/gp/video/storefront">Prime Video</a>
<a>Show tips</a>
<a>Give Feedback</a>
<a>Support Watch Party</a>
</body>
</html>