Framed (traffic exchanges/rotators): off-site links open in a new tab so InstantAdPay sign-in works; the board door carries the share link's ?r= as ?ref

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-03 19:09:23 -05:00
parent 4794c5a032
commit ccaab58585
3 changed files with 21 additions and 0 deletions
+7
View File
@@ -106,5 +106,12 @@
} catch (e) {}
})();
</script>
<script>/* shown inside someone else's frame (a traffic exchange or rotator, 2026-10-03, diannt): sign-in and the board can't work in
a third-party frame, so links off this site open in a new tab; the board door carries the share link's ?r= so the referral holds */
(function () { var framed = false; try { framed = window.top !== window.self; } catch (e) { framed = true; }
var r = ''; try { r = String(new URLSearchParams(location.search).get('r') || localStorage.getItem('ph.ref') || '').trim(); } catch (e) {} if (!/^[A-Za-z0-9_]{1,40}$/.test(r)) r = '';
document.querySelectorAll('a[href="https://instantadpay.com/api/my/polhunter"]').forEach(function (a) { if (r) a.href = a.href + '?ref=' + encodeURIComponent(r); });
if (framed) document.querySelectorAll('a[href^="http"]').forEach(function (a) { if (a.host !== location.host) { a.target = '_blank'; a.rel = 'noopener'; } });
})();</script>
</body>
</html>
+7
View File
@@ -68,5 +68,12 @@
show('week');
})();
</script>
<script>/* shown inside someone else's frame (a traffic exchange or rotator, 2026-10-03, diannt): sign-in and the board can't work in
a third-party frame, so links off this site open in a new tab; the board door carries the share link's ?r= so the referral holds */
(function () { var framed = false; try { framed = window.top !== window.self; } catch (e) { framed = true; }
var r = ''; try { r = String(new URLSearchParams(location.search).get('r') || localStorage.getItem('ph.ref') || '').trim(); } catch (e) {} if (!/^[A-Za-z0-9_]{1,40}$/.test(r)) r = '';
document.querySelectorAll('a[href="https://instantadpay.com/api/my/polhunter"]').forEach(function (a) { if (r) a.href = a.href + '?ref=' + encodeURIComponent(r); });
if (framed) document.querySelectorAll('a[href^="http"]').forEach(function (a) { if (a.host !== location.host) { a.target = '_blank'; a.rel = 'noopener'; } });
})();</script>
</body>
</html>
+7
View File
@@ -123,5 +123,12 @@
document.body.addEventListener('click', async e => { const b = e.target.closest('[data-copy]'); if (!b) return; const el = document.querySelector(b.dataset.copy); try { await navigator.clipboard.writeText(el.value); } catch (x) { el.select(); document.execCommand('copy'); } const t = b.textContent; b.textContent = 'Copied'; setTimeout(() => { b.textContent = t; }, 1200); });
})();
</script>
<script>/* shown inside someone else's frame (a traffic exchange or rotator, 2026-10-03, diannt): sign-in and the board can't work in
a third-party frame, so links off this site open in a new tab; the board door carries the share link's ?r= so the referral holds */
(function () { var framed = false; try { framed = window.top !== window.self; } catch (e) { framed = true; }
var r = ''; try { r = String(new URLSearchParams(location.search).get('r') || localStorage.getItem('ph.ref') || '').trim(); } catch (e) {} if (!/^[A-Za-z0-9_]{1,40}$/.test(r)) r = '';
document.querySelectorAll('a[href="https://instantadpay.com/api/my/polhunter"]').forEach(function (a) { if (r) a.href = a.href + '?ref=' + encodeURIComponent(r); });
if (framed) document.querySelectorAll('a[href^="http"]').forEach(function (a) { if (a.host !== location.host) { a.target = '_blank'; a.rel = 'noopener'; } });
})();</script>
</body>
</html>