mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
@@ -67,7 +67,7 @@ export function getExistingChapters(currentVideoID: VideoID, duration: number):
|
|||||||
const timeElement = link.querySelector("#time") as HTMLElement;
|
const timeElement = link.querySelector("#time") as HTMLElement;
|
||||||
const description = link.querySelector("#details h4") as HTMLElement;
|
const description = link.querySelector("#details h4") as HTMLElement;
|
||||||
if (timeElement && description?.innerText?.length > 0 && link.getAttribute("href")?.includes(currentVideoID)) {
|
if (timeElement && description?.innerText?.length > 0 && link.getAttribute("href")?.includes(currentVideoID)) {
|
||||||
const time = getFormattedTimeToSeconds(timeElement.innerText.replace(".", ":"));
|
const time = getFormattedTimeToSeconds(timeElement.innerText.replace(/\./g, ":"));
|
||||||
if (time === null) return [];
|
if (time === null) return [];
|
||||||
|
|
||||||
if (lastSegment) {
|
if (lastSegment) {
|
||||||
|
|||||||
Reference in New Issue
Block a user