From 72f4eb664fc99ba2ff1b5df5d556eda29f95fcf8 Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 15 Nov 2026 06:23:24 -0600 Subject: [PATCH] PolHunter mission prep (every rebuilt network site gets one, Marty 2026-11-14): the front page's How it works steps carry the PolHunter embed (data-selector ".steps .step", 3 slots); CSP admits https://polhunter.com in script-src and connect-src only. Hunters never count: a page with a ?ph= / #ph= token (or PolHunter's tab token in sessionStorage) asks /api/wire with hunt=1, and a visit from polhunter.com is treated the same, so no visit ticket is issued (no ad views, no Boost delivery, no verified-click token); daily counter huntVisits. Smoke 186/186. Co-Authored-By: Claude Opus 5.5 --- public/admin.html | 2 +- public/assets/common.js | 4 +++- public/boost.html | 2 +- public/contract.html | 2 +- public/disclaimer.html | 2 +- public/index.html | 3 ++- public/ledger.html | 2 +- public/member.html | 2 +- public/my.html | 2 +- public/privacy.html | 2 +- public/promote.html | 2 +- public/terms.html | 2 +- qa/smoke.mjs | 10 ++++++++++ server.js | 11 ++++++++--- tools/pages.mjs | 3 ++- 15 files changed, 35 insertions(+), 16 deletions(-) diff --git a/public/admin.html b/public/admin.html index 114c7e7..26bd578 100644 --- a/public/admin.html +++ b/public/admin.html @@ -35,7 +35,7 @@

Old site links

JSON file {"oldrefs": {"old username": "network username"}} replaces the whole map.

- + diff --git a/public/assets/common.js b/public/assets/common.js index be23cb2..61ffd05 100644 --- a/public/assets/common.js +++ b/public/assets/common.js @@ -49,7 +49,9 @@ window.VAB = (function () { // visit is sent once, and from then on clicks carry the verified token async function wire(page, u) { const src = document.referrer || ''; - const d = await getJSON('/api/wire?page=' + encodeURIComponent(page) + (u ? '&u=' + encodeURIComponent(u) : '') + (src ? '&src=' + encodeURIComponent(src) : '')); + // a PolHunter hunter (?ph= / #ph= token, or the token PolHunter's embed keeps for this tab) is paid to visit: never a verified view + let hunt = /[?&#]ph=/.test(location.search + location.hash); try { hunt = hunt || !!sessionStorage.getItem('ph.token'); } catch (e) {} + const d = await getJSON('/api/wire?page=' + encodeURIComponent(page) + (u ? '&u=' + encodeURIComponent(u) : '') + (src ? '&src=' + encodeURIComponent(src) : '') + (hunt ? '&hunt=1' : '')); renderTicker(d.ticker || []); if (d.ticket) { const need = (d.seconds || 6) * 1000; let seen = 0, last = Date.now(), sent = false; diff --git a/public/boost.html b/public/boost.html index 820ca29..d91942c 100644 --- a/public/boost.html +++ b/public/boost.html @@ -67,7 +67,7 @@ - + diff --git a/public/contract.html b/public/contract.html index 2982dbf..d0d020b 100644 --- a/public/contract.html +++ b/public/contract.html @@ -44,7 +44,7 @@ - + diff --git a/public/disclaimer.html b/public/disclaimer.html index 4226918..970fabc 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -33,7 +33,7 @@

Prices and taxes

Boosts are priced in US dollars and paid in POL, whose price moves. Anything you receive is in POL and its dollar value can change. You are responsible for any taxes on what you receive where you live.

Who to ask

TrustClickz, 615 Green Valley Drive, Moody, AL 35004. Network support.

- + diff --git a/public/index.html b/public/index.html index ce078d5..d33def5 100644 --- a/public/index.html +++ b/public/index.html @@ -74,6 +74,7 @@
03Your ad spreads downEveryone you bring in shows your ad on their page, five levels deep.
+
BOOST · ONE-TIME, NEVER A SUBSCRIPTION

$5 = 500 guaranteed network views

Plus a starred spot on the ticker. Each Boost pays 10% to five levels of your sponsor line in the same transaction, and 50% to the company.

@@ -94,7 +95,7 @@

A Boost buys advertising, not income. Nothing is promised.

- + diff --git a/public/ledger.html b/public/ledger.html index c11f308..384e8c4 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -34,7 +34,7 @@

Levels follow the buyer's sponsor line. Someone who has not bought a Boost is passed over and their share goes up to the next person who has. Advertising, not income. Nothing is promised.

- + diff --git a/public/member.html b/public/member.html index 2a30093..f20205b 100644 --- a/public/member.html +++ b/public/member.html @@ -42,7 +42,7 @@

Advertising, not income. Nothing is promised.

- + diff --git a/public/my.html b/public/my.html index b3876bc..f5c60b0 100644 --- a/public/my.html +++ b/public/my.html @@ -84,7 +84,7 @@
- + diff --git a/public/privacy.html b/public/privacy.html index e02c46f..46e1b5a 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -34,7 +34,7 @@

Your choices

You can edit your ad at any time, or ask us to remove it and your account here. Records on the blockchain cannot be removed by anyone.

Contact

Questions, problems or a request about your data: network support, or write to TrustClickz, 615 Green Valley Drive, Moody, AL 35004.

- + diff --git a/public/promote.html b/public/promote.html index 206a8cf..6636cf2 100644 --- a/public/promote.html +++ b/public/promote.html @@ -33,7 +33,7 @@

Loading the kit...

- + diff --git a/public/terms.html b/public/terms.html index be03c6a..13c9a24 100644 --- a/public/terms.html +++ b/public/terms.html @@ -42,7 +42,7 @@

Limits

As far as the law allows, we are not responsible for losses caused by the blockchain, your wallet, the price of POL, third-party websites in ads, or events outside our control, and our total responsibility to you is limited to what you paid for the purchase in question. These terms are governed by the laws of the State of Alabama, USA.

Contact

Questions, problems or a request about your data: network support, or write to TrustClickz, 615 Green Valley Drive, Moody, AL 35004.

- + diff --git a/qa/smoke.mjs b/qa/smoke.mjs index 0b7b55d..2e0c18f 100644 --- a/qa/smoke.mjs +++ b/qa/smoke.mjs @@ -434,6 +434,16 @@ const mtop = await anon.json('/api/wire?page=member&u=topdog'); ok(q2.ok && q2.linkspin === 'no-account' && m2.linkspin.state === 'no-account', 'no LinkSpin account for the username: the ad works with its own link', m2.linkspin); } { const s2 = await anon.json('/api/admin/status', undefined, { 'x-admin-token': ADMIN }); ok(s2.linkspin && s2.linkspin.on === true && s2.linkspin.ensured >= 3 && s2.linkspin.failed >= 1 && !JSON.stringify(s2.linkspin).includes(SSO_SECRET), 'admin status: LinkSpin tracking counters, no secret', s2.linkspin); } + console.log('14c. PolHunter mission (front page, How it works)'); + { const hr = await anon.req('/'); const hh = await hr.text(); const csp = hr.headers.get('content-security-policy') || ''; + ok(/
BOOST · ONE-TIME, NEVER A SUBSCRIPTION

$${F.boostUsd} = ${F.views} guaranteed network views

Plus a starred spot on the ticker. Each Boost pays 10% to five levels of your sponsor line in the same transaction, and 50% to the company.