Skip to content

Instantly share code, notes, and snippets.

@shiny
Created November 18, 2016 14:05
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 shiny/6b3157da27d186525d7bc2966c54ddb6 to your computer and use it in GitHub Desktop.
Save shiny/6b3157da27d186525d7bc2966c54ddb6 to your computer and use it in GitHub Desktop.
还我右键
javascript:(function() { function R(a){ona = "on"+a; if(window.addEventListener) window.addEventListener(a, function (e) { for(var n=e.originalTarget; n; n=n.parentNode) n[ona]=null; }, true); window[ona]=null; document[ona]=null; if(document.body) document.body[ona]=null; } R("contextmenu"); R("click"); R("mousedown"); R("mouseup"); R("selectstart");})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment