PageSourceSearch

https://www.grepixit.com/assets/js/popup-script.js

js grepixit.com collected 2026-09-24 10:27:41 UTC 779 bytes, 25 lines download raw bytes

1<script>
2    // Define visit timeout duration (30 minutes = one visit)
3    const VISIT_DURATION = 0 * 60 * 1000;
4
5    const lastVisitTime = localStorage.getItem("lastVisitTime");
6
7    const now = Date.now();
8
9    // If last visit was over 30 minutes ago → treat as new visit
10    if (!lastVisitTime || now - lastVisitTime > VISIT_DURATION) {
11        
12        // Start new visit → store current time
13        localStorage.setItem("lastVisitTime", now);
14
15        // Popup should show only once per visit
16        setTimeout(() => {
17            document.getElementById("popup").style.display = "flex";
18        }, 200); 
19    }
20
21    // Close function
22    function closePopup() {
23        document.getElementById("popup").style.display = "none";
24    }
25</script>

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.