Chasing Unicorns: the page's own ?src= (where the link was posted) rides into the join button as unicorns-<src>, so sign-ups show the channel (Marty 2026-11-12, Massifly + LeasedAdSpace posts). chasing-unicorns.js?v=20261112d

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-12 14:48:42 -06:00
parent dbdeb5a7e6
commit 74354346a3
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -38,8 +38,12 @@
// the visitor's sponsor rides the share link (?ref=), so the join button and the share line keep it
var ref = (new URLSearchParams(location.search).get('ref') || '').toLowerCase().replace(/[^a-z0-9_]/g, '').slice(0, 20);
// where the page link was posted (?src=massifly, ?src=leasedadspace...) rides into the join, so a sign-up says which channel
var chan = (new URLSearchParams(location.search).get('src') || '').toLowerCase().replace(/[^a-z0-9_.-]/g, '').slice(0, 18);
var srcTag = chan ? 'unicorns-' + chan : 'chasing-unicorns';
$('joinBtn').href = '/join?src=' + srcTag;
if (ref) {
$('joinBtn').href = '/join/' + ref + '?src=chasing-unicorns';
$('joinBtn').href = '/join/' + ref + '?src=' + srcTag;
$('ledgerBtn').href = '/ledger?ref=' + ref;
$('shareLink').textContent = 'https://instantadpay.com/chasing-unicorns?ref=' + ref;
}
+1 -1
View File
@@ -203,6 +203,6 @@ button.tile { cursor: pointer; }
<div class="row"><button type="button" class="btn go" id="cardNext">Keep hunting</button><button type="button" class="btn sec" id="cardEnd">Show my scam radar</button></div>
</div></div>
<script src="/assets/chasing-unicorns.js?v=20261112c"></script>
<script src="/assets/chasing-unicorns.js?v=20261112d"></script>
</body>
</html>