Skip to content

Instantly share code, notes, and snippets.

@rolandas-valantinas
Created April 20, 2016 11:33
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 rolandas-valantinas/dc0fc5b2071d489d35504fa90257d73e to your computer and use it in GitHub Desktop.
Save rolandas-valantinas/dc0fc5b2071d489d35504fa90257d73e to your computer and use it in GitHub Desktop.
moneysavingexpert.com/mortgages fees filter
javascript: (function() {
var feeBlock = document.querySelectorAll("[data-popup='popupMortgageFees']");
var fee;
for (var i = 1; i < feeBlock.length; i++) {
fee = feeBlock[i].parentNode.getElementsByClassName("mainval");
fee = fee[0].innerHTML.replace("£", '').replace(",", '');
if (fee > 550) {
feeBlock[i].parentNode.parentNode.parentNode.remove();
}
}
})();
javascript:(function(){var feeBlock=document.querySelectorAll("[data-popup='popupMortgageFees']");var fee;for(var i=1;i<feeBlock.length;i++){fee=feeBlock[i].parentNode.getElementsByClassName("mainval");fee=fee[0].innerHTML.replace("£",'').replace(",",'');if(fee>550){feeBlock[i].parentNode.parentNode.parentNode.remove();}}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment