PageSourceSearch

https://www.bonusfinder.com/wp-content/plugins/svg-support/js/min/svgs-inline-vanilla-min.js?ver=2.6.1

js bonusfinder.com collected 2026-10-03 21:31:45 UTC 2,014 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(e){let t,n=0;function s(e){if("IMG"!==e.nodeName)return;const s=e.classList.contains(t),i=e.parentElement.classList.contains(t),r=null!==e.closest("."+t);if(("true"===ForceInlineSVGActive||s||r)&&(!svgSettings.skipNested||s||i||!r)){var o=e.id,a=e.className,c=e.src;if(c.endsWith("svg")){var l=new XMLHttpRequest;l.onreadystatechange=function(){if(4===l.readyState&&200===l.status){var t=l.responseText;var s=(new DOMParser).parseFromString(t,"text/html").getElementsByTagName("svg")[0],i=s.id;if(void 0===o||""===o?void 0===i||""===i?(o="svg-replaced-"+n,s.setAttribute("id",o)):o=i:s.setAttribute("id",o),void 0!==a&&""!==a&&s.setAttribute("class",a+" replaced-svg svg-replaced-"+n),s.removeAttribute("xmlns:a"),"on"===frontSanitizationEnabled&&""!==s.outerHTML){var r=DOMPurify.sanitize(s.outerHTML);e.outerHTML=r}else e.replaceWith(s);n++}else 4===l.readyState&&l.status},l.open("GET",c,!0),l.send(null)}}}function i(e){if(e.childNodes.length>0)for(var t=0;t<e.childNodes.length;t++){if("IMG"===e.childNodes[t].nodeName)s(e.childNodes[t]);else i(e.childNodes[t])}}(bodhisvgsInlineSupport=function(){if("true"===ForceInlineSVGActive)for(var e=document.getElementsByTagName("img"),n=0;n<e.length;n++)void 0!==e[n].src&&e[n].src.match(/\.(svg)/)&&(e[n].classList.contains(cssTarget.ForceInlineSVG)||e[n].classList.add(cssTarget.ForceInlineSVG));String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var s=n.lastIndexOf(e,t);return-1!==s&&s===t}),String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t},t="true"===ForceInlineSVGActive?"img."!==cssTarget.Bodhi?cssTarget.ForceInlineSVG:"style-svg":"img."!==cssTarget.Bodhi?cssTarget.Bodhi:"style-svg","string"==typeof t&&(t=t.replace("img.",""),document.querySelectorAll("."+t).forEach(function(e){"IMG"===e.nodeName?s(e):i(e)}))})()});

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.