PageSourceSearch

https://weatherfile.com/js/wf/custom.js

js weatherfile.com collected 2026-10-02 11:22:34 UTC 1,076 bytes, 50 lines download raw bytes

1//Check if the URL is staging.weatherfile.com
2
3if (window.location.href.indexOf("staging.weatherfile.com") > -1) {
4
5
6console.log("custom JS loaded on staging.")
7// check if it's Android (bugfix), change the tweening timeout
8
9function getOperatingSystem() {
10    var userAgent = navigator.userAgent || navigator.vendor || window.opera;
11  
12    // Windows
13    if (/windows phone/i.test(userAgent)) {
14      return "Windows Mobile";
15    }
16    if (/win/i.test(userAgent)) {
17      return "Windows";
18    }
19  
20    // Mac OS
21    if (/mac/i.test(userAgent)) {
22    console.log('isMac = true');
23      return "MacOS";
24    }
25  
26    // iOS (iPod, iPhone, iPad)
27    if (/ipad|iphone|ipod/.test(userAgent)) {
28      return "iOS";
29    }
30  
31    // Android
32    if (/android/i.test(userAgent)) {
33     console.log('isAndroid = true');
34      return localStorage.setItem("isAndroid", true);
35      //debug
36      
37    }
38  
39    // Linux
40    if (/linux/i.test(userAgent)) {
41      return "Linux";
42    }
43  
44    // If we can't detect the OS, return unknown
45    return "Unknown";
46  }
47
48  getOperatingSystem();
49
50}

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.