PageSourceSearch

https://staticin.pages.dev/assets/scripts/index.js?v=1

js staticin.pages.dev collected 2026-10-03 05:56:41 UTC 1,735 bytes, 51 lines download raw bytes

1const form = document.querySelector('form')
2const input = document.querySelector('input')
3
4form.addEventListener('submit', async (event) => {
5  event.preventDefault()
6  window.navigator.serviceWorker
7    .register('./sw.js', {
8      scope: __uv$config.prefix,
9    })
10    .then(() => {
11      let url = input.value.trim()
12      if (!isUrl(url)) url = 'https://www.google.com/search?q=' + url
13      else if (!(url.startsWith('https://') || url.startsWith('http://'))) url = 'http://' + url
14      sessionStorage.setItem('encodedUrl', __uv$config.encodeUrl(url))
15      location.href = '/go.html'
16    })
17})
18
19function images(value) {
20  let iframe = document.querySelector('.iframe.active')
21  window.navigator.serviceWorker
22    .register('./sw.js', {
23      scope: __uv$config.prefix,
24    })
25    .then(() => {
26      let url = value.trim()
27      if (!isUrl(url)) url = 'https://www.google.com/search?q=' + url
28      else if (!(url.startsWith('https://') || url.startsWith('http://'))) url = 'https://' + url
29      sessionStorage.setItem('encodedUrl', __uv$config.encodeUrl(url))
30      location.href = '/go.html'
31    })
32}
33
34function blank(value) {
35  let iframe = document.querySelector('.iframe.active')
36  window.navigator.serviceWorker
37    .register('./sw.js', {
38      scope: __uv$config.prefix,
39    })
40    .then(() => {
41      let url = value.trim()
42      if (!isUrl(url)) url = 'https://www.google.com/search?q=' + url
43      else if (!(url.startsWith('https://') || url.startsWith('http://'))) url = 'https://' + url
44      window.location.href = __uv$config.prefix + __uv$config.encodeUrl(url)
45    })
46}
47
48function isUrl(val = '') {
49  if (/^http(s?):\/\//.test(val) || (val.includes('.') && val.substr(0, 1) !== ' ')) return true
50  return false
51}

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.