Skip to content

Instantly share code, notes, and snippets.

@abubelinha
Forked from rodmcnew/iframe-killa.js
Created March 2, 2022 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abubelinha/a0756a5551c659ae621c62a6e1f53445 to your computer and use it in GitHub Desktop.
Save abubelinha/a0756a5551c659ae621c62a6e1f53445 to your computer and use it in GitHub Desktop.
This is a bookmarklet that removes all iframes from the current page. Paste its code into a bookmark URL field. 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)}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment