Added logo and changed up colours to support logo.

Logo by @munadikieh
This commit is contained in:
Ajay Ramachandran
2019-07-11 16:15:47 -04:00
parent 07657835ff
commit 370a1d1fb2
15 changed files with 48 additions and 15 deletions

3
.gitignore vendored
View File

@@ -1 +1,2 @@
content-config.js content-config.js
ignored

View File

@@ -1,3 +1,6 @@
![Logo](icons/LogoSponsorBlocker256px.png)
<sub>Logo by @munadikieh</sub>
# SponsorBlocker # SponsorBlocker
SponsorBlocker is an extension that will skip over sponsored segments of YouTube videos. SponsorBlocker is a crowdsourced browser extension that let's anyone submit the start and end time's of sponsored segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment. SponsorBlocker is an extension that will skip over sponsored segments of YouTube videos. SponsorBlocker is a crowdsourced browser extension that let's anyone submit the start and end time's of sponsored segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment.

BIN
SponsorBlocker144px.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -69,7 +69,7 @@ function videoIDChange(currentVideoID) {
type: "basic", type: "basic",
title: "Do you want to submit the sponsor times for watch?v=" + previousVideoID + "?", title: "Do you want to submit the sponsor times for watch?v=" + previousVideoID + "?",
message: "You seem to have left some sponsor times unsubmitted. Go back to that page to submit them (they are not deleted).", message: "You seem to have left some sponsor times unsubmitted. Go back to that page to submit them (they are not deleted).",
iconUrl: "icon.png" iconUrl: "./icons/LogoSponsorBlocker256px.png"
}); });
} }

View File

@@ -2,10 +2,18 @@
font-family: 'Source Sans Pro', sans-serif; font-family: 'Source Sans Pro', sans-serif;
} }
#sponsorSkipLogo {
height: 64px;
position: absolute;
top: 0;
bottom: 0;
margin: auto;
}
#sponsorSkipNotice { #sponsorSkipNotice {
min-height: 120px; min-height: 120px;
min-width: 400px; min-width: 400px;
background-color: rgba(217, 255, 220, 0.8); background-color: rgba(255, 217, 217, 0.8);
position: absolute; position: absolute;
z-index: 1; z-index: 1;
} }
@@ -19,24 +27,24 @@
} }
.sponsorSkipButton { .sponsorSkipButton {
background-color:#44c767; background-color:#ec1c1c;
-moz-border-radius:28px; -moz-border-radius:28px;
-webkit-border-radius:28px; -webkit-border-radius:28px;
border-radius:28px; border-radius:28px;
border:1px solid #18ab29; border:1px solid #d31919;
display:inline-block; display:inline-block;
cursor:pointer; cursor:pointer;
color:#ffffff; color:#ffffff;
font-size:14px; font-size:14px;
padding:4px 15px; padding:4px 15px;
text-decoration:none; text-decoration:none;
text-shadow:0px 0px 0px #2f6627; text-shadow:0px 0px 0px #662727;
margin-top: 5px; margin-top: 5px;
margin-right: 15px; margin-right: 15px;
} }
.sponsorSkipButton:hover { .sponsorSkipButton:hover {
background-color:#5cbf2a; background-color:#bf2a2a;
} }
.sponsorSkipButton:active { .sponsorSkipButton:active {
position:relative; position:relative;

View File

@@ -135,6 +135,10 @@ function openSkipNotice(){
noticeElement.id = "sponsorSkipNotice"; noticeElement.id = "sponsorSkipNotice";
noticeElement.className = "sponsorSkipObject"; noticeElement.className = "sponsorSkipObject";
var logoElement = document.createElement("img");
logoElement.id = "sponsorSkipLogo";
logoElement.src = chrome.extension.getURL("icons/LogoSponsorBlocker256px.png");
var noticeMessage = document.createElement("p"); var noticeMessage = document.createElement("p");
noticeMessage.id = "sponsorSkipMessage"; noticeMessage.id = "sponsorSkipMessage";
noticeMessage.className = "sponsorSkipObject"; noticeMessage.className = "sponsorSkipObject";
@@ -167,6 +171,7 @@ function openSkipNotice(){
buttonContainer.appendChild(document.createElement("br")); buttonContainer.appendChild(document.createElement("br"));
buttonContainer.appendChild(dontShowAgainButton); buttonContainer.appendChild(dontShowAgainButton);
noticeElement.appendChild(logoElement);
noticeElement.appendChild(noticeMessage); noticeElement.appendChild(noticeMessage);
noticeElement.appendChild(buttonContainer); noticeElement.appendChild(buttonContainer);

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -17,6 +17,9 @@
] ]
} }
], ],
"web_accessible_resources": [
"icons/LogoSponsorBlocker256px.png"
],
"permissions": [ "permissions": [
"tabs", "tabs",
"storage", "storage",
@@ -29,5 +32,12 @@
"background": { "background": {
"scripts":["background.js"] "scripts":["background.js"]
}, },
"icons": {
"16": "icons/IconSponsorBlocker16px.png",
"32": "icons/IconSponsorBlocker32px.png",
"64": "icons/LogoSponsorBlocker64px.png",
"128": "icons/LogoSponsorBlocker128px.png",
"256": "icons/LogoSponsorBlocker256px.png"
},
"manifest_version": 2 "manifest_version": 2
} }

View File

@@ -4,28 +4,32 @@
font-family: 'Source Sans Pro', sans-serif; font-family: 'Source Sans Pro', sans-serif;
} }
h1 {
margin-top: 0px;
}
body { body {
font-size: 14px; font-size: 14px;
width: 300px; width: 300px;
background-color: #d9ffdc; background-color: #ffd9d9;
} }
.greenButton { .greenButton {
background-color:#44c767; background-color:#ec1c1c;
-moz-border-radius:28px; -moz-border-radius:28px;
-webkit-border-radius:28px; -webkit-border-radius:28px;
border-radius:28px; border-radius:28px;
border:1px solid #18ab29; border:1px solid #d31919;
display:inline-block; display:inline-block;
cursor:pointer; cursor:pointer;
color:#ffffff; color:#ffffff;
font-size:16px; font-size:16px;
padding:8px 37px; padding:8px 37px;
text-decoration:none; text-decoration:none;
text-shadow:0px 0px 0px #2f6627; text-shadow:0px 0px 0px #662727;
} }
.greenButton:hover { .greenButton:hover {
background-color:#5cbf2a; background-color:#bf2a2a;
} }
.greenButton:active { .greenButton:active {
position:relative; position:relative;
@@ -58,11 +62,11 @@ body {
} }
.smallButton { .smallButton {
background-color:#2dabf9; background-color:#f9902d;
-moz-border-radius:3px; -moz-border-radius:3px;
-webkit-border-radius:3px; -webkit-border-radius:3px;
border-radius:3px; border-radius:3px;
border:1px solid #2dabf9; border:1px solid #f9a72d;
display:inline-block; display:inline-block;
cursor:pointer; cursor:pointer;
color:#ffffff; color:#ffffff;
@@ -71,7 +75,7 @@ body {
text-decoration:none; text-decoration:none;
} }
.smallButton:hover { .smallButton:hover {
background-color:#0688fa; background-color:#fa9806;
} }
.smallButton:active { .smallButton:active {
position:relative; position:relative;

View File

@@ -6,6 +6,8 @@
<center> <center>
<div id="app"> <div id="app">
<img src="icons/LogoSponsorBlocker256px.png" height="64px"/>
<h1>SponsorBlock</h1> <h1>SponsorBlock</h1>
<!-- Loading text --> <!-- Loading text -->