PageSourceSearch

https://www.betterbrain.com/marketing-integrations/6ec41e0c9670.js

js betterbrain.com collected 2026-09-28 08:34:21 UTC 573 bytes, 12 lines download raw bytes

1
2document.addEventListener('DOMContentLoaded', function () {
3  var slug = location.pathname.replace(/^\/+|\/+$/g, '');   // "blueprint", "insurance", ""
4  if (!slug) return;                                         // homepage → leave as-is
5  document.querySelectorAll('a[href*="movement.betterbrain.com"]').forEach(function (a) {
6    try {
7      var url = new URL(a.getAttribute('href'), location.origin);
8      url.searchParams.set('return', slug);                 // idempotent; keeps any UTMs
9      a.setAttribute('href', url.toString());
10    } catch (e) {}
11  });
12});

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.