PageSourceSearch

https://sgr.su/assets/mini_landing_page_scripts/url_params_forward…605e8b28cff1e6933ab0630f19ca62afefdf3d4e.js

js sgr.su collected 2026-10-09 22:41:41 UTC 2,637 bytes, 1 lines download raw bytes

1!function(){function t(){var t=location.pathname.match(/^\/st\/[^/]+/);return d+":"+(t?t[0]:location.host)}function e(t){if(v[t])return!0;for(var e=0;e<g.length;e++)if(0===t.indexOf(g[e]))return!0;return!1}function r(t){var r={};return t?(String(t).replace(/^\?/,"").split("&").forEach(function(t){if(t){var n,i=t.indexOf("="),o=-1===i?t:t.slice(0,i);try{n=decodeURIComponent(o)}catch(t){n=o}n&&!e(n)&&(r[n]=-1===i?"":t.slice(i+1))}}),r):r}function n(){try{var r=sessionStorage.getItem(t());if(!r)return{};var n=JSON.parse(r);if(!n||"object"!=typeof n)return{};var i={};return Object.keys(n).forEach(function(t){e(t)||(i[t]=n[t])}),i}catch(t){return{}}}function i(r){try{if(!r||!Object.keys(r).length)return;var n={};if(Object.keys(r).forEach(function(t){e(t)||(n[t]=r[t])}),!Object.keys(n).length)return;sessionStorage.setItem(t(),JSON.stringify(n))}catch(t){}}function o(){var t=r(window.location.search);return Object.keys(t).length?(i(t),t):n()}function a(t){if(!t||"string"!=typeof t)return t;var e=t.trim();if(!e||"#"===e)return t;if(/^(mailto:|tel:|javascript:|sms:)/i.test(e))return t;if("#"===e.charAt(0))return t;var n="",i=e.indexOf("#");if(-1!==i&&(n=e.slice(i),e=e.slice(0,i)),!e)return t;for(var o=e.indexOf("?"),a=-1===o?e:e.slice(0,o),c=r(-1===o?"":e.slice(o)),u=!1,s=0;s<h.length;s++){var f=h[s];Object.prototype.hasOwnProperty.call(c,f)||(c[f]=b[f],u=!0)}if(!u)return t;var l=Object.keys(c).map(function(t){return t+"="+c[t]}).join("&");return a+(l?"?"+l:"")+n}function c(t){return!t||!t.getAttribute||(!(!t.classList||!t.classList.contains("sb-ml-language-widget-fixed__item"))||(!(!t.closest||!t.closest(".sb-ml-language-widget-fixed"))||!(!t.closest||!t.closest(".link_group"))))}function u(t){if(!c(t)){var e=t.getAttribute("href");if(e){var r=a(e);r!==e&&t.setAttribute("href",r)}var n=t.getAttribute("data-url");if(n){var i=a(n);i!==n&&t.setAttribute("data-url",i)}}}function s(t){var e=t||document;if(e&&(!e.getAttribute||null==e.getAttribute("href")&&null==e.getAttribute("data-url")||u(e),e.querySelectorAll))for(var r=e.querySelectorAll("a[href], [data-url]"),n=0;n<r.length;n++)u(r[n])}function f(){window.MutationObserver&&document.body&&new MutationObserver(function(t){for(var e=0;e<t.length;e++)for(var r=t[e].addedNodes,n=0;n<r.length;n++){var i=r[n];i&&1===i.nodeType&&s(i)}}).observe(document.body,{childList:!0,subtree:!0})}function l(){s(document),f()}var d="sb_url_forward_params",g=["s_","tfc_"],v={categories:!0,q:!0,sort:!0,price_from:!0,price_to:!0,props:!0,favorites:!0},b=o(),h=Object.keys(b);h.length&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",l):l())}();

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.