← back to Whatsmystyle
AdSense: loader + ads.txt (ca-pub-5278231299883833) — prep, not deployed
1bf73f3fd23fa4a5b665ce64d1efe8ae461ec0fd · 2026-08-04 16:52:34 -0700 · Steve Abrams
Files touched
M public/brands.htmlM public/index.htmlM public/privacy-policy.htmlM public/share-favorites.htmlM public/share-recs.htmlM server.js
Diff
commit 1bf73f3fd23fa4a5b665ce64d1efe8ae461ec0fd
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Aug 4 16:52:34 2026 -0700
AdSense: loader + ads.txt (ca-pub-5278231299883833) — prep, not deployed
---
public/brands.html | 1 +
public/index.html | 1 +
public/privacy-policy.html | 1 +
public/share-favorites.html | 1 +
public/share-recs.html | 1 +
server.js | 3 +++
6 files changed, 8 insertions(+)
diff --git a/public/brands.html b/public/brands.html
index b49afcd..27db590 100644
--- a/public/brands.html
+++ b/public/brands.html
@@ -58,6 +58,7 @@
.empty { color: #999; font-size: 14px; padding: 24px 0; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
</style>
+<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833" crossorigin="anonymous"></script>
</head>
<body>
<div class="nav"><a href="/">← back to app</a></div>
diff --git a/public/index.html b/public/index.html
index 95e21b5..918225f 100644
--- a/public/index.html
+++ b/public/index.html
@@ -7,6 +7,7 @@
<meta name="description" content="The optometrist for your closet. Show me two outfits, I'll tell you what's you.">
<link rel="stylesheet" href="/css/app.css">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
+<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833" crossorigin="anonymous"></script>
</head>
<body>
<a href="#main" class="skip-link">Skip to main content</a>
diff --git a/public/privacy-policy.html b/public/privacy-policy.html
index 08d6f46..aaac601 100644
--- a/public/privacy-policy.html
+++ b/public/privacy-policy.html
@@ -17,6 +17,7 @@
.back:hover { color: #1d1d1f; }
code { background: #efe9dd; padding: 2px 6px; border-radius: 6px; font-size: 13px; }
</style>
+<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833" crossorigin="anonymous"></script>
</head>
<body>
<a class="back" href="/">← back to app</a>
diff --git a/public/share-favorites.html b/public/share-favorites.html
index 9538037..f71b211 100644
--- a/public/share-favorites.html
+++ b/public/share-favorites.html
@@ -13,6 +13,7 @@
.cta { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e6e1d8; font-size: 14px; }
.cta a { color: #1d1d1f; }
</style>
+<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833" crossorigin="anonymous"></script>
</head>
<body>
<h1 id="title">Shared favorites</h1>
diff --git a/public/share-recs.html b/public/share-recs.html
index 1c68c73..8e701ae 100644
--- a/public/share-recs.html
+++ b/public/share-recs.html
@@ -19,6 +19,7 @@
.cta a { color: #1d1d1f; }
.empty { color: #999; padding: 24px 0; text-align: center; }
</style>
+<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833" crossorigin="anonymous"></script>
</head>
<body>
<h1 id="title">Shared list</h1>
diff --git a/server.js b/server.js
index dba6bd7..1487a7a 100644
--- a/server.js
+++ b/server.js
@@ -1211,6 +1211,9 @@ app.get('/admin-config', (req, res) => {
res.sendFile(path.join(__dirname, 'public', 'admin-config.html'));
});
+// ads.txt — authorizes Google AdSense to serve ads on this domain.
+app.get('/ads.txt', (_q, res) => res.type('text/plain').send('google.com, pub-5278231299883833, DIRECT, f08c47fec0942fa0\n'));
+
// Privacy page (tick 15.8). Public — no admin gate.
app.get('/privacy-policy', (_req, res) => {
res.sendFile(path.join(__dirname, 'public', 'privacy-policy.html'));
← b2ef23f auto-save: 2026-07-30T15:49:17 (2 files) — data/whatsmystyle
·
back to Whatsmystyle
·
Revert "AdSense: loader + ads.txt (ca-pub-5278231299883833) eb52467 →