Skip to content

Instantly share code, notes, and snippets.

@sydneyitguy
Created May 11, 2017 06:37
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 sydneyitguy/3ba7ebee8b31c708c20793604c0f606b to your computer and use it in GitHub Desktop.
Save sydneyitguy/3ba7ebee8b31c708c20793604c0f606b to your computer and use it in GitHub Desktop.
Fuck annoying JS preventers (Re-enable copy & paste / right-click functions on the webpage)
javascript:function r(d){d.oncontextmenu=null;d.onselectstart=null;d.ondragstart=null;d.onkeydown=null;d.onmousedown=null; d.body.oncontextmenu=null;d.body.onselectstart=null;d.body.ondragstart=null;d.body.onkeydown=null; d.body.onmousedown=null;};function unify(w){r(w.document);if(w.frames.length>0){for(var i=0;i<w.frames.length;i++){try{unify(w.frames[i].window);}catch(e){}};};}; unify(self);jQuery(document).unbind();jQuery('div, a, p, body, html, section').unbind();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment