PageSourceSearch

https://rigsombudsmanden.fo/dist/assets/external-link-handler-96TNdXwu.js

js rigsombudsmanden.fo collected 2026-10-02 19:54:26 UTC 801 bytes, 1 lines download raw bytes

1const s=()=>{var t,r;return!!(typeof window<"u"&&((r=(t=window.themeSettings)==null?void 0:t.links)!=null&&r.openExternalLinksInNewTab))},o=t=>{try{return new URL(t,window.location.origin).origin!==window.location.origin}catch{return!1}},a=(t=document)=>{Array.from(t.querySelectorAll("a[href]")).forEach(n=>{const e=n.getAttribute("href");if(e&&!n.hasAttribute("target")&&!e.startsWith("#")&&!e.startsWith("javascript:")&&!(e.startsWith("mailto:")||e.startsWith("tel:"))&&o(e)){n.setAttribute("target","_blank");const i=(n.getAttribute("rel")||"").split(" ").filter(Boolean);i.includes("noopener")||i.push("noopener"),n.setAttribute("rel",i.join(" "))}})},u=()=>{s()&&a()};export{u as initializeExternalLinkHandler,o as isExternalLink,a as processExternalLinks,s as shouldOpenExternalLinksInNewTab};

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.