PageSourceSearch

https://www.mobil.se/view-resources/baseview/public/common/adLabel.js?v=1789115892-L4

js mobil.se collected 2026-10-02 06:19:35 UTC 627 bytes, 11 lines download raw bytes

1// Toggles .ad-empty on an ad's container based on GPT's slotRenderEnded event
2// (event.isEmpty), the authoritative "did this ad fill?" signal. CSS handles
3// visibility/spacing off that class — see _googleAd.scss.
4window.googletag = window.googletag || { cmd: [] };
5googletag.cmd.push(function () {
6    googletag.pubads().addEventListener('slotRenderEnded', function (event) {
7        var unit = document.getElementById(event.slot.getSlotElementId());
8        var container = unit && unit.closest('.column.google-ad.display-label');
9        if (container) container.classList.toggle('ad-empty', event.isEmpty);
10    });
11});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.