fix hide user ads
This commit is contained in:
parent
b21af09301
commit
121676bda8
1 changed files with 8 additions and 5 deletions
|
|
@ -113,18 +113,21 @@ let Theme = ``;
|
|||
}
|
||||
});
|
||||
|
||||
if (Settings.HideUserAdsOn === true) {
|
||||
if (Settings.HideUserAdsOn.Banners === true) {
|
||||
if (Settings.HideUserAds.Enabled === true) {
|
||||
console.log('enabled')
|
||||
if (Settings.HideUserAds.Banners === true) {
|
||||
console.log('banner')
|
||||
Theme += `
|
||||
div[style^="max-width: 728px;"]:has(.text-center a[href^="/ads/"]) {
|
||||
div[style^="max-width: 728px;"]:has(a[href^="/ads"]) {
|
||||
display: none;
|
||||
}
|
||||
`
|
||||
}
|
||||
|
||||
if (Settings.HideUserAdsOn.Rectangles === true) {
|
||||
if (Settings.HideUserAds.Rectangles === true) {
|
||||
console.log('rect')
|
||||
Theme += `
|
||||
div[style^="max-width: 300px;"]:has(.text-center a[href^="/ads/"]) {
|
||||
div[style^="max-width: 300px;"]:has(a[href^="/ads"]) {
|
||||
display: none;
|
||||
}
|
||||
`
|
||||
|
|
|
|||
Reference in a new issue