Re-Enable Right Click and Highlighting on Minirlss.net

Reverses scripts that are used to disable right clicking and highlighting of text - currently only for minirlss.net, but could be modified to work on other sites.

  1. // ==UserScript==
  2. //
  3. // @name Re-Enable Right Click and Highlighting on Minirlss.net
  4. //
  5. // @description Reverses scripts that are used to disable right clicking and highlighting of text - currently only for minirlss.net, but could be modified to work on other sites.
  6. //
  7. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js
  8. //
  9. //Version Number
  10. // @version 1.0.1
  11. //
  12. // Urls process this user script on
  13. // @match http*://minirlss.net/*
  14. // @match http*://www.minirlss.net/*
  15. //
  16. // @namespace https://greasyfork.org/users/2329
  17. // ==/UserScript==
  18. //*Functions*
  19. function allowTextSelection(){
  20. var styles='*,p,div{user-select:text !important;-moz-user-select:text !important;-webkit-user-select:text !important;}';
  21. jQuery('head').append(jQuery('<style />').html(styles));
  22. window.console&&console.log('allowTextSelection');
  23. var allowNormal = function(){
  24. return true;
  25. };
  26. window.console&&console.log('Elements unbound: '+
  27. jQuery('*[onselectstart], *[ondragstart], *[oncontextmenu], #songLyricsDiv'
  28. ).unbind('contextmenu').unbind('selectstart').unbind('dragstart'
  29. ).unbind('mousedown').unbind('mouseup').unbind('click'
  30. ).attr('onselectstart',allowNormal).attr('oncontextmenu',allowNormal
  31. ).attr('ondragstart',allowNormal).size());
  32. }
  33.  
  34. //Main.Code*
  35. allowTextSelection();
  36.  
  37. void(document.oncontextmenu=null);