PageSourceSearch

https://gradient.com/assets/iPCg-dDn.min.js

js gradient.com collected 2026-09-25 05:09:20 UTC 1,727 bytes, 1 lines download raw bytes

1var e=`_lastScrollPos`;function t(){if(window.location.hash)return!1;if(window.location.hostname===`localhost`)return!0;try{return window.self!==window.top}catch{return!0}}function n(){if(!t())return;let e=r();if(e){let t=document.documentElement;t.style.scrollBehavior=`auto`,window.scrollTo({top:e}),setTimeout(()=>{t.style.removeProperty(`scroll-behavior`)})}window.addEventListener(`beforeunload`,()=>{i()})}function r(){let t=sessionStorage.getItem(e);if(!t)return null;try{let e=JSON.parse(t);if(e&&e.pathname&&e.pathname===window.location.pathname)return e.y||0}catch(e){return console.error(`failed to get last scroll pos:`,e),null}}function i(){let t={pathname:window.location.pathname,y:window.scrollY};sessionStorage.setItem(e,JSON.stringify(t))}function a(){let e=new URLSearchParams(window.location.search);if(e.get(`preview`)===`true`){let t=e.get(`help`)===`true`;document.querySelectorAll(`a[href]`).forEach(n=>{let r=n.getAttribute(`href`)||``;if(r.startsWith(`/`)){let i=new URL(r,window.location.href);i.searchParams.set(`preview`,`true`),t&&i.searchParams.set(`help`,`true`),e.get(`v`)&&i.searchParams.set(`v`,e.get(`v`)),n.href=i.toString()}}),document.querySelectorAll(`select#language-picker option`).forEach(e=>{let n=e.value||``;if(n.startsWith(`/`)){let r=new URL(n,window.location.href);r.searchParams.set(`preview`,`true`),t&&r.searchParams.set(`help`,`true`),e.value=r.toString()}})}}function o(){new URLSearchParams(window.location.search).get(`v`)===`EnableConsentBanner`&&document.querySelectorAll(`a[href]`).forEach(e=>{let t=e.getAttribute(`href`)||``;if(t.startsWith(`/`)){let n=new URL(t,window.location.href);n.searchParams.set(`v`,`EnableConsentBanner`),e.href=n.toString()}})}a(),o(),n();

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.