Skip to content

Commit af39951

Browse files
committed
gita: remove new ads
1 parent 9531cc4 commit af39951

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

holy-bhagavad-gita.org/index.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ b.style.backgroundImage = "none";
1919
}
2020
});
2121

22-
/**
23-
* remove superflous footer text
24-
*/
25-
const copy = document.querySelector(".screen.footer #copyright:nth-of-type(3)");
26-
if (copy) {
27-
copy.remove();
28-
}
29-
3022
/**
3123
* automatically move to next verse
3224
* after audio ends
@@ -55,3 +47,11 @@ if (
5547
) {
5648
document.querySelector("aside").remove();
5749
}
50+
51+
function removeAd(selector) {
52+
const ad = document.querySelector(selector);
53+
if (ad) ad.remove();
54+
}
55+
56+
removeAd("img[src='/public/images/upi_bg.png']");
57+
removeAd(".copyrightwarning");

0 commit comments

Comments
 (0)