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