Skip to content

Instantly share code, notes, and snippets.

@kosso
Last active November 19, 2019 11:08
Show Gist options
  • Save kosso/58362765cad156ae416e0efac736740c to your computer and use it in GitHub Desktop.
Save kosso/58362765cad156ae416e0efac736740c to your computer and use it in GitHub Desktop.
A BOOKMARKET TO MAKE THE INDEPENDENT NEWS WEBSITE MORE USER-RESPECTFUL
javascript:(function(){function R(w){try{var d=w.document,j,i,t,T,N,b,r=1,C;for(j=0;t=["video","amp-brightcove","figure","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)})()
/////
Copy the line of code above and and set it to the URL value of a browser bookmark.
It should remove the annoying video at the top of the articles when you click it (not automatic).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment