PageSourceSearch

https://farnaa.com/assets/scripts/mount.js

js farnaa.com collected 2026-10-07 15:50:55 UTC 465 bytes, 19 lines download raw bytes

1// Set theme on website load
2
3// default theme
4const defaultTheme = "light";  // "light" | "dark"
5
6// Check if a theme is set in local storage
7const storedTheme = localStorage.getItem("theme");
8
9// Set default theme if no theme is set
10if (!storedTheme) {
11  localStorage.setItem("theme", defaultTheme);
12}
13
14// Apply theme from local storage
15document.documentElement.classList.toggle(
16  "dark",
17  localStorage.getItem("theme") === "dark"
18);
19// ----

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.