
Public Domain
JavaScript
2022年03月21日
javascript:document.body.appendChild((function(){var s=document.createElement('style');s.innerHTML='* { user-select: initial !important; -webkit-user-select: initial !important; }'; return s})());var ss = function() { event.stopImmediatePropagation(); return true; }; document.querySelectorAll('*').forEach(function(e) { e.addEventListener('selectstart', ss, true); });
・user-select, -webkit-user-selectをリセット ・onselectstartにおけるpreventDefaultをさせない ・addEventListenerの第3引数(useCapture)にtrueを指定することでできるだけ早い段階でこのハンドラを呼ばせる ・stopImmediatePropagationにより他のハンドラを呼ばせない
No one still commented. Please first comment.
Output