mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 12:37:05 +03:00
debug
This commit is contained in:
27
content.js
27
content.js
@@ -71,18 +71,8 @@ var sponsorTimesSubmitting = [];
|
|||||||
var popupInitialised = false;
|
var popupInitialised = false;
|
||||||
|
|
||||||
//should skips happen at all
|
//should skips happen at all
|
||||||
var disableSkipping = false;
|
var disableSkipping = (SB.config.disableSkipping !== undefined);
|
||||||
let disableSkippingStorage = SB.config.disableSkipping;
|
var disableAutoSkip = (SB.config.disableSkipping !== undefined);
|
||||||
if (disableSkippingStorage != undefined) {
|
|
||||||
disableSkipping = disableSkippingStorage;
|
|
||||||
}
|
|
||||||
|
|
||||||
//should skips be manual
|
|
||||||
var disableAutoSkip = false;
|
|
||||||
let disableAutoSkipStorage = SB.config.disableAutoSkip;
|
|
||||||
if (disableAutoSkipStorage != undefined) {
|
|
||||||
disableAutoSkip = disableAutoSkipStorage;
|
|
||||||
}
|
|
||||||
|
|
||||||
//should view counts be tracked
|
//should view counts be tracked
|
||||||
var trackViewCount = false;
|
var trackViewCount = false;
|
||||||
@@ -97,16 +87,17 @@ if (trackViewCountStorage != undefined) {
|
|||||||
//happens when the user click's the "Don't show notice again" button
|
//happens when the user click's the "Don't show notice again" button
|
||||||
//option renamed when new notice was made
|
//option renamed when new notice was made
|
||||||
var dontShowNotice = false;
|
var dontShowNotice = false;
|
||||||
let dontShowNoticeAgain = SB.config.dontShowNotice;
|
|
||||||
if (dontShowNoticeAgain != undefined) {
|
dontShowNoticeAgain2 = SB.config.dontShowNoticeAgain;
|
||||||
dontShowNotice = dontShowNoticeAgain;
|
|
||||||
|
if (dontShowNoticeAgain2 != undefined) {
|
||||||
|
dontShowNotice = dontShowNoticeAgain2;
|
||||||
}
|
}
|
||||||
|
|
||||||
//load the legacy option to hide the notice
|
//load the legacy option to hide the notice
|
||||||
var dontShowNoticeOld = false;
|
var dontShowNoticeOld = false;
|
||||||
let dontShowNoticeAgain = SB.config.dontShowNoticeAgain;
|
if (dontShowNoticeAgain2 != undefined) {
|
||||||
if (dontShowNoticeAgain != undefined) {
|
dontShowNoticeOld = dontShowNoticeAgain2;
|
||||||
dontShowNoticeOld = dontShowNoticeAgain;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//get messages from the background script and the popup
|
//get messages from the background script and the popup
|
||||||
|
|||||||
Reference in New Issue
Block a user