PageSourceSearch

https://guidetoiceland.is/_next/static/js/convertExperimentTags.js

js guidetoiceland.is collected 2026-09-24 08:41:02 UTC 2,645 bytes, 104 lines download raw bytes

1/* eslint-disable functional/immutable-data,no-useless-escape */
2(function convertExperimentTags() {
3  // lighthouse
4  const lhPattern =
5    /(Mozilla\/5\.0 \(Linux; Android 11; moto g power \(2022\)\) AppleWebKit\/537\.36 \(KHTML, like Gecko\) Chrome\/\d*\.0.0.0 Mobile Safari\/537\.36)|(Mozilla\/5\.0 \(Macintosh; Intel Mac OS X 10_15_7\) AppleWebKit\/537\.36 \(KHTML, like Gecko\) Chrome\/109\.0\.0\.0 Safari\/537\.36)|(Speed Insights)|(Chrome-Lighthouse)|(PSTS[\d\.]+)/;
6  const botPatterns = [
7    // General bots and crawlers
8    "bot",
9    "crawl",
10    "spider",
11    "slurp",
12    "ia_archiver",
13
14    // Major search engines
15    // google
16    // "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers"
17    "Googlebot",
18    "Google-InspectionTool",
19    "APIs-Google",
20    "AdsBot-Google",
21    "Mediapartners-Google",
22    "Google-Safety",
23    "GoogleOther",
24    "Google-CloudVertexBot",
25    "Google-Extended",
26    "Storebot-Google",
27    "FeedFetcher-Google",
28    "GoogleProducer",
29    "Google-Read-Aloud",
30    "Google-Site-Verification",
31    // bing
32    "Bingbot",
33    "AdIdxBot",
34    "BingPreview",
35    "MicrosoftPreview",
36    // yandex
37    "YandexBot",
38    "YandexImages",
39    "YandexMobileBot",
40    "YandexAccessibilityBot",
41
42    // Social media and link preview services
43    "facebookexternalhit",
44    "Facebot",
45    "Twitterbot",
46    "WhatsApp",
47    "TelegramBot",
48    "Discordbot",
49    "Slackbot",
50    "Embedly",
51    "Quora Link Preview",
52
53    // Common SEO crawlers
54    "AhrefsBot",
55    "SemrushBot",
56    "DotBot",
57    "MJ12bot",
58
59    // Uptime and monitoring services
60    "Pingdom",
61    "UptimeRobot",
62
63    // Common HTTP libraries
64    "axios",
65    "curl",
66    "wget",
67    "libwww",
68    "Scrapy",
69    "pyspider",
70    "node-fetch",
71    "node-superagent",
72    "python-requests",
73    "got\\/",
74    "Go-http-client",
75    "okhttp",
76    "HttpClient",
77
78    // Headless browsers and automation tools
79    "HeadlessChrome",
80    "puppeteer",
81    "phantomjs",
82    "selenium",
83  ];
84
85  const botPattern = new RegExp(botPatterns.join("|"), "i");
86  if (!window.navigator || !window.navigator.userAgent) return;
87  if (window.navigator.userAgent.match(lhPattern) || window.navigator.userAgent.match(botPattern)) {
88    return;
89  }
90
91  const injectScript = src => {
92    const script = document.createElement("script");
93    script.defer = true;
94    script.src = src;
95    document.head.appendChild(script);
96  };
97  const scriptEl = document.getElementById("convert-script");
98  if (!scriptEl) return;
99  
100  const scriptSrc = scriptEl.getAttribute("data-convert-src");
101  if (!scriptSrc) return;
102
103  injectScript(scriptSrc);
104})();

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.