PageSourceSearch

https://wp.harpers.org/wp-content/themes/timber/static/js/posthog-link-decorator.59d1ed7a.js

js harpers.org collected 2026-09-24 08:29:17 UTC 848 bytes, 20 lines download raw bytes

1"use strict";
2
3(function () {
4  document.addEventListener('click', function (e) {
5    var link = e.target.closest('a');
6    if (!link || !link.href) return;
7    try {
8      var url = new URL(link.href);
9      if (url.hostname.indexOf('buysub.com') === -1) return;
10      var distinctId = window.posthog && window.posthog.get_distinct_id ? window.posthog.get_distinct_id() : null;
11      var sessionId = window.posthog && window.posthog.get_session_id ? window.posthog.get_session_id() : null;
12      if (!distinctId && !sessionId) return;
13      var hashParams = new URLSearchParams(url.hash.substring(1));
14      if (distinctId) hashParams.set('ph_distinct_id', distinctId);
15      if (sessionId) hashParams.set('ph_session_id', sessionId);
16      url.hash = hashParams.toString();
17      link.href = url.toString();
18    } catch (err) {}
19  }, true);
20})();

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.