Created
December 24, 2017 15:13
-
-
Save AlJohri/621d623f3635b858008932e8ab6e1c3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| function removeQuerySelector(selector) { | |
| var el = document.querySelector(selector); | |
| if (el) el.parentNode.removeChild(el); | |
| } | |
| removeQuerySelector('.header-wrap'); | |
| removeQuerySelector('.share-wrap'); | |
| removeQuerySelector('#pl_widget-schools'); | |
| removeQuerySelector('.pl_widget-contact'); | |
| removeQuerySelector('.pl_widget-mortgageCalc'); | |
| removeQuerySelector('.similar-listings'); | |
| removeQuerySelector('.pl_compliance'); | |
| removeQuerySelector('#footer'); | |
| removeQuerySelector('.pl_compliance--listingsAttribution'); | |
| removeQuerySelector('.pl_add_remove_lead_favorites'); | |
| var imgurl = document.querySelector('.flex-active-slide span').style['background-image'].replace('url("', '').replace('")', ''); | |
| var newEl = document.createElement('img'); | |
| newEl.setAttribute('src', imgurl); | |
| newEl.setAttribute('height', '100px'); | |
| var el = document.querySelector('#pl_gallery'); | |
| el.parentNode.replaceChild(newEl, el); }()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment