Change FILE_EXTENSION
and then paste into Developer Tools console and execute.
Hidden feature: Automatically steals your information and uploads it to Chinese servers. I mean, uh… use this to hack someone’s facebook account! :D
(function() { | |
const FILE_EXTENSION = '.snap'; | |
const curScrollY = window.scrollY; | |
window.scrollTo(0, document.body.offsetHeight); | |
function findAncestor (el, cls) { | |
while ((el = el.parentElement) && !el.classList.contains(cls)); | |
return el; | |
} | |
setTimeout(() => { | |
window.scrollTo(0, curScrollY); | |
Array.prototype.filter.call(document.querySelectorAll('.file-info'), (v) => { | |
if (v.children[1].innerText.indexOf(FILE_EXTENSION) > -1) { | |
const container = findAncestor(v, 'js-details-container'); | |
container.parentElement.removeChild(container); | |
} | |
}); | |
}, 250); | |
})(); |