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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user