Skip to content

Instantly share code, notes, and snippets.

@loganfuller
Created November 5, 2015 15:52
Show Gist options
  • Save loganfuller/c017ded654e54c3103a4 to your computer and use it in GitHub Desktop.
Save loganfuller/c017ded654e54c3103a4 to your computer and use it in GitHub Desktop.
javascript:(function()%7Bfunction onWheel(a)%7Ba.target%3D%3D%3DiFrame%26%26a.preventDefault()%7Dvar windowHeight%3Dwindow.innerHeight%2CbaseUrl%3D"http%3A%2F%2Freebee-web.herokuapp.com%2Fiframe"%2CiFrame%3Bif(-1!%3D%3Ddocument.location.host.search("homehardware"))iFrame%3Ddocument.getElementById("flyerIFrame")%2CiFrame.src%3DbaseUrl%2B"%3FstoreId%3D10032"%2CiFrame.removeAttribute("style")%3Belse if(-1!%3D%3Ddocument.location.host.search("badboy"))%7Bvar iFrameWrap%3Ddocument.getElementById("misc_page_content")%2CheaderHeight%3Ddocument.getElementsByClassName("header-container")%5B0%5D.offsetHeight%3BiFrame%3Ddocument.createElement("iframe")%2CiFrame.src%3DbaseUrl%2B"%3FflyerId%3D1165075"%2CiFrame.setAttribute("frameborder"%2C0)%2CiFrame.setAttribute("allowfullscreen"%2C"true")%2CiFrame.setAttribute("scrolling"%2C"no")%2CiFrame.setAttribute("allowtransparency"%2C"true")%2CiFrame.style.width%3D"100%25"%2CiFrame.style.marginTop%3D"20px"%2CiFrame.style.height%3DwindowHeight-headerHeight-40%2B"px"%2CiFrameWrap.innerHTML%3D""%2CiFrameWrap.appendChild(iFrame)%7Delse if(-1!%3D%3Ddocument.location.host.search("factorydirect"))%7Bvar headerHeight%3Ddocument.getElementById("headerlogo").offsetHeight%3BiFrame%3Ddocument.getElementById("flipp-iframe")%2CiFrame.src%3DbaseUrl%2B"%3FstoreId%3D10131"%2CiFrame.style.marginTop%3D"8px"%2CiFrame.style.height%3DwindowHeight-headerHeight-24%2B"px"%2Cdocument.documentElement.style.overflow%3D"hidden"%7Delse if(-1!%3D%3Ddocument.location.host.search("teppermans"))%7Bvar iFrameWrap%3Ddocument.getElementsByClassName("flyer-left")%5B0%5D%3Bdocument.getElementsByClassName("static-page-wrapper")%5B0%5D.style.background%3D"none"%2CiFrame%3Ddocument.createElement("iframe")%2CiFrame.src%3DbaseUrl%2B"%3FstoreId%3D10215"%2CiFrame.setAttribute("frameborder"%2C0)%2CiFrame.setAttribute("allowfullscreen"%2C"true")%2CiFrame.setAttribute("scrolling"%2C"no")%2CiFrame.setAttribute("allowtransparency"%2C"true")%2CiFrame.style.width%3D"125%25"%2CiFrame.style.marginTop%3D"10px"%2CiFrame.style.height%3D"600px"%2CiFrameWrap.innerHTML%3D""%2CiFrameWrap.style.textAlign%3D"left"%2CiFrameWrap.appendChild(iFrame)%7Ddocument.body.addEventListener("mousewheel"%2ConWheel)%2Cdocument.body.addEventListener("DOMMouseScroll"%2ConWheel)%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment