PageSourceSearch

https://birthrightisraelexcel.com/wp-content/cache/autoptimize/js/…2f932091263f417727ce06adf.js?ver=1786016555

js birthrightisraelexcel.com collected 2026-10-04 14:18:21 UTC 2,217 bytes, 9 lines download raw bytes

1$(document).ready(function(){function getUrlParams(){const urlParams=new URLSearchParams(window.location.search);const params={};for(const[key,value]of urlParams){params[key]=value;}
2return params;}
3function saveParamsToSession(params){if(Object.keys(params).length>0){sessionStorage.setItem('preservedUrlParams',JSON.stringify(params));}}
4function getParamsFromSession(){const savedParams=sessionStorage.getItem('preservedUrlParams');return savedParams?JSON.parse(savedParams):{};}
5function appendParamsToUrl(url,params){if(Object.keys(params).length===0)return url;const urlObj=new URL(url,window.location.origin);Object.keys(params).forEach(key=>{urlObj.searchParams.set(key,params[key]);});return urlObj.toString();}
6function preserveUrlParams(){const currentUrlParams=getUrlParams();const savedParams=getParamsFromSession();const mergedParams={...savedParams,...currentUrlParams};if(Object.keys(mergedParams).length>0){saveParamsToSession(mergedParams);}
7const paramsToUse=mergedParams;if(Object.keys(paramsToUse).length===0)return;const allLinks=$('a[href]');allLinks.each(function(){const $link=$(this);const originalHref=$link.attr('href');if(!originalHref||originalHref.startsWith('#')||originalHref.startsWith('mailto:')||originalHref.startsWith('tel:')||originalHref.startsWith('javascript:')||$link.hasClass('no-param-preserve')){return;}
8const newHref=appendParamsToUrl(originalHref,paramsToUse);if(originalHref!==newHref){$link.attr('href',newHref);}});}
9preserveUrlParams();const observer=new MutationObserver(function(mutations){let shouldUpdate=false;mutations.forEach(function(mutation){if(mutation.type==='childList'&&mutation.addedNodes.length>0){for(let node of mutation.addedNodes){if(node.nodeType===1){if(node.tagName==='A'||node.querySelector&&node.querySelector('a')){shouldUpdate=true;break;}}}}});if(shouldUpdate){setTimeout(preserveUrlParams,50);}});observer.observe(document.body,{childList:true,subtree:true});$(document).on('ajaxComplete ajaxSuccess',function(){setTimeout(preserveUrlParams,50);});$(window).on('load',function(){setTimeout(preserveUrlParams,100);});window.testPreserveUrlParams=preserveUrlParams;setTimeout(preserveUrlParams,500);setTimeout(preserveUrlParams,1000);});

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.