Skip to content

Instantly share code, notes, and snippets.

@inkdeep
Created December 4, 2014 16:16
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 inkdeep/85e0850469860c2da8f3 to your computer and use it in GitHub Desktop.
Save inkdeep/85e0850469860c2da8f3 to your computer and use it in GitHub Desktop.
Bookmarklet to KILL IFRAME
javascript:(function(){function R(w){try{var d=w.document,j,i,t,T,N,b,r=1,C;for(j=0;t=['object','embed','applet','iframe'][j];++j){T=d.getElementsByTagName(t);for(i=T.length-1;(i+1)&&(N=T[i]);--i)if(j!=3||!R((C=N.contentWindow)?C:N.contentDocument.defaultView)){b=d.createElement('div');b.style.width=N.width; b.style.height=N.height;b.innerHTML='<del>'+(j==3?'third-party '+t:t)+'</del>';N.parentNode.replaceChild(b,N);}}}catch(E){r=0}return r}R(self);var i,x;for(i=0;x=frames[i];++i)R(x)})()
@inkdeep
Copy link
Author

inkdeep commented Dec 4, 2014

I put it in my bookmarks bar and title it with the 'High Voltage Sign' emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment