Skip to content

Commit

Permalink
Update insert.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwieds committed Jul 16, 2024
1 parent f6ab022 commit d5107d5
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions _includes/master/modules/adunits/fallback/insert.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,28 @@

var slotId = new Date().getTime();

// Selectors
var vertSlotsSelector = '.uj-vert-unit';
var vertSlotsSelectorLoaded = '.uj-vert-unit ins[data-ad-status]';
var vertSlotsSelectorUnfilled = '.uj-vert-unit ins[data-ad-status="unfilled"]';

// Set the anti-vert detector script
/*
/bottomads.js
/content-ads.js
/core-ads.js
/insertads.js
/jsads.js
/left_ads.js
/nativeads.js
/openads.js
/popupads.js
/ads/ad-script.js?ad_network=123&tracking_id=abc#banner_ad
*/
// var scriptUrl = '/assets/js/taboola_ads.js';
// var scriptUrl = 'assets/js/pagead.js';
var scriptUrl = '/assets/js/popupads.js?t1=/ads/native.js&t2=/nativeads.js&t3=/content-ads.js&cb=' + Manager.properties.global.cacheBreaker;

// Check if being handled already
if (window._ujVertCheckerStarted) {
return;
Expand Down Expand Up @@ -89,24 +107,8 @@

window.addEventListener('message', messageHandler, false);

// Load the adblocker detector
/*
/bottomads.js
/content-ads.js
/core-ads.js
/insertads.js
/jsads.js
/left_ads.js
/nativeads.js
/openads.js
/popupads.js
/ads/ad-script.js?ad_network=123&tracking_id=abc#banner_ad
*/
// Manager.dom().loadScript({src: '/assets/js/taboola_ads.js'})

// Manager.dom().loadScript({src: '/assets/js/pagead.js'})
// Manager.dom().loadScript({src: '/assets/js/ads.popunder.js'})
Manager.dom().loadScript({src: '/assets/js/popupads.js?t1=/ads/native.js&t2=/nativeads.js&t3=/content-ads.js'})
// Load the antivert checker
Manager.dom().loadScript({src: scriptUrl})
.then(function (e) {
console.log('Loaded antivert checker', e);
})
Expand Down

0 comments on commit d5107d5

Please sign in to comment.