Files
Polaris/templates/ad_horizontal.html
T
Russell2259 c101ff2511 fix ads
2024-03-05 20:35:38 -07:00

48 lines
1.3 KiB
HTML

<div id="bannerad728"></div>
<script src="//outrightsham.com/cf0bb7d0401f5ae5534ac09c2e959d20/invoke.js" type="text/html"></script>
<script type="module">
import { createBareClient } from 'https://esm.sh/@tomphttp/bare-client@latest/dist/index.js';
import { evalify } from '/assets/js/utils.js';
const client = await createBareClient(location.origin + '/bare/');
window.atOptions = {
'key': 'cf0bb7d0401f5ae5534ac09c2e959d20',
'format': 'iframe',
'height': 90,
'width': 728,
'params': {}
};
eval(evalify(() => {
const window = {
...self,
location: {
...self.location,
replace: () => {
throw new Error('Failed to redirect')
}
}
};
const location = {
...self.location,
replace: () => {
throw new Error('Failed to redirect')
}
};
{{ ad_src }}
}).replace('{{ ad_src }}', await (await client.fetch('//outrightsham.com/cf0bb7d0401f5ae5534ac09c2e959d20/invoke.js', {
headers: {
'Accept': '*/*',
'Accept-Encoding': 'gzip, deflate, br, zstd',
'Accept-Language': 'en-US,en;q=0.9',
'Connection': 'keep-alive',
'Host': 'outrightsham.com',
'Origin': location.origin,
'Referer': document.referrer,
'User-Agent': window.navigator.userAgent
}
})).text()));
</script>