Skip to content

Instantly share code, notes, and snippets.

@thiagodebastos
Created May 3, 2018 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagodebastos/aefa1fa3472a45ba153f30a32e6e748a to your computer and use it in GitHub Desktop.
Save thiagodebastos/aefa1fa3472a45ba153f30a32e6e748a to your computer and use it in GitHub Desktop.
In Domain Property search, remove listings where deposit has been taken
(function () {
document.querySelectorAll('.search-results__listing').forEach(el => {
const price = el.querySelector('.listing-result__price') &&
el.querySelector('.listing-result__price').innerText.toLowerCase();
price === 'deposit taken' && el.remove();
})
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment