e5fb985c6b
Fixes: Engine Room streak line no longer asks for the other site once both are refueled (engine.js + engine-room.js copied from InstantAdPay, byte-identical). Ads-screen Monthly Refuel rows had no spacing ("InstantAdPay+30%"): own flex row style. Load into my Banner Spin: size checkboxes, pre-ticked to what fits the tier (728x90 + 300x250 on an empty Starter), and kitspin.js returns one plain message: what loaded, what did not and why (tier holds N Banner Spins), and what to do; /api/my/kits adds spinRoom. Test added (refuel-kit 6/6).
Chatbot CANNED + refuelFact point to /refuel. fuel.js + engine-room.js ?v=20261024rg.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
1.0 KiB
JavaScript
16 lines
1.0 KiB
JavaScript
// Fuel Your Offers guide page (/refuel, 2026-10-24). Inside a traffic-exchange frame the session and sponsor cookies are
|
|
// dropped, so sign-in, join, member screens and off-site links open in a new tab, and /join carries the ?ref= this page
|
|
// was opened with.
|
|
(function () {
|
|
var framed = false; try { framed = window.top !== window.self; } catch (e) { framed = true; }
|
|
if (!framed) return;
|
|
var ref = ''; try { ref = new URLSearchParams(location.search).get('ref') || ''; } catch (e) {}
|
|
ref = String(ref).toLowerCase().replace(/[^a-z0-9_]/g, '').slice(0, 40);
|
|
document.querySelectorAll('a[href]').forEach(function (a) {
|
|
var h = a.getAttribute('href') || ''; if (h.charAt(0) === '#') return;
|
|
var member = a.host === location.host && /^\/(join|credits|ads|links|signin|login)(\/|$)/.test(a.pathname);
|
|
if (member && ref && a.pathname === '/join' && !/[?&]ref=/.test(a.search)) a.search = (a.search ? a.search + '&' : '?') + 'ref=' + ref;
|
|
if (member || a.host !== location.host) { a.target = '_blank'; a.rel = 'noopener'; }
|
|
});
|
|
})();
|