PageSourceSearch

https://www.australianforeignaffairs.com/sites/all/themes/quarterlyessay/scripts/user-preferences.js

js australianforeignaffairs.com collected 2026-10-03 23:05:00 UTC 584 bytes, 27 lines download raw bytes

1function userPreferences() {
2
3  try {
4    var t0 = performance.now();
5    var root = document.documentElement;
6    var storage = window.localStorage;
7    switch (storage.getItem('dark-mode-choice')) {
8      case 'dark':
9        root.className += ' dark';
10        break;
11    }
12
13    switch (storage.getItem('font-choice-size')) {
14      case 'large':
15        root.className += ' font-large';
16        break;
17    }
18
19    var t1 = performance.now()
20
21    // console.log("Call to html took " + (t1 - t0) + " milliseconds.")
22  } catch (error) {
23    console.log(error);
24  }
25}
26
27userPreferences();

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.