Created
April 20, 2016 11:33
-
-
Save rolandas-valantinas/dc0fc5b2071d489d35504fa90257d73e to your computer and use it in GitHub Desktop.
moneysavingexpert.com/mortgages fees filter
This file contains 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
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(); | |
} | |
} | |
})(); |
This file contains 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
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