Skip to content

Instantly share code, notes, and snippets.

View FikretHassan's full-sized avatar

Fikret Hassan FikretHassan

View GitHub Profile
@FikretHassan
FikretHassan / report-ads-to-slack.js
Last active May 6, 2024 12:32
report-ads-to-slack.js
/*
This is outdated, for the up to date version see:
https://github.com/FikretHassan/report-ads-to-slack-chrome-extension/blob/main/Ad%20Feedback%20Toggle%20Extension/adtech.js
*/
window.top.googletag.cmd.push(function() {
window.top.adentify = window.top.adentify || {};
window.top.adentify.about = { // deatils about this version of the code
version: '0.1',
@FikretHassan
FikretHassan / report-heavy-ad-intervention.js
Last active June 20, 2024 13:02
Add this to your creative / creative wrapper to log chrome heavy ad interventions to the console
const observer = new ReportingObserver(
(reports, observer) => {
console.log('ADTECH: reporting observer results:', JSON.stringify(reports));
}, {
buffered: true
}
);
// start watching for interventions
observer.observe();