PageSourceSearch

https://www.maria-black.com/site-selector/assets/js/links.js

js maria-black.com collected 2026-09-26 10:09:00 UTC 730 bytes, 29 lines download raw bytes

1function addQueryToHref(href) {
2    let query = getQueryParams();
3    if (Object.keys(query).length) {
4        const queryParams = [];
5        Object.keys(query).forEach(key => {
6            if (key !== 'clearLocation') {
7                queryParams.push(`${key}=${query[key]}`);
8            }
9        });
10        if (queryParams.length) {
11            href += '?' + queryParams.join('&');
12        }
13    }
14    return href;
15}
16
17const getQueryParams = () => {
18    const params = {};
19    window.location.search
20        .substr(1)
21        .split('&')
22        .forEach(p => {
23            const array = p.split('=');
24            if (array[1]) {
25                params[array[0]] = array[1];
26            }
27        });
28    return params;
29};

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.