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

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)