mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
821bbc969b | ||
|
|
e20011ce08 | ||
|
|
e30bccd2b7 | ||
|
|
5b62e76a63 | ||
|
|
15c73d7940 | ||
|
|
36f0fccd9c | ||
|
|
d4544a7c47 |
@@ -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",
|
||||
|
||||
@@ -352,6 +352,10 @@
|
||||
filter: brightness(80%);
|
||||
}
|
||||
|
||||
.segmentSummary {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.submitButton {
|
||||
background-color:#ec1c1c;
|
||||
-moz-border-radius:28px;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user