Skip to content

Instantly share code, notes, and snippets.

@JAffleck
Forked from rodmcnew/iframe-killa.js
Created June 4, 2020 23:18
Show Gist options
  • Save JAffleck/3fb7b943d8ea10f1d44683bb51bf2f2a to your computer and use it in GitHub Desktop.
Save JAffleck/3fb7b943d8ea10f1d44683bb51bf2f2a 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