[object Object]

← back to Beverlyhillsvideos App

app: suppress in-app AdSense in WebView (clean no-tracking 4+ review path for v1)

ea85595b865a77767afd31363bbeccd63482e241 · 2026-08-06 08:24:34 -0700 · Steve Abrams

Files touched

Diff

commit ea85595b865a77767afd31363bbeccd63482e241
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Aug 6 08:24:34 2026 -0700

    app: suppress in-app AdSense in WebView (clean no-tracking 4+ review path for v1)
---
 components/BHVWebView.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/components/BHVWebView.tsx b/components/BHVWebView.tsx
index 372dc69..c925500 100644
--- a/components/BHVWebView.tsx
+++ b/components/BHVWebView.tsx
@@ -126,6 +126,12 @@ export default function BHVWebView({ initialUrl, shareTitle }: Props) {
         decelerationRate="normal"
         originWhitelist={['https://*', 'http://*', 'tel:*', 'mailto:*']}
         contentInsetAdjustmentBehavior="automatic"
+        injectedJavaScriptBeforeContentLoaded={`(function(){
+          var s=document.createElement('style');
+          s.innerHTML='.adsbygoogle,ins.adsbygoogle,.ad-wrap{display:none!important}';
+          (document.head||document.documentElement).appendChild(s);
+          window.adsbygoogle=window.adsbygoogle||[]; window.adsbygoogle.push=function(){};
+        })(); true;`}
       />
       {loading && (
         <View style={styles.loadingOverlay} pointerEvents="none">

← 3521bf4 initial scaffold  ·  back to Beverlyhillsvideos App  ·  app: link EAS project (@agentabrams/beverlyhillsvideos), ads a293561 →