diff --git a/manifest/manifest.json b/manifest/manifest.json
index a534d61c..d3b59688 100644
--- a/manifest/manifest.json
+++ b/manifest/manifest.json
@@ -40,6 +40,8 @@
"icons/report.png",
"icons/close.png",
"icons/beep.ogg",
+ "icons/pause.svg",
+ "icons/stop.svg",
"icons/PlayerInfoIconSponsorBlocker256px.png",
"icons/PlayerDeleteIconSponsorBlocker256px.png",
"popup.html",
diff --git a/public/content.css b/public/content.css
index a9a6c6eb..611a2642 100644
--- a/public/content.css
+++ b/public/content.css
@@ -116,6 +116,10 @@
border-collapse: unset;
}
+.sponsorSkipNotice .hidden {
+ display: none;
+}
+
.sponsorSkipNoticeFadeIn {
animation: fadeIn 0.5s;
}
@@ -131,9 +135,20 @@
padding: 2px 5px;
font-size: 12px;
+ display: flex;
+ align-items: center;
+
border: 1px solid #eeeeee;
}
+.sponsorSkipNoticeTimeLeft img {
+ vertical-align: middle;
+ height: 13px;
+
+ padding-top: 7.8%;
+ padding-bottom: 7.8%;
+}
+
/* if two are very close to eachother */
.secondSkipNotice {
bottom: 250px;
@@ -141,6 +156,11 @@
transition: bottom 0.2s;
}
+.noticeLeftIcon {
+ display: flex;
+ align-items: center;
+}
+
.sponsorSkipNoticeUnskipSection {
float: left;
@@ -183,6 +203,8 @@
float: right;
margin-right: 5px;
+ display: flex;
+ align-items: center;
}
.sponsorSkipNoticeRightButton {
@@ -205,7 +227,9 @@
font-weight: bold;
color: rgb(235, 235, 235);
+ margin-top: auto;
display: inline-block;
+ margin-right: 10px;
}
.sponsorSkipInfo {
@@ -406,10 +430,6 @@ input::-webkit-inner-spin-button {
padding: 3px;
}
-.helpButton {
-
-}
-
.helpButton {
height: 25px;
cursor: pointer;
diff --git a/public/icons/pause.svg b/public/icons/pause.svg
new file mode 100644
index 00000000..81f56b48
--- /dev/null
+++ b/public/icons/pause.svg
@@ -0,0 +1,59 @@
+
+
diff --git a/public/icons/stop.svg b/public/icons/stop.svg
new file mode 100644
index 00000000..229a2148
--- /dev/null
+++ b/public/icons/stop.svg
@@ -0,0 +1,59 @@
+
+
diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx
index bbcbb2a9..16c85baa 100644
--- a/src/components/NoticeComponent.tsx
+++ b/src/components/NoticeComponent.tsx
@@ -1,5 +1,11 @@
import * as React from "react";
+enum CountdownMode {
+ Timer,
+ Paused,
+ Stopped
+}
+
export interface NoticeProps {
noticeTitle: string,
@@ -11,6 +17,10 @@ export interface NoticeProps {
videoSpeed?: () => number,
fadeIn?: boolean,
+ firstColumn?: React.ReactElement,
+ firstRow?: React.ReactElement,
+
+ smaller?: boolean,
// Callback for when this is closed
closeListener: () => void,
@@ -24,8 +34,9 @@ export interface NoticeState {
maxCountdownTime: () => number,
countdownTime: number,
- countdownText: string,
- countdownManuallyPaused: boolean,
+ countdownMode: CountdownMode,
+
+ mouseHovering: boolean;
}
class NoticeComponent extends React.Component {
@@ -59,8 +70,8 @@ class NoticeComponent extends React.Component {
//the countdown until this notice closes
countdownTime: maxCountdownTime(),
- countdownText: null,
- countdownManuallyPaused: false
+ countdownMode: CountdownMode.Timer,
+ mouseHovering: false
}
}
@@ -86,7 +97,7 @@ class NoticeComponent extends React.Component {
{/* First row */}
)
+ : ""}
{/* Downvote Options Row */}
{this.state.downvoting &&
@@ -283,6 +286,20 @@ class SkipNoticeComponent extends React.Component
+
+
+ );
+ }
+
getSubmissionChooser(): JSX.Element[] {
const elements: JSX.Element[] = [];
diff --git a/src/components/SubmissionNoticeComponent.tsx b/src/components/SubmissionNoticeComponent.tsx
index ea94bb85..4c019bdc 100644
--- a/src/components/SubmissionNoticeComponent.tsx
+++ b/src/components/SubmissionNoticeComponent.tsx
@@ -13,7 +13,6 @@ export interface SubmissionNoticeProps {
callback: () => unknown;
closeListener: () => void;
- smaller: boolean;
}
export interface SubmissionNoticeeState {
diff --git a/src/render/SkipNotice.tsx b/src/render/SkipNotice.tsx
index 91ed8dd1..5f14822e 100644
--- a/src/render/SkipNotice.tsx
+++ b/src/render/SkipNotice.tsx
@@ -62,7 +62,8 @@ class SkipNotice {
autoSkip={autoSkip}
contentContainer={contentContainer}
ref={this.skipNoticeRef}
- closeListener={() => this.close()} />,
+ closeListener={() => this.close()}
+ smaller={true} />,
this.noticeElement
);
}
diff --git a/src/render/SubmissionNotice.tsx b/src/render/SubmissionNotice.tsx
index 7b06296f..8c267854 100644
--- a/src/render/SubmissionNotice.tsx
+++ b/src/render/SubmissionNotice.tsx
@@ -47,8 +47,7 @@ class SubmissionNotice {
contentContainer={contentContainer}
callback={callback}
ref={this.noticeRef}
- closeListener={() => this.close()}
- smaller={true} />,
+ closeListener={() => this.close()} />,
this.noticeElement
);
}