`;
const base64Content = btoa(unescape(encodeURIComponent(completeContent)));
const iframe = document.createElement(‚iframe‘);
iframe.id = ‚wiwoBlurryIframe‘;
iframe.src = `data:text/html;base64,${base64Content}`;
iframe.width = „100%“; // Breite des Iframes anpassen
node.parentNode.insertBefore(iframe, node.nextSibling);
}else{
node.parentNode.insertBefore(newDiv, node.nextSibling);
}
})(document.querySelector(‚.o-paywall‘));
(function (node) {
if(!node){
return false;
}
function isOneApp() {
if(window.location.host.indexOf(„boerse.wiwo.de“) > -1) {
return false;
}
return true;
}
let hasLocalStorage = false;
const mod = ’storageTest‘;
try {
localStorage.setItem(mod, mod);
localStorage.removeItem(mod);
hasLocalStorage = true;
} catch(e) {}
if (typeof JSON === ‚undefined‘){
hasLocalStorage = false;
}
const body = document.getElementsByTagName( ‚body‘ )[0];
const html = document.getElementsByTagName( ‚html‘ )[0];
const close = node.querySelector(‚.c-app-install__close‘);
const storage = ‚closeAppInst‘;
if(hasLocalStorage && localStorage.getItem(storage)){
const future = new Date();
future.setDate(future.getDate() + 10);
let clickTime = localStorage.getItem(storage);
clickTime = new Date(clickTime);
if(clickTime {
// Generate short url
const updatePathname = window.location.pathname.replace(‚.html/‘, ‚.html‘)
const serviceUrl =
„https://www.wiwo.de/“ +
updatePathname.split(„/“).pop() +
window.location.search;
// Update button url
const buttonUrl = new URL(button.href);
buttonUrl.searchParams.set(„service“, serviceUrl);
button.href = buttonUrl.toString();
};
// Create mutation observer to the href attribute of the button
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.attributeName !== „href“) return;
// Disconnect observer to prevent an infinite loop
observer.disconnect();
// Update service url
updateServiceUrl();
// Reconnect observer
observer.observe(button, { attributes: true });
});
});
// Update service url
updateServiceUrl();
// Connect observer
observer.observe(button, { attributes: true });
})(document.querySelector(„.o-paywall .c-button–red“));
*/
/*
setTimeout(function(){
(function(adTile8){
if (!adTile) return;
if(!~document.querySelector(‚.o-paywall‘)){
return false;
}
const observer2 = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
observer2.disconnect();
document.body.classList.add(‚hasBannerForPaywall‘);
observer2.observe(adTile8, {childList: true, subtree: true});
});
});
observer2.observe(adTile8, {childList: true, subtree: true});
if(document.querySelector(‚#iqadtile8‘)){
document.body.classList.add(‚hasBannerForPaywall‘);
}
})(document.querySelector(‚#ad-iqadtile8‘));
}, 3000);
*/
function removeAppInstallBanner(){
const doc = document.querySelectorAll(‚.c-app-install‘);
if(doc[0] && doc[0].innerHTML === “){
document.body.classList.remove(‚c-app-install–active‘);
}
}
newObserver(‚.c-app-install‘, removeAppInstallBanner);
function isBottomLayer(){
const doc = document.querySelector(‚.piano_app_install_footer‘);
if(doc && doc.innerHTML !== “){
document.body.classList.remove(‚c-app-install–active‘);
}
}
newObserver(‚.piano_app_install_footer‘, isBottomLayer)
function addPaywallClass(){
if(document.querySelector(‚#iqadtile8‘)){
document.body.classList.add(‚hasBannerForPaywall‘);
}
}
if(document.querySelector(‚.o-paywall‘)){
newObserver(‚#iqadtile8‘, addPaywallClass);
}
if (window.hcf_userconfig && window.hcf_userconfig.logged && document.querySelector(‚.o-paywall‘) && document.querySelector(„#js-login“)) {
const jsLogin = document.querySelector(„#js-login“);
jsLogin.innerText = ‚Infos zum WiWo-Abo‘;
jsLogin.setAttribute(‚href‘,’https://www.wiwo.de/plus/‘)
}
((node) => {
!function(e){if(„undefined“!=typeof window){var n,i=0,t=!1,o=!1,r=7,a=“[iFrameSizer]“,s=a.length,f=null,c=window.requestAnimationFrame,l={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},d={},u=null,m={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:“bodyOffset“,id:“iFrameResizer“,interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:“parent“,scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:“scroll“,onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){w(„onMessage function not defined“)},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},g={};window.jQuery&&(n=window.jQuery,n.fn?n.fn.iFrameResize||(n.fn.iFrameResize=function e(n){function i(e,i){H(i,n)}return this.filter(„iframe“).each(i).end()}):$(„“,“Unable to bind to jQuery, it is not fully loaded.“)),“function“==typeof define&&define.amd?define([],L):“object“==typeof module&&“object“==typeof module.exports&&(module.exports=L()),window.iFrameResize=window.iFrameResize||L()}function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,i){e.addEventListener(n,i,!1)}function b(e,n,i){e.removeEventListener(n,i,!1)}function y(e){return d[e]?d[e].log:t}function v(e,n){_(„log“,e,n,y(e))}function $(e,n){_(„info“,e,n,y(e))}function w(e,n){_(„warn“,e,n,!0)}function _(e,n,i,t){if(!0===t&&“object“==typeof window.console){var o,r,s;console[e](a+“[„+(s=“Host page: „+(r=o=n),window.top!==window.self&&(s=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+“: „+r:“Nested host page: „+r),s)+“]“,i)}}function x(e){function n(){i(„Height“),i(„Width“),E(function e(){O(A),I(B),h(„onResized“,A)},A,“init“)}function i(e){var n=Number(d[B][„max“+e]),i=Number(d[B][„min“+e]),t=e.toLowerCase(),o=Number(A[t]);v(B,“Checking „+t+“ is in range „+i+“-„+n),on&&(o=n,v(B,“Set „+t+“ to max value“)),A[t]=““+o}function t(e){return L.slice(L.indexOf(„:“)+r+e)}function o(e,n){var i,t,o=32;i=function i(){var t,o;T(„Send Page Info“,“pageInfo:“+(t=document.body.getBoundingClientRect(),JSON.stringify({iframeHeight:(o=A.iframe.getBoundingClientRect()).height,iframeWidth:o.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(o.top-t.top,10),offsetLeft:parseInt(o.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},t=n,g[t]||(g[t]=setTimeout(function(){g[t]=null,i()},32))}function c(e){var n=e.getBoundingClientRect();return z(B),{x:Math.floor(Number(n.left)+Number(f.x)),y:Math.floor(Number(n.top)+Number(f.y))}}function l(e){var n=e?c(A.iframe):{x:0,y:0},i={x:Number(A.width)+n.x,y:Number(A.height)+n.y};v(B,“Reposition requested from iFrame (offset x:“+n.x+“ y:“+n.y+“)“),window.top!==window.self?window.parentIFrame?window.parentIFrame[„scrollTo“+(e?“Offset“:““)](i.x,i.y):w(B,“Unable to scroll to requested position, window.parentIFrame not found“):(f=i,u(),v(B,“–„))}function u(){!1!==h(„onScroll“,f)?I(B):R()}function m(e){var n={};if(0===Number(A.width)&&0===Number(A.height)){var i=t(9).split(„:“);n={x:i[1],y:i[0]}}else n={x:A.width,y:A.height};h(e,{iframe:A.iframe,screenX:Number(n.x),screenY:Number(n.y),type:A.type})}function h(e,n){return k(B,e,n)}var y,_,x,F,H,S,P,j,L=e.data,A={},B=null;“[iFrameResizerChild]Ready“===L?!function e(){for(var n in d)T(„iFrame requested init“,C(n),d[n].iframe,n)}():a===(„“+L).slice(0,s)&&L.slice(s).split(„:“)[0]in d?(d[B=(A=(_=(y=L.slice(s).split(„:“))[1]?parseInt(y[1],10):0,F=getComputedStyle(x=d[y[0]]&&d[y[0]].iframe),{iframe:x,id:y[0],height:_+function e(n){if(„border-box“!==n.boxSizing)return 0;var i=n.paddingTop?parseInt(n.paddingTop,10):0,t=n.paddingBottom?parseInt(n.paddingBottom,10):0;return i+t}(F)+function e(n){if(„border-box“!==n.boxSizing)return 0;var i=n.borderTopWidth?parseInt(n.borderTopWidth,10):0,t=n.borderBottomWidth?parseInt(n.borderBottomWidth,10):0;return i+t}(F),width:y[2],type:y[3]})).id]&&(d[B].loaded=!0),(H=A.type in{true:1,false:1,undefined:1})&&v(B,“Ignoring init message from meta parent page“),!H&&(P=!0,d[S=B]||(P=!1,w(A.type+“ No settings for „+S+“. Message was: „+L)),P)&&(v(B,“Received: „+L),j=!0,null===A.iframe&&(w(B,“IFrame („+A.id+“) not found“),j=!1),j&&function n(){var i,t=e.origin,o=d[B]&&d[B].checkOrigin;if(o&&““+t!=“null“&&!(o.constructor===Array?function e(){var n=0,i=!1;for(v(B,“Checking connection is from allowed list of origins: „+o);n