Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. javascript:(function()%7Bconst container %3D document.getElementById('shortlist-grid')%3Bconst items %3D container.querySelectorAll('.card.listing')%3Bfunction findRemovedProperties(list) %7Blist.forEach(item %3D> %7Bconst url %3D item.querySelector('.projectListingsClickThrough').href%3Bfetch(url).then(response %3D> %7Bif (response.url.includes('%3Fsuburb')) %7Bitem.classList.add('kill-it-with-fire')%3Bitem.querySelector('.outer-wrap').style.boxShadow %3D 'inset 0px 0px 120px 0px rgba(255%2C0%2C0%2C1)'%3B%7D%7D)%7D)%3Breturn Promise.resolve()%3B%7DfindRemovedProperties(items).then(() %3D> %7Bconst newButton %3D document.createElement('button')%3BnewButton.addEventListener('click'%2C () %3D> %7Bconst itemsForDeath %3D document.querySelectorAll('.kill-it-with-fire')%3BitemsForDeath.forEach(item %3D> %7B%2F%2F item.querySelector('.star').click()%3Bitem.querySelector('.star').classList.remove('shortlisted')%3B%7D)%7D)%3BnewButton.style %3D 'z-index%3A 20%3B position%3A fixed%3B width%3A 100px%3B height%3A 100px%3B left%3A 20px%3B top%3A 20px%3B background-color%3A red%3B color%3A black%3B'%3BnewButton.innerHTML %3D 'UNSTAR ALL PROPERTIES MARKED IN RED'%3Bdocument.documentElement.appendChild(newButton)%3B%7D)%7D)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement