Footer network links carry the referral (Marty 2026-11-15): on a page opened with ?ref=<Pro member> (and the member's own /<who> page), personalize() gives every LinkSpin network link that has no member yet s1=<who> (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 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user