From 793354ea8032e940ecc067c4139e521bee3a5c39 Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 15 Nov 2026 08:05:53 -0600 Subject: [PATCH] Footer network links carry the referral (Marty 2026-11-15): on a page opened with ?ref= (and the member's own / page), personalize() gives every LinkSpin network link that has no member yet s1= (LinkSpin sends it on as ?ref=); Earners Corner (nwec) takes none. Stack POL has no sign-in or ref cookie, so the ?ref= that personalize already carries page to page is the referral. Same rule as VBB 6798503. Co-Authored-By: Claude Opus 5.5 --- layout.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout.js b/layout.js index 30a7692..451d002 100644 --- a/layout.js +++ b/layout.js @@ -146,6 +146,9 @@ function personalize(html, who, st) { if (/^\/(earn|blog|programs|ledger)(\/|\?|$)/.test(h) && !/\/blog\/feed\.xml/.test(h)) return 'href="' + h + (h.includes('?') ? '&' : '?') + 'ref=' + who + '"'; if (h === '/') return 'href="/' + who + '"'; if (/^https:\/\/(instantadpay\.com|linkspin\.app)\/?$/.test(h)) return 'href="' + h.replace(/\/?$/, '/join/' + who) + '"'; + // the footer's network links carry the referral (Marty 2026-11-15): a LinkSpin network link without a member gets s1 (LinkSpin sends + // it on as ?ref=); Earners Corner (nwec) takes none + if (/^https:\/\/linkspin\.app\/r\/nw[a-z]+\?/.test(h) && !/[?&](?:amp;)?s1=/.test(h)) return /\/r\/nwec\?/.test(h) ? m : 'href="' + h + '&s1=' + who + '"'; if (/^https:\/\/(instantadpay\.com|linkspin\.app)\//.test(h)) return 'href="' + h.replace(/\/join\/martbost\b/, '/join/' + who).replace(/([?&](?:amp;)?ref=)martbost\b/, '$1' + who).replace(/([?&](?:amp;)?s1=)martbost\b/, '$1' + who) + '"'; // s1 = the member on a LinkSpin network link (nwvbb, 2026-11-15) if (/^https:\/\/(downlinebanners\.com|viralbannerblitz\.com|viraladblitz\.com)\//.test(h)) return 'href="' + h.replace(/([?&](?:amp;)?ref=)martbost\b/, '$1' + who) + '"'; return m;