Compare commits

..

7 Commits
4.2 ... 4.2.1

Author SHA1 Message Date
Ajay
821bbc969b bump version 2022-03-17 22:19:33 -04:00
Ajay
e20011ce08 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock 2022-03-17 22:19:22 -04:00
Ajay
e30bccd2b7 Don't use virtual time on firefox 2022-03-17 22:19:21 -04:00
Ajay Ramachandran
5b62e76a63 Merge pull request #1234 from molniya0207/patch-1
Fix guidelines link
2022-03-17 12:29:11 -04:00
Stopper
15c73d7940 Fix guidelines link 2022-03-17 22:24:00 +06:00
Ajay
36f0fccd9c Force css 2022-03-17 00:29:33 -04:00
Ajay
d4544a7c47 Fixes for safari 2022-03-17 00:27:36 -04:00
4 changed files with 8 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "__MSG_fullName__",
"short_name": "SponsorBlock",
"version": "4.2",
"version": "4.2.1",
"default_locale": "en",
"description": "__MSG_Description__",
"homepage_url": "https://sponsor.ajay.app",

View File

@@ -352,6 +352,10 @@
filter: brightness(80%);
}
.segmentSummary {
outline: none !important;
}
.submitButton {
background-color:#ec1c1c;
-moz-border-radius:28px;

View File

@@ -95,7 +95,7 @@ class SubmissionNoticeComponent extends React.Component<SubmissionNoticeProps, S
{/* Guidelines button */}
<button className="sponsorSkipObject sponsorSkipNoticeButton sponsorSkipNoticeRightButton"
onClick={() => window.open("https://wiki.sponsor.ajay.app/index.php/Guidelines")}>
onClick={() => window.open("https://wiki.sponsor.ajay.app/w/Guidelines")}>
{chrome.i18n.getMessage(Config.config.submissionCountSinceCategories > 3 ? "guidelines" : "readTheGuidelines")}
</button>

View File

@@ -458,7 +458,7 @@ function startSponsorSchedule(includeIntersectingSegments = false, currentTime?:
if (currentTime === undefined || currentTime === null) {
const virtualTime = lastKnownVideoTime.videoTime ?
(performance.now() - lastKnownVideoTime.preciseTime) / 1000 + lastKnownVideoTime.videoTime : null;
if (virtualTime && Math.abs(virtualTime - video.currentTime) < 0.6){
if (!utils.isFirefox() && !isSafari() && virtualTime && Math.abs(virtualTime - video.currentTime) < 0.6){
currentTime = virtualTime;
} else {
currentTime = video.currentTime;
@@ -539,7 +539,7 @@ function startSponsorSchedule(includeIntersectingSegments = false, currentTime?:
skippingFunction();
} else {
const delayTime = timeUntilSponsor * 1000 * (1 / video.playbackRate);
if (delayTime < 300 && !isSafari()) {
if (delayTime < 300) {
// For Firefox, use interval instead of timeout near the end to combat imprecise video time
const startIntervalTime = performance.now();
const startVideoTime = Math.max(currentTime, video.currentTime);