Network links (Marty 2026-11-13 'yes please proceed'): every click on a link to the other site goes through /go/<peer> (InstantAdPay -> /go/linkspin, LinkSpin -> /go/iap), so a signed-in member arrives signed in; signed out it is a plain redirect. Click-time rewrite in the shared scripts (IAP common.js; LinkSpin common.js + cr-shell.js), so copied share links stay clean; data-nogo opts a link out. Browser check: path+query+hash kept, other hosts and data-nogo untouched. iap-qa member ALL PASSED. common.js/cr-shell.js ?v=20261113nl

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-13 05:28:15 -06:00
parent 2c27dbc6e4
commit c79b0aedf6
30 changed files with 60 additions and 30 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ function head(o) {
+ '</head><body><div class="wrap bl">';
}
function tail() {
return '</div><script src="/assets/common.js?v=20261101t"></script><script src="/assets/blog-page.js?v=20260914a"></script></body></html>';
return '</div><script src="/assets/common.js?v=20261113nl"></script><script src="/assets/blog-page.js?v=20260914a"></script></body></html>';
}
const authorBox = () => '<div class="author"><img src="/logo-icon.png" alt="LinkSpin"><div><b>' + AUTHOR + '</b><span>Founder of LinkSpin and the Crypto Team Build Network. Twenty-plus years of internet marketing, and a habit of writing down what actually worked.</span></div></div>';
const cardHtml = p => '<a class="post-card" href="/blog/' + esc(p.slug) + '">' + (p.cover ? '<img src="' + esc(p.cover) + '" alt="" loading="lazy" style="width:100%;border-radius:10px;margin:0 0 12px">' : '') + '<h2>' + esc(p.title) + '</h2><p>' + esc(p.excerpt) + '</p><p class="meta">' + fmtDate(p.publishedAt || p.created) + ' · ' + readMinutes(p.body) + ' min read' + (p.tags.length ? ' · ' + p.tags.map(esc).join(', ') : '') + '</p></a>';
+1 -1
View File
@@ -146,7 +146,7 @@ async function renderPage() {
const w = winners();
if (w.length) h += '<h2 style="font-size:24px;margin:0 0 10px">Past winners</h2>' + w.slice(0, 12).map(x => '<div class="win"><b>' + (x.kind === 'week' ? 'Week of ' : 'Month of ') + fmtD(x.start) + '</b>: ' + (x.top[0] ? esc(x.top[0].name) + ' (' + x.top[0].sales + ' sold, $' + x.top[0].usd + ')' : 'no sales') + (x.granted && x.granted.length ? ' · awarded: ' + x.granted.map(g => esc(g.name) + ' +' + g.credits.toLocaleString()).join(', ') : (x.prize ? ' · prize ' + esc(x.prize) : '')) + '</div>').join('');
h += '<p class="muted small" style="margin-top:30px">Sales are $ of packages bought by members you directly sponsor. Weekly and monthly prizes are advertising credits or packages, never cash. No income is guaranteed.</p>';
h += '</div><script src="/assets/common.js?v=20261101t"></script><script src="/assets/blog-page.js?v=20260914a"></script></body></html>';
h += '</div><script src="/assets/common.js?v=20261113nl"></script><script src="/assets/blog-page.js?v=20260914a"></script></body></html>';
return h;
}
function setLaunchPanel(fn) { if (R) R.launchPanel = fn; }
+1 -1
View File
@@ -548,7 +548,7 @@
</div>
</div>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/admin-kb.js?v=20261020kb"></script>
<script src="/assets/admin.js?v=20261112txt"></script><script src="/assets/admin-sponsorcheck.js?v=20261107tg"></script><script src="/assets/admin-refill.js?v=20261024rf"></script><script src="/assets/admin-kits.js?v=20261024kit"></script><script src="/assets/admin-launchweek.js?v=20261105lw"></script>
</body>
+1 -1
View File
@@ -75,7 +75,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261113sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/ads-screen.js?v=20261113sso"></script>
<script src="/assets/fuel.js?v=20261113sso"></script>
<script src="/assets/engine-room.js?v=20261113sso"></script>
+15
View File
@@ -251,3 +251,18 @@ window.IAP = (function () {
return { getConfig, fmtPol, fmtUsd, status, renderNav, refreshNavWallet, describeEvent, feedRow, adSlot, reportAd, requestCode, launchChecks, launchToggle, ask, confirmBox, $,
guard: { FORM_TS, iconCheck, hpValue, formSettled } }; // guard: the sign-up walls, reused by /support and the chat hand-off
})();
// Network links (2026-11-13): a click on a link to InstantAdPay goes through /go/iap, which signs a signed-in member in over there and is a
// plain redirect for everyone else. Rewritten at click time only, so links people copy to share stay clean. data-nogo opts a link out.
(function () {
if (window.__netlinks) return; window.__netlinks = 1;
const HOSTS = ['instantadpay.com', 'www.instantadpay.com'];
document.addEventListener('click', e => {
if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
const a = e.target && e.target.closest ? e.target.closest('a[href]') : null;
if (!a || a.hasAttribute('download') || a.hasAttribute('data-nogo')) return;
let u; try { u = new URL(a.href); } catch (x) { return; }
if (u.protocol !== 'https:' || !HOSTS.includes(u.hostname)) return;
a.href = '/go/iap?to=' + encodeURIComponent(u.pathname + u.search + u.hash);
}, true);
})();
+15
View File
@@ -293,3 +293,18 @@ window.CR = (function () {
}
return { esc, fmt, api, get, copy, dialog, toast, mount, sub, me, requireSession, signInFlow, tile, sparkline, delta, helpBadge, tankItem };
})();
// Network links (2026-11-13): a click on a link to InstantAdPay goes through /go/iap, which signs a signed-in member in over there and is a
// plain redirect for everyone else. Rewritten at click time only, so links people copy to share stay clean. data-nogo opts a link out.
(function () {
if (window.__netlinks) return; window.__netlinks = 1;
const HOSTS = ['instantadpay.com', 'www.instantadpay.com'];
document.addEventListener('click', e => {
if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
const a = e.target && e.target.closest ? e.target.closest('a[href]') : null;
if (!a || a.hasAttribute('download') || a.hasAttribute('data-nogo')) return;
let u; try { u = new URL(a.href); } catch (x) { return; }
if (u.protocol !== 'https:' || !HOSTS.includes(u.hostname)) return;
a.href = '/go/iap?to=' + encodeURIComponent(u.pathname + u.search + u.hash);
}, true);
})();
+1 -1
View File
@@ -70,7 +70,7 @@
<div id="goalReports"></div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/conversions.js?v=20261026a"></script>
</body>
</html>
+2 -2
View File
@@ -81,9 +81,9 @@
</div>
</div>
</div>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/wallet.js?v=20261021a"></script>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/credits-screen.js?v=20261107tg"></script>
<script src="/assets/fuel.js?v=20261112sso"></script>
</body>
+1 -1
View File
@@ -69,6 +69,6 @@
<div class="small">Advertising services with a performance referral program. Not an investment product; no income guarantees.</div>
</footer>
</div>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
</body>
</html>
+1 -1
View File
@@ -30,7 +30,7 @@
<div id="page">
<div class="body" id="helpBody"><div class="panel"><span class="muted">loading</span></div></div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/help-screen.js?v=20261016a"></script>
</body>
</html>
+1 -1
View File
@@ -106,7 +106,7 @@ body.squeeze .card{position:sticky;top:16px}
<span class="mono" style="font-size:11px">a Crypto Team Build Network property</span>
</div>
</footer>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/join.js?v=20261111b4h"></script>
</body>
</html>
+1 -1
View File
@@ -102,7 +102,7 @@
<div class="small">Advertising services with a performance referral program. Not an investment product; no income guarantees.</div>
</footer>
</div>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/launch.js?v=20261105po"></script>
</body>
</html>
+1 -1
View File
@@ -65,7 +65,7 @@
<span class="mono" style="font-size:11px">a Crypto Team Build Network property</span>
</div>
</footer>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/ledger.js?v=20261007a"></script>
</body>
</html>
+1 -1
View File
@@ -270,7 +270,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/links.js?v=20261111big"></script>
<script src="/assets/banner-spin.js?v=20261105sz"></script>
</body>
+2 -2
View File
@@ -1015,8 +1015,8 @@
</div>
</div>
</div>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/tools.js?v=20261011a"></script>
<script src="/assets/wallet.js?v=20261021a"></script>
<script src="/assets/promo.js?v=20261020bs3"></script>
+1 -1
View File
@@ -73,7 +73,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/pages-screen.js?v=20261021t"></script>
</body>
</html>
+1 -1
View File
@@ -131,7 +131,7 @@
<div class="small">Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never spend what you cannot afford to lose.</div>
</footer>
</div>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/partners.js?v=20261010a"></script>
</body>
</html>
+1 -1
View File
@@ -193,7 +193,7 @@
<div class="small">Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never spend what you cannot afford.</div>
</footer>
</div>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/plays.js?v=20260910b"></script>
</body>
</html>
+1 -1
View File
@@ -90,7 +90,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/reports.js?v=20261107nc"></script>
</body>
</html>
+1 -1
View File
@@ -128,7 +128,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/traffic-guide-data.js?v=20261028a"></script>
<script src="/assets/sources-screen.js?v=20261028a"></script>
</body>
+1 -1
View File
@@ -67,7 +67,7 @@
<span class="mono" style="font-size:11px">a Crypto Team Build Network property</span>
</div>
</footer>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/support.js?v=20261016a"></script>
</body>
</html>
+1 -1
View File
@@ -38,7 +38,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/team.js?v=20261105fd"></script>
</body>
</html>
+1 -1
View File
@@ -64,7 +64,7 @@
<div class="rules" id="rules"></div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/traffic-guide-data.js?v=20261028a"></script>
<script src="/assets/traffic-guide.js?v=20261029b"></script>
</body>
+1 -1
View File
@@ -35,7 +35,7 @@
<p><a href="/ledger">← Back to the live ledger</a> · <a href="/contract">Read the contract review</a></p>
</div>
</section>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/tx.js?v=20260906m"></script>
</body>
</html>
+1 -1
View File
@@ -49,7 +49,7 @@
</div>
</div>
</section>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/wall.js?v=20261030pp"></script>
<script src="/assets/wall-founder.js?v=20261105fd"></script>
</body>
+1 -1
View File
@@ -36,7 +36,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/wallet-screen.js?v=20261023ov"></script>
</body>
</html>
+1 -1
View File
@@ -120,7 +120,7 @@
<div class="small">Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never share your recovery phrase.</div>
</footer>
</div>
<script src="/assets/common.js?v=20261107tg"></script>
<script src="/assets/common.js?v=20261113nl"></script>
<script src="/assets/wallets.js?v=20261026a"></script>
</body>
</html>
+1 -1
View File
@@ -42,7 +42,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261112sso"></script>
<script src="/assets/cr-shell.js?v=20261113nl"></script>
<script src="/assets/zones-screen.js?v=20261010a"></script>
</body>
</html>
+1 -1
View File
@@ -66,7 +66,7 @@ function renderPage() {
h += '<h2 style="font-size:24px;margin:10px 0 16px">Release notes</h2>';
h += v.notes.length ? v.notes.map(n => '<article class="note" id="' + esc(n.id) + '"><h2>' + esc(n.title) + n.tags.map(tagChip).join('') + '</h2><p class="when">' + fmt(n.date) + '</p>' + bodyHtml(n.body) + '</article>').join('') : '<p class="muted">No notes yet.</p>';
h += '<p class="muted small" style="margin-top:30px">Suggestions and bug reports: the chat bubble on any page, or the LinkSpin Telegram group.</p>';
h += '</div><script src="/assets/common.js?v=20261101t"></script><script src="/assets/blog-page.js?v=20260914a"></script></body></html>';
h += '</div><script src="/assets/common.js?v=20261113nl"></script><script src="/assets/blog-page.js?v=20260914a"></script></body></html>';
return h;
}
module.exports = { init, notes, roadmap, saveNote, saveRoadmap, remove, publicView, renderPage, bodyHtml, TAGS, STATUSES };
+1 -1
View File
@@ -4371,7 +4371,7 @@ const server = http.createServer(async (req, res) => {
+ '<style>.bp{max-width:560px;text-align:center;padding:40px 16px 60px}.bp img{width:100%;max-width:520px;border-radius:18px;border:1px solid var(--line);box-shadow:0 20px 60px rgba(0,0,0,.45)}.bp h1{font-size:clamp(24px,5vw,34px);margin:22px 0 8px}.bp p{color:var(--muted);max-width:44ch;margin:0 auto 20px}</style></head>'
+ '<body><div class="wrap bp"><img src="' + img + '" alt="' + esc(label) + ' badge for @' + esc(un) + '"><h1>@' + esc(un) + ' unlocked <em>' + label + '</em></h1><p>' + esc(sub.charAt(0).toUpperCase() + sub.slice(1)) + '. On LinkSpin every ad package that sells pays the sponsor in the same transaction, straight to their wallet, on-chain.</p>'
+ '<a class="btn" href="/join/' + esc(un) + '">Join @' + esc(un) + '\u2019s line free</a><p class="small" style="margin-top:26px">Advertising with a performance referral program. Not an investment; no income is guaranteed.</p></div>'
+ '<script src="/assets/common.js?v=20261101t"></script><script src="/assets/blog-page.js?v=20260912a"></script></body></html>';
+ '<script src="/assets/common.js?v=20261113nl"></script><script src="/assets/blog-page.js?v=20260912a"></script></body></html>';
res.writeHead(200, baseHeaders({ 'Content-Type': 'text/html; charset=utf-8', 'Cache-Control': 'public, max-age=300' }));
return res.end(html);
}