PageSourceSearch

https://online.hoaresbank.co.uk/portalserver/v2/vendor/oneTrust/consent/development/OtAutoBlock.js

js hoaresbank.co.uk collected 2026-10-01 12:03:22 UTC 5,195 bytes, 1 lines download raw bytes

1!function(){function t(t){var e=[],r=[],n=function(t){for(var e={},r=0;r<d.length;r++){var n=d[r];if(n.Tag===t){e=n;break}var a,s=n.Tag,o=-1!==(a=(s=-1!==s.indexOf("http:")?s.replace("http:",""):s.replace("https:","")).indexOf("?"))?s.replace(s.substring(a),""):s;if(t&&(-1!==t.indexOf(o)||-1!==n.Tag.indexOf(t))){e=n;break}}return e}(t);return n.CategoryId&&(e=n.CategoryId),n.Vendor&&(r=n.Vendor.split(":")),!n.Tag&&u&&(r=e=function(t){var e=[],r=function(t){var e=document.createElement("a");return e.href=t,-1!==(t=e.hostname.split(".")).indexOf("www")||2<t.length?t.slice(1).join("."):e.hostname}(t);return l.some((function(t){return t===r}))?["C0004"]:e}(t)),{categoryIds:e,vsCatIds:r}}function e(t){return!t||!t.length||(t&&window.OptanonActiveGroups?t.every((function(t){return-1!==window.OptanonActiveGroups.indexOf(","+t+",")})):void 0)}function r(t,r){void 0===r&&(r=null);var n=window,a=n.OneTrust&&n.OneTrust.IsVendorServiceEnabled;return n=a&&n.OneTrust.IsVendorServiceEnabled(),"Categories"===g||"All"===g&&a&&!n?e(t):("Vendors"===g||"All"===g&&a&&n)&&e(r)}function n(t){return-1!==(t=t.getAttribute("class")||"").indexOf("optanon-category")||-1!==t.indexOf("ot-vscat")}function a(t){return t.hasAttribute("data-ot-ignore")}function s(t,e,r){void 0===r&&(r=null);var n=t.join("-"),a=r&&r.join("-"),s=e.getAttribute("class")||"",o="",i=!1;t&&t.length&&-1===s.indexOf("optanon-category-"+n)&&(o=("optanon-category-"+n).trim(),i=!0),r&&r.length&&-1===s.indexOf("ot-vscat-"+a)&&(o+=" "+("ot-vscat-"+a).trim(),i=!0),i&&e.setAttribute("class",o+" "+s)}function o(t,e,r){var n;return void 0===r&&(r=null),t=t.join("-"),r=r&&r.join("-"),-1===e.indexOf("optanon-category-"+t)&&(n=("optanon-category-"+t).trim()),-1===e.indexOf("ot-vscat-"+r)&&(n+=" "+("ot-vscat-"+r).trim()),n+" "+e}function i(e){var n,a=t(e.src||"");(a.categoryIds.length||a.vsCatIds.length)&&(s(a.categoryIds,e,a.vsCatIds),r(a.categoryIds,a.vsCatIds)||(e.type="text/plain"),e.addEventListener("beforescriptexecute",n=function(t){"text/plain"===e.getAttribute("type")&&t.preventDefault(),e.removeEventListener("beforescriptexecute",n)}))}function c(e){var n=e.src||"",a=t(n);(a.categoryIds.length||a.vsCatIds.length)&&(s(a.categoryIds,e,a.vsCatIds),r(a.categoryIds,a.vsCatIds)||(e.removeAttribute("src"),e.setAttribute("data-src",n)))}var d=JSON.parse('[{"Tag":"https://www.google-analytics.com/analytics.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://banking.hoaresbank.co.uk/portalserver/static/portalclient/client.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://banking.hoaresbank.co.uk/portalserver/ruxitagentjs_ICA27SVfhqrx_10195200709173710.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://banking.hoaresbank.co.uk/portalserver/ruxitagentjs_ICA27SVfhqrx_10181191119154660.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://banking.hoaresbank.co.uk/portalserver/ruxitagentjs_ICA27SVfhqrx_10193200616095656.js","CategoryId":["C0002"],"Vendor":null}]'),u=JSON.parse("false"),g=JSON.parse('"Categories"'),l=(l=[""]).filter((function(t){if("null"!==t&&t.trim().length)return t})),f=["embed","iframe","img","script"],p=(new MutationObserver((function(t){Array.prototype.forEach.call(t,(function(t){Array.prototype.forEach.call(t.addedNodes,(function(t){1!==t.nodeType||-1===f.indexOf(t.tagName.toLowerCase())||n(t)||a(t)||("script"===t.tagName.toLowerCase()?i:c)(t)}));var e=t.target;!t.attributeName||n(e)&&a(e)||("script"===e.nodeName.toLowerCase()?i(e):-1!==f.indexOf(t.target.nodeName.toLowerCase())&&c(e))}))})).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src"]}),document.createElement);document.createElement=function(){for(var e,s,i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];return"script"===i[0].toLowerCase()||-1!==f.indexOf(i[0].toLowerCase())?(e=p.bind(document).apply(void 0,i),s=e.setAttribute.bind(e),Object.defineProperties(e,{src:{get:function(){try{return!/^(https?:|\/\/|file:|ftp:|data:|blob:)/i.test(e.getAttribute("src"))&&e.getAttribute("src")?new URL(e.getAttribute("src"),document.baseURI).href:e.getAttribute("src")||""}catch(t){return e.getAttribute("src")||""}},set:function(c){var d,u,g,l=i[0],p="";return p=t(p="string"==typeof c||c instanceof Object?c.toString():p),u=l,g=e,!(d=p).categoryIds.length&&!d.vsCatIds.length||"script"!==u.toLowerCase()||n(g)||r(d.categoryIds,d.vsCatIds)||a(g)?(u=l,d=e,!(g=p).categoryIds.length||-1===f.indexOf(u.toLowerCase())||n(d)||r(g.categoryIds,g.vsCatIds)||a(d)?s("src",c):(e.removeAttribute("src"),s("data-src",c),(l=e.getAttribute("class"))||s("class",o(p.categoryIds,l||"",p.vsCatIds)))):(s("type","text/plain"),s("src",c)
1),!0}},type:{get:function(){return e.getAttribute("type")||""},set:function(o){return s("type",!(c=t((i=e).src||"")).categoryIds.length&&!c.vsCatIds.length||n(i)||r(c.categoryIds,c.vsCatIds)||a(i)?o:"text/plain"),!0;var i,c}},class:{set:function(i){return d=s,!(u=t((c=e).src)).categoryIds.length&&!u.vsCatIds.length||n(c)||r(u.categoryIds,u.vsCatIds)||a(c)?d("class",i):d("class",o(u.categoryIds,i,u.vsCatIds)),!0;var c,d,u}}}),e.setAttribute=function(t,r,n){"type"!==t&&"src"!==t||n?s(t,r):e[t]=r},e):p.bind(document).apply(void 0,i)}}();

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.