2 ms·
Add this as bookmarklet i.e. url contents in bookmark: javascript:(function(){var style=document.createElement('style');style.type='text/css';style.innerHTML='
by savolai 3y ago
Add this as bookmarklet i.e. url contents in bookmark:
javascript:(function(){var style=document.createElement('style');style.type='text/css';style.innerHTML='* { user-select: all !important; }';document.head.appendChild(style);document.body.oncontextmenu=function(){return true;};})();
(Untested)
- chrismorgan 3y ago> style.type='text/css'; Superfluous. I don’t understand why people often do this on stylesheets or scripts (type="text/javascript"), because it has never at any time been necessary or useful.
- StingyJelly 3y agoThis somehow breaks text selection for me (just selects all text). Here are some useful bookmarklets including a working one to enable right-click and text selection: https://github.com/alanhogan/bookmarklets https://github.com/alanhogan/bookmarklets
- StingyJelly 3y agoJust a note, run them trough https://alanhogan.github.io/bookmarkleter/ https://alanhogan.github.io/bookmarkleter/ before creating the bookmark