Iframe Killa bookmarklet removes all iFrames from a loaded web-page

Iframe Killa bookmarklet by Rod McNew removes all iframes from the current page. Once added to the (Chrome, Edge) browser Bookmarks or Favorites bar, click the bookmark to remove all iframes. Once started, it also removes newly spawned iframes every 100ms.

javascript:void(

function(){

setInterval(function(){

document.querySelectorAll('iframe').forEach(function(element)

{

console.log('Iframe Killa - Removing Element:', element);

element.parentNode.removeChild(element)

})

},100)}());

Besides iframe, the code can be adapted to removed any other pesky HTML element that is hindering your viewing experience.

Comments

Popular posts from this blog

Websites that track traffic in Indian cities

HOW TO dynamically generate a Word document with custom header & footer

Search all your ebooks with a keyword by putting them on Google Drive