mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-13 06:57:09 +03:00
Disable show info message if chapter enabled
This commit is contained in:
@@ -951,21 +951,23 @@ async function sponsorsLookup(keepOldSubmissions = true) {
|
|||||||
|
|
||||||
if (!showChapterMessage
|
if (!showChapterMessage
|
||||||
&& Config.config.showChapterInfoMessage
|
&& Config.config.showChapterInfoMessage
|
||||||
&& Config.config.payments.freeAccess
|
&& Config.config.payments.freeAccess) {
|
||||||
&& !utils.getCategorySelection("chapter")) {
|
|
||||||
Config.config.showChapterInfoMessage = false;
|
Config.config.showChapterInfoMessage = false;
|
||||||
const prependElement = document.querySelector(".ytp-chrome-bottom") as HTMLElement;
|
|
||||||
if (prependElement) {
|
if (!utils.getCategorySelection("chapter")) {
|
||||||
Config.config.showChapterInfoMessage = false;
|
const prependElement = document.querySelector(".ytp-chrome-bottom") as HTMLElement;
|
||||||
new Tooltip({
|
if (prependElement) {
|
||||||
text: chrome.i18n.getMessage("chapterNewFeature2"),
|
Config.config.showChapterInfoMessage = false;
|
||||||
linkOnClick: () => void chrome.runtime.sendMessage({ "message": "openConfig" }),
|
new Tooltip({
|
||||||
referenceNode: prependElement.parentElement,
|
text: chrome.i18n.getMessage("chapterNewFeature2"),
|
||||||
prependElement,
|
linkOnClick: () => void chrome.runtime.sendMessage({ "message": "openConfig" }),
|
||||||
timeout: 1500,
|
referenceNode: prependElement.parentElement,
|
||||||
leftOffset: "20px",
|
prependElement,
|
||||||
positionRealtive: false
|
timeout: 1500,
|
||||||
});
|
leftOffset: "20px",
|
||||||
|
positionRealtive: false
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user