TheVideoVolcano

ilive.to Mouse Functionality Restore Script

Oct 20th, 2014
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //ilive.to
  2.  
  3. //When on ilive.to on chrome, press F12, and navigate to the 'CONSOLE' tab an past the following below to restore the mouse //clicking functionality to default.
  4. //Or, you can put this in a userscript, but you will require the meta block and such.
  5.  
  6. var body = document.getElementsByTagName("body")[0];
  7.  
  8. if (body != undefined){ //bit of a dumb check, but still
  9.  
  10. body.oncontextmenu = "return true;"
  11. body.onselectstart = "return true;"
  12. body.ondragstart = "return true;"
  13. body.oncopy = "return true;"
  14. body.oncut = "return true;"
  15.  
  16. console.log("Right click functions restored");
  17. alert("All mouse click functions restored");
  18.  
  19. }else{
  20.  
  21. console.log("Body not found");
  22. alert("Body not found");
  23.  
  24. }
Add Comment
Please, Sign In to add comment