forked from bombastictranz/builder.io
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OtAutoBlock.js.download
9 lines (9 loc) · 12.3 KB
/
OtAutoBlock.js.download
1
2
3
4
5
6
7
8
9
!function(){function q(a){var c=[],b=[],e=function(f){for(var g={},h=0;h<u.length;h++){var d=u[h];if(d.Tag===f){g=d;break}var l=void 0,k=d.Tag;var C=(k=-1!==k.indexOf("http:")?k.replace("http:",""):k.replace("https:",""),-1!==(l=k.indexOf("?"))?k.replace(k.substring(l),""):k);if(f&&(-1!==f.indexOf(C)||-1!==d.Tag.indexOf(f))){g=d;break}}return g}(a);return e.CategoryId&&(c=e.CategoryId),e.Vendor&&(b=e.Vendor.split(":")),!e.Tag&&D&&(b=c=function(f){var g=[],h=function(d){var l=document.createElement("a");
return l.href=d,-1!==(d=l.hostname.split(".")).indexOf("www")||2<d.length?d.slice(1).join("."):l.hostname}(f);v.some(function(d){return d===h})&&(g=["C0004"]);return g}(a)),{categoryIds:c,vsCatIds:b}}function w(a){return!a||!a.length||(a&&window.OptanonActiveGroups?a.every(function(c){return-1!==window.OptanonActiveGroups.indexOf(","+c+",")}):void 0)}function m(a,c){void 0===c&&(c=null);var b=window,e=b.OneTrust&&b.OneTrust.IsVendorServiceEnabled;b=e&&b.OneTrust.IsVendorServiceEnabled();return"Categories"===
r||"All"===r&&e&&!b?w(a):("Vendors"===r||"All"===r&&e&&b)&&w(c)}function n(a){a=a.getAttribute("class")||"";return-1!==a.indexOf("optanon-category")||-1!==a.indexOf("ot-vscat")}function p(a){return a.hasAttribute("data-ot-ignore")}function x(a,c,b){void 0===b&&(b=null);var e=a.join("-"),f=b&&b.join("-"),g=c.getAttribute("class")||"",h="",d=!1;a&&a.length&&-1===g.indexOf("optanon-category-"+e)&&(h=("optanon-category-"+e).trim(),d=!0);b&&b.length&&-1===g.indexOf("ot-vscat-"+f)&&(h+=" "+("ot-vscat-"+
f).trim(),d=!0);d&&c.setAttribute("class",h+" "+g)}function y(a,c,b){void 0===b&&(b=null);var e;a=a.join("-");b=b&&b.join("-");return-1===c.indexOf("optanon-category-"+a)&&(e=("optanon-category-"+a).trim()),-1===c.indexOf("ot-vscat-"+b)&&(e+=" "+("ot-vscat-"+b).trim()),e+" "+c}function z(a){var c,b=q(a.src||"");(b.categoryIds.length||b.vsCatIds.length)&&(x(b.categoryIds,a,b.vsCatIds),m(b.categoryIds,b.vsCatIds)||(a.type="text/plain"),a.addEventListener("beforescriptexecute",c=function(e){"text/plain"===
a.getAttribute("type")&&e.preventDefault();a.removeEventListener("beforescriptexecute",c)}))}function A(a){var c=a.src||"",b=q(c);(b.categoryIds.length||b.vsCatIds.length)&&(x(b.categoryIds,a,b.vsCatIds),m(b.categoryIds,b.vsCatIds)||(a.removeAttribute("src"),a.setAttribute("data-src",c)))}var u=JSON.parse('[{"Tag":"https://www.builder.io/_next/static/chunks/14.21ef24f7a778f0a4fd4f.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://unpkg.com/@builder.io/forum-tracking@latest/dist/index.browser.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://cdn.builder.io/static/js/217.b1c32604.chunk.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/AHhap1PyAao","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.googletagmanager.com/gtm.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1700214900000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2F61f6f1a3e99c4c2b95701b4b2e10cb92","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://cdn.jsdelivr.net/npm/@builder.io/persist-attribution@latest/dist/persist-attribution.min.js","CategoryId":["C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/_n_pd52_Ulk","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1700214600000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/2py23Jf0Yyk","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1702287000000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1700214300000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://cdn.builder.io/static/js/208.7c5eb468.chunk.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/ZLQhBeHgxcc","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/fYQqM8Bl2vU","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://qwik.builder.io/~partytown/partytown-sandbox-sw.html","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/wGypiuM9a-U","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/WgIYwOQeSmw","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1702287600000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1702287300000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://static.zdassets.com/web_widget/classic/latest/web-widget-main-1bfc6fa.js","CategoryId":["C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/MPTsvUBHkgI","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://px.ads.linkedin.com/collect","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/mA-Cocc9dRE","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/IgEZc-JN_fk","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.builder.io/c/~partytown/partytown-sandbox-sw.html","CategoryId":["C0002","C0003","C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/JjG2fTxv_dY","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/8KMVDq1MWxo","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://static.zdassets.com/web_widget/classic/latest/web-widget-chat-sdk-0345ad6.js","CategoryId":["C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/uL-grjeYc18","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/x2eF3YLiNhY","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/IVAHNC00RAo","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1700215500000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://js.hs-banner.com/v2/5149643/banner.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1700215200000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/hYb2RjLVeN0","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.builder.io/_next/static/chunks/webpack-a6acbee3c6b3327fa766.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/zqE4_Ketw7I","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/TmbBHwcJ6vg","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1700215800000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/l2mBk9meSvc","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/k2uYwPY7wEo","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.google-analytics.com/analytics.js","CategoryId":["C0002","C0004"],"Vendor":null},{"Tag":"https://cdn.builder.io/js/site-tracking@latest/dist/index.browser.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/cL9DLUCrDx0","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/CdzecYmQ88g","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/bIBIIZIcEYM","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/OfNpwY-680w","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/86CjEllFLp0","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://ws.zoominfo.com/pixel/YkQV5texcwM26aYtS31R","CategoryId":["C0003"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1702288500000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/EkM1KeUU7lQ","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/VN05RN_R_Wg","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://ws.zoominfo.com/pixel/collect","CategoryId":["C0003"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1702288800000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/C0UxEQo4d7s","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.builder.io/_next/static/chunks/webpack-1be1e7b5db17db261d15.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/bFWMpl5yr9o","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/N4Rw0WJUlP4","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.linkedin.com/px/li_sync","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/fFjzpB3JkwU","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/buuNmYla9nI","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/nxaRKSQMMco","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/I9_xQsVDrgc","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1702286400000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/pBC6gpQY9pU","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/DuGyH5RvfbY","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/zRWZK1wIiao","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/JOWJt3pC_lg","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://track.hubspot.com/__ptq.gif","CategoryId":["C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/cwCqnvieEeI","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://js.hs-analytics.net/analytics/1702287900000/5149643.js","CategoryId":["C0002","C0003"],"Vendor":null},{"Tag":"https://www.googletagmanager.com/gtag/js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/FhF-K8fxDIM","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/oSI_Lrn5xI8","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/1GGpvVMLY6E","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.builder.io/_next/static/chunks/13.6e7485e0710ee210547c.js","CategoryId":["C0002"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/7i-C0cckUn4","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/r-GSGH2RxJs","CategoryId":["C0004"],"Vendor":null},{"Tag":"https://static.zdassets.com/web_widget/classic/latest/web-widget-chat-sdk-1bfc6fa.js","CategoryId":["C0003"],"Vendor":null},{"Tag":"https://www.youtube.com/embed/DYvJFaCivTs","CategoryId":["C0004"],"Vendor":null}]'),
D=JSON.parse("false"),r=JSON.parse('"Categories"'),v=(v=[""]).filter(function(a){if("null"!==a&&a.trim().length)return a}),t=["embed","iframe","img","script"],B=((new MutationObserver(function(a){Array.prototype.forEach.call(a,function(c){Array.prototype.forEach.call(c.addedNodes,function(e){1!==e.nodeType||-1===t.indexOf(e.tagName.toLowerCase())||n(e)||p(e)||("script"===e.tagName.toLowerCase()?z:A)(e)});var b=c.target;!c.attributeName||n(b)&&p(b)||("script"===b.nodeName.toLowerCase()?z(b):-1!==t.indexOf(c.target.nodeName.toLowerCase())&&
A(b))})})).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src"]}),document.createElement);document.createElement=function(){for(var a,c,b=[],e=0;e<arguments.length;e++)b[e]=arguments[e];return"script"===b[0].toLowerCase()||-1!==t.indexOf(b[0].toLowerCase())?(a=B.bind(document).apply(void 0,b),c=a.setAttribute.bind(a),Object.defineProperties(a,{src:{get:function(){try{return a.cloneNode().src}catch(f){return a.getAttribute("src")||""}},set:function(f){var g=
b[0],h,d,l,k="";k=q(k="string"==typeof f||f instanceof Object?f.toString():k);return d=g,l=a,!(h=k).categoryIds.length&&!h.vsCatIds.length||"script"!==d.toLowerCase()||n(l)||m(h.categoryIds,h.vsCatIds)||p(l)?(d=g,h=a,!(l=k).categoryIds.length||-1===t.indexOf(d.toLowerCase())||n(h)||m(l.categoryIds,l.vsCatIds)||p(h)?c("src",f):(a.removeAttribute("src"),c("data-src",f),(g=a.getAttribute("class"))||c("class",y(k.categoryIds,g||"",k.vsCatIds)))):(c("type","text/plain"),c("src",f)),!0}},type:{get:function(){return a.getAttribute("type")||
""},set:function(f){return h=c,d=q((g=a).src||""),h("type",!d.categoryIds.length&&!d.vsCatIds.length||n(g)||m(d.categoryIds,d.vsCatIds)||p(g)?f:"text/plain"),!0;var g,h,d}},class:{set:function(f){return h=c,!(d=q((g=a).src)).categoryIds.length&&!d.vsCatIds.length||n(g)||m(d.categoryIds,d.vsCatIds)||p(g)?h("class",f):h("class",y(d.categoryIds,f,d.vsCatIds)),!0;var g,h,d}}}),a.setAttribute=function(f,g,h){"type"!==f&&"src"!==f||h?c(f,g):a[f]=g},a):B.bind(document).apply(void 0,b)}}();