From a44ef626715d8ee7d5af7fe4255a3c7046af0cd5 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 19 Jul 2021 22:09:37 +0100 Subject: [PATCH] removing ad script if ads disabled --- src/js/config.js | 1 + static/index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/src/js/config.js b/src/js/config.js index db479dcbf..4403e09fb 100644 --- a/src/js/config.js +++ b/src/js/config.js @@ -1717,6 +1717,7 @@ export function apply(configObj) { ); $("#ad_account").removeClass("hidden"); } else { + $("#adScript").remove(); $(".footerads").remove(); $("#ad_left").remove(); $("#ad_right").remove(); diff --git a/static/index.html b/static/index.html index 1c6eaa278..9b62bd61b 100644 --- a/static/index.html +++ b/static/index.html @@ -84,6 +84,7 @@ type="text/javascript" data-site-id="60b78af12119122b8958910f" data-mode="scan" + id="adScript" async >