NDOJ/resources/unselectable.htc
Phuoc Dinh Le e66b57ad5f Revert "Change comment style (#67)"
This reverts commit 411f3da45e.
2023-05-20 08:53:27 +09:00

11 lines
No EOL
375 B
Text

<public:component lightweight="true">
<public:attach event="ondocumentready" onevent="unselectable()"/>
<script type="text/javascript">
function unselectable() {
element.onselectstart = function () {
return false;
};
element.setAttribute('unselectable', 'on', 0);
}
</script>
</public:component>