Skip to content

Commit 5a6a152

Browse files
committed
improve: [ads] Remove social bar & native ads
These ads affect user experience and gets in the way of user when scrolling on small screens.
1 parent 5e279b6 commit 5a6a152

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

exampleSite/assets/scripts/ads.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// ad locations in page
22
const postHeader = document.querySelector(".post-header");
3-
const postFooter = document.querySelector(".post-footer");
43

54
// media queries
65
const phoneQuery = getComputedStyle(document.body).getPropertyValue(
@@ -25,10 +24,6 @@ const adBannerLeaderConfMobile = {
2524
params: {},
2625
};
2726

28-
const adNativeBanner = document.createElement("div");
29-
adNativeBanner.id = "container-9a0b7e3f5ef184780fa822e1002f7dbe";
30-
postFooter.append(getAdBlock(adNativeBanner, "native--banner"));
31-
3227
function getAdBannerLeaderDevice(adDevice, adConf) {
3328
const atOptionsScript = document.createElement("script");
3429
atOptionsScript.type = "text/javascript";

exampleSite/layouts/partials/extend_footer.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@
1212
{{- $bundle = $bundle | resources.Minify -}}
1313
{{- end -}}
1414
<script type="text/javascript" src="{{ $bundle.RelPermalink }}"></script>
15-
<script type="text/javascript" src="//pl20220116.highcpmrevenuegate.com/7f/c4/72/7fc4729b41e6def7678efe899c1db986.js"></script>
16-
<script async="async" data-cfasync="false" src="//pl20260188.highcpmrevenuegate.com/9a0b7e3f5ef184780fa822e1002f7dbe/invoke.js"></script>
1715
{{- end -}}

0 commit comments

Comments
 (0)