PageSourceSearch

https://micasa.se/download/18.1beb7a5a19c478b7b8810ab/1770904044012/sp-scroll-to-top.js

js micasa.se collected 2026-10-06 08:51:36 UTC 529 bytes, 21 lines download raw bytes

1document.addEventListener('click', (e) => {
2
3    // Check if click is in pagination-ul
4    const pagination = e.target.closest('ul.pagination.env-list.env-list--horizontal.env-flex--wrap');
5    if (!pagination) return; 
6
7    // Find clicked LI or A
8    const clickedItem = e.target.closest('li, a');
9    if (!clickedItem) return;
10   
11   e.preventDefault();
12   e.stopPropagation();
13
14   setTimeout(() => {
15           window.scrollTo({
16               top: 0,
17               behavior: 'smooth'
18           });
19       }, 1000); 
20
21}); 

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.