PageSourceSearch

https://thefitfork.com/wp-content/plugins/amazon-auto-links/includ…/js/iframe-height-adjuster.min.js?ver=5.4.3

js thefitfork.com collected 2026-09-26 10:09:11 UTC 3,165 bytes, 13 lines download raw bytes

1/* iframe Height Adjuster 1.3.2 */
2(function(window,document){'use strict';var supportedBrowser=!1;if(document.querySelector){if(window.addEventListener){supportedBrowser=!0}}
3window.aalEmbed=window.aalEmbed||{};if(!!window.aalEmbed.OverwriteIframeHeightLimit){return}
4window.aalEmbed.OverwriteIframeHeightLimit=function(e){var data=e.data;if(!(data.secret||data.message||data.value)){return}
5if(/[^a-zA-Z0-9]/.test(data.secret)){return}
6if('height'!==data.message){return}
7var iframes=document.querySelectorAll('iframe.components-sandbox, iframe[data-secret="'+data.secret+'"], iframe.aal-unit-preview-frame'),i,_thisFrame;for(i=0;i<iframes.length;i++){_thisFrame=iframes[i];if(e.source!==_thisFrame.contentWindow&&e.source.parent!==_thisFrame.contentWindow){continue}
8var _iHeight=parseInt(data.value,10);var _attrID=_thisFrame.getAttribute('id');_attrID=_attrID?_attrID:'iframe-'+data.secret+'-'+i;var _eventAdjustIFrameHeight=new CustomEvent('receivedIframeMessage',{'detail':{'number':i,'height':_iHeight,'id':_attrID,'source':_thisFrame,'data':data,'isSandbox':e.source.parent===_thisFrame.contentWindow}});window.dispatchEvent(_eventAdjustIFrameHeight)}};if(supportedBrowser){window.addEventListener('message',window.aalEmbed.OverwriteIframeHeightLimit,!1);window.addEventListener('receivedIframeMessage',debounceCallbackForEvent(adjustFrameHeight))}else{console.log('Wordpress <iframe> limit is still present because the browser is not supported.');console.log('For more information : https://medium.com/@wlarch/overwrite-and-bypass-wordpress-iframe-height-dimension-limit-using-javascript-9d5035c89e37')}
9function adjustFrameHeight(event){var _attrID=event.detail.id;var _iHeight=event.detail.height;event.detail.source.setAttribute('id',_attrID);event.detail.source.setAttribute('height',_iHeight.toString());event.detail.source.classList.add('aal-adjusted-height');var _secret=event.detail.data.secret;var _css='#'+_attrID+' { height: '+_iHeight+'px; overflow: hidden;  } ';if(event.detail.isSandbox){event.detail.source.setAttribute('scrolling','no');var _innerIframe=event.detail.source.contentWindow.document.querySelector('iframe[data-secret="'+_secret+'"]');if(null!==_innerIframe){_innerIframe.setAttribute('height',_iHeight.toString())}}
10var _styleElem=document.getElementById('aal-embed-style-'+_secret+'-'+event.detail.number);if(_styleElem){_styleElem.innerHTML=_css;return}
11var head=document.head||document.getElementsByTagName('head')[0],style=document.createElement('style');style.type='text/css';style.id='aal-embed-style-'+_secret+'-'+event.detail.number;style.appendChild(document.createTextNode(_css));head.appendChild(style)}
12function debounceCallbackForEvent(func,timeout){var timeout=timeout||200;var _timeoutIDs={};var _heightsByIDs={};return function(){var scope=this,args=arguments;var _event=arguments[0];if(_event.detail.height===_heightsByIDs[_event.detail.number]){return}
13clearTimeout(_timeoutIDs[_event.detail.number]);_heightsByIDs[_event.detail.number]=_event.detail.height;_timeoutIDs[_event.detail.number]=setTimeout(function(){func.apply(scope,Array.prototype.slice.call(args))},timeout)}}})(window,document)

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.