PageSourceSearch

https://www.prideofdetroit.com/ad-block-service-worker.js

js prideofdetroit.com collected 2026-09-24 08:55:28 UTC 720 bytes, 28 lines download raw bytes

1// List of domains to block
2const BLOCKED_DOMAINS = [
3  "cs.admanmedia.com",
4  "dmp.rtbsrv.com",
5  "cs.krushmedia.com",
6  "cs.iqzone.com",
7  "acdn.adnxs.com",
8  "xsync.iqzone.com",
9];
10
11self.addEventListener("install", (event) => {
12  // Activate worker immediately
13  event.waitUntil(self.skipWaiting());
14});
15
16self.addEventListener("activate", (event) => {
17  // Claim control over all clients immediately
18  event.waitUntil(self.clients.claim());
19});
20
21self.addEventListener("fetch", (event) => {
22  const url = new URL(event.request.url);
23
24  if (BLOCKED_DOMAINS.some((domain) => url.hostname === domain)) {
25    // Return empty response for blocked domains
26    event.respondWith(new Response(null, { status: 204 }));
27  }
28});

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.