Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ran into the same issue on a nasty web app that I have to use daily at work. </p> <p>Tried writing my own bookmarklet which would overwride <em><code>onselectstart</code></em> event handler, but it did not work, apparently because of the additional CSS rules that had to be modified. </p> <p>Then I have found the <em><a href="http://alanhogan.com/code/text-selection-bookmarklet" rel="noreferrer">Enable All Text Selection bookmarklet by Alan Hogan</a></em> that solved the problem for me. The only issue with the bookmarklet is that it does not handle frames/iframes.</p> <p>As an added bonus, it also enables the mouse right-click event on pages that block it.</p> <p>Create a bookmark (e.g. by dragging the icon to the left of the URL for any page to your bookmarks bar), right-click and select <em>Edit</em>, rename to something meaningful, and insert the following code in the URL field:</p> <pre><code>javascript:(function(){function ats(){var styles='*,p,div{user-select:text !important;-moz-user-select:text !important;-webkit-user-select:text !important;}';jQuery('head').append(jQuery('&lt;style /&gt;').html(styles));var allowNormal=function(){return true;};jQuery('*[onselectstart], *[ondragstart], *[oncontextmenu], #songLyricsDiv').unbind('contextmenu').unbind('selectstart').unbind('dragstart').unbind('mousedown').unbind('mouseup').unbind('click').attr('onselectstart',allowNormal).attr('oncontextmenu',allowNormal).attr('ondragstart',allowNormal);}function atswp(){if(window.jQuery){ats();}else{window.setTimeout(atswp,100);}}if(window.jQuery){ats();}else{var s=document.createElement('script');s.setAttribute('src','http://code.jquery.com/jquery-1.9.1.min.js');document.getElementsByTagName('body')[0].appendChild(s);atswp();}})(); </code></pre> <p>It has limitations though in that it is not going to work inside nested frames.</p> <hr> <p>..btw, to make the bookmarklet code readable, I have used the Bookmarkelt Builder at <a href="http://subsimple.com/bookmarklets/jsbuilder.htm" rel="noreferrer">http://subsimple.com/bookmarklets/jsbuilder.htm</a> - just paste the minified bookmarklet text and click the Format button; this tool saved me a lot of time.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload