Skip to content

Instantly share code, notes, and snippets.

@rolandas-valantinas
rolandas-valantinas / mortgage-fees-filter.js
Created April 20, 2016 11:33
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();
}
}
@rolandas-valantinas
rolandas-valantinas / ebay-remove-collection-only.js
Created April 20, 2016 11:30
Remove 'collection only' listings from eBay search
javascript: (function() {
var shipSpan = document.getElementsByClassName("ship");
for (var i = 0; i < shipSpan.length; i++) {
if (shipSpan[i].innerHTML.indexOf("Collection only: Free") != -1) {
shipSpan[i].parentNode.parentNode.parentNode.remove();
}
}
})();
@rolandas-valantinas
rolandas-valantinas / github-show-all-comments.js
Last active April 20, 2016 11:27
Opens all GitHub outdated comments
(function() {
var comments = document.getElementsByClassName("outdated-diff-comment-container");
for (var i = 0; i < comments.length; i++) {
comments[i].className += " open";
}
})();