From 7e8a4bf31cdfe3358dd2da2d3ab25290614a2533 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sat, 9 Sep 2023 10:53:21 -0700 Subject: [PATCH] dynamically load ad script by hostname --- _includes/head.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_includes/head.html b/_includes/head.html index c3fd886..34e0de7 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -25,6 +25,10 @@ } if (location.hostname.endsWith("shotcut.org")) { loadScript("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1305424236533187", true); + } else if (location.hostname.endsWith("shotcut.com")) { + loadScript("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1305424236533187", true); + } else if (location.hostname.endsWith("shotcutapp.com")) { + loadScript("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1305424236533187", true); }