Advertisement
Guest User

no-mime.js #2

a guest
May 24th, 2015
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bx = document.body;
  2. if(typeof bx!=="undefined"){
  3.     var script = document.createElement("script");
  4.     script.textContent = 'var ex=document.querySelectorAll("source[type]"),lx=ex.length,ix,px=new RegExp("^(audio|video)","i");if(lx!==0){for(ix=0;ix<lx;ix++){if(px.test(ex[ix].type)===true){ex[ix].removeAttribute("type");}}}';
  5.     bx.appendChild(script);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement