Add link in options to dearrow

This commit is contained in:
Ajay
2023-06-21 19:55:17 -04:00
parent 6b2b26faf5
commit d4f668559c
7 changed files with 106 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ interface SBConfig {
showDonationLink: boolean;
showPopupDonationCount: number;
showUpsells: boolean;
showNewFeaturePopups: boolean;
donateClicked: number;
autoHideInfoButton: boolean;
autoSkipOnMusicVideos: boolean;
@@ -292,6 +293,7 @@ const syncDefaults = {
showDonationLink: true,
showPopupDonationCount: 0,
showUpsells: true,
showNewFeaturePopups: true,
donateClicked: 0,
autoHideInfoButton: true,
autoSkipOnMusicVideos: false,

View File

@@ -68,6 +68,12 @@ async function init() {
donate.classList.add("hidden");
}
// DeArrow promotion
if (Config.config.showNewFeaturePopups && Config.config.showUpsells) {
const deArrowPromotion = document.getElementById("deArrowPromotion");
deArrowPromotion.classList.remove("hidden");
}
// Set all of the toggle options to the correct option
const optionsContainer = document.getElementById("options");
const optionsElements = optionsContainer.querySelectorAll("*");