1window.addEventListener( 2 'message', 3 function (e) { 4 let eventName = e.data[0] 5 let data = e.data[1] 6 7 const reviewIframes = Array.from( 8 document.querySelectorAll( 9 '.lc_reviews_widget, #msgsndr_reviews, #highlevel_reviews', 10 ), 11 ) 12 13 let selectedIframes = 14 reviewIframes.filter( 15 (iframe) => 16 new URL(iframe.src)?.searchParams?.get('widgetId') === data?.widgetId, 17 ) ?? [] 18 19 if (!selectedIframes?.length) { 20 selectedIframes = 21 reviewIframes.filter( 22 (iframe) => !new URL(iframe.src)?.searchParams?.get('widgetId'), 23 ) ?? [] 24 } 25 26 if (!selectedIframes?.length) { 27 selectedIframes = 28 reviewIframes.filter( 29 (iframe) => 30 new URL(iframe.src)?.searchParams?.get('widgetId') === 31 data?.requestedWidgetId, 32 ) ?? [] 33 } 34 35 selectedIframes?.forEach((iframe) => { 36 if (eventName === 'lc.setHeight' && data?.id === 'lc_reviews_widget') { 37 iframe.style.transition = 'height 0.5s' 38 iframe.height = data?.height 39 } else if ( 40 eventName === 'lc.setFlashHeight' && 41 data?.id === 'lc_reviews_widget' 42 ) { 43 iframe.style.transition = 'height 0.5s' 44 45 iframe.style.width = '' 46 iframe.style.minWidth = '' 47 iframe.style.bottom = '' 48 iframe.style.left = '' 49 iframe.style.top = '' 50 iframe.style.right = '' 51 iframe.style.zIndex = '' 52 iframe.style.position = '' 53 54 data?.height && (iframe.height = data?.height) 55 data?.width && (iframe.width = data?.width) 56 data.zIndex && (iframe.style.zIndex = data.zIndex) 57 data.position && (iframe.style.position = data.position) 58 data.bottom && (iframe.style.bottom = data.bottom) 59 data.left && (iframe.style.left = data.left) 60 data.top && (iframe.style.top = data.top) 61 data.right && (iframe.style.right = data.right) 62 } 63 }) 64 }, 65 false, 66)
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.