mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
Remove unnecessary change
This commit is contained in:
@@ -1907,10 +1907,8 @@ function shouldAutoSkip(segment: SponsorTime): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function shouldSkip(segment: SponsorTime): boolean {
|
function shouldSkip(segment: SponsorTime): boolean {
|
||||||
if (segment.actionType === ActionType.Full) {
|
return (segment.actionType !== ActionType.Full
|
||||||
return false;
|
&& segment.source !== SponsorSourceType.YouTube
|
||||||
}
|
|
||||||
return (segment.source !== SponsorSourceType.YouTube
|
|
||||||
&& utils.getCategorySelection(segment.category)?.option !== CategorySkipOption.ShowOverlay)
|
&& utils.getCategorySelection(segment.category)?.option !== CategorySkipOption.ShowOverlay)
|
||||||
|| (Config.config.autoSkipOnMusicVideos && sponsorTimes?.some((s) => s.category === "music_offtopic")
|
|| (Config.config.autoSkipOnMusicVideos && sponsorTimes?.some((s) => s.category === "music_offtopic")
|
||||||
&& segment.actionType === ActionType.Skip);
|
&& segment.actionType === ActionType.Skip);
|
||||||
|
|||||||
Reference in New Issue
Block a user