Post #4319192
2026-06-01 17:28 UTC
#TIL:
Some sites block referrals from within #iframes
Nonono
// CASE 6: Symbol NOT IN JSON - with clickable TradingView button
else if (data && data.status === "not_found") {
const tradingViewUrl = 'https://www.tradingview.com/chart/?symbol=' + encodeURIComponent(symbol);
badge.innerHTML = '<span class="gettex-badge gettex-not-in-json" title="Symbol not found in stocks.json">📋 ✗ NOT IN JSON <button onclick="window.open(\'' + tradingViewUrl + '\', \'_blank\'); event.stopPropagation();">TrdVw</button></span>';
}
Ok
// CASE 6: Symbol NOT IN JSON - esxape to top-level navigation
else if (data && data.status === "not_found") {
const tradingViewUrl = 'https://www.tradingview.com/chart/?symbol=' + encodeURIComponent(symbol);
badge.innerHTML = '<span class="gettex-badge gettex-not-in-json" title="Symbol not found in stocks.json">📋 ✗ NOT IN JSON <button onclick="window.top.open(\'' + tradingViewUrl + '\', \'_blank\'); event.stopPropagation();">TrdVw</button></span>';
}
So you need to break out of the #iframe / #sandbox first...
:blobcatgoogly:
Amazing
#WebDev ing is soooofun*
#repost •acws #acws
*Thanks scammers for ruining my fun
This is how breaking out of sandboxes looks (ofc you take the sandbox with you :neocat_evil_3c: ):
Replies (0)
No replies.