PageSourceSearch

https://www.railbookers.co.uk/themes/custom/ylg/assets/js/RA_Track.js?tm2p1h

js railbookers.co.uk collected 2026-09-29 09:05:55 UTC 2,268 bytes, 76 lines download raw bytes

1"use strict";
2
3// Rev Agency Tracking
4var ra_ref = "";
5var hrefsplit = window.location.href.split("?");
6var source_URL = hrefsplit[0];
7var refmatch = "";
8if (ra_ref === "") {
9  if (hrefsplit.length == 2) {
10    if (refmatch = hrefsplit[1].match(/\bra_ref=([^&]+)/gi)) {
11      for (var i = 0; i < refmatch.length; i++) {
12        var refsplit = refmatch[i].split("=");
13        if (refsplit.length == 2) {
14          if (refsplit[0].toLowerCase() == "ra_ref") {
15            ra_ref = refsplit[1];
16            if (ra_ref != "") {
17              var expires = new Date();
18              expires.setTime(expires.getTime() + 180 * 24 * 60 * 60 * 1000);
19              document.cookie = "ra_ref=" + ra_ref + ";expires=" + expires.toUTCString() + ";path=/";
20            }
21            break;
22          }
23        }
24      }
25    }
26  }
27}
28if (ra_ref === "") {
29  if (hrefsplit.length == 2) {
30    if (refmatch = hrefsplit[1].match(/\bref=([^&]+)/gi)) {
31      for (var i = 0; i < refmatch.length; i++) {
32        var refsplit = refmatch[i].split("=");
33        if (refsplit.length == 2) {
34          if (refsplit[0].toLowerCase() == "ref") {
35            ra_ref = refsplit[1];
36            if (ra_ref != "") {
37              var expires = new Date();
38              expires.setTime(expires.getTime() + 180 * 24 * 60 * 60 * 1000);
39              document.cookie = "ra_ref=" + ra_ref + ";expires=" + expires.toUTCString() + ";path=/";
40            }
41            break;
42          }
43        }
44      }
45    }
46  }
47}
48var allCookies = document.cookie.split(";");
49if (ra_ref === "") {
50  for (var i = 0; i < allCookies.length; i++) {
51    var onePair = allCookies[i].split("=");
52    if (onePair.length == 2) {
53      if (onePair[0].replace(/\s/g, "") == "ra_ref") {
54        ra_ref = onePair[1];
55        break;
56      }
57    }
58  }
59}
60if (ra_ref === "") {
61  for (var i = 0; i < allCookies.length; i++) {
62    var onePair = allCookies[i].split("=");
63    if (onePair.length == 2) {
64      if (onePair[0].replace(/\s/g, "") == "ref") {
65        ra_ref = onePair[1];
66        break;
67      }
68    }
69  }
70}
71if (ra_ref === "") {
72  var expires = new Date();
73  expires.setTime(expires.getTime() + 180 * 24 * 60 * 60 * 1000);
74  document.cookie = "ra_ref=-1;expires=" + expires.toUTCString() + ";path=/";
75}
76// end of Rev Agency Tracking

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.