Disable image dragging
This revision is from 2024/08/20 20:08. You can Restore it.
<script>
document.addEventListener("DOMContentLoaded", function () {
// Get all images and disable image dragging
var imgs = document.querySelectorAll('img');
imgs.forEach(img => {
img.addEventListener('mousedown', function (e) {
e.preventDefault();
});
img.draggable = false;
});
});
</script>