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;