diff --git a/docs/index.md b/docs/index.md index e3f10f7..6994a40 100644 --- a/docs/index.md +++ b/docs/index.md @@ -9,7 +9,7 @@ hide: diff --git a/docs/overrides/main.html b/docs/overrides/main.html index ff1d4e4..07a0b6e 100644 --- a/docs/overrides/main.html +++ b/docs/overrides/main.html @@ -7,42 +7,43 @@ {% block scripts %} -{{ super() }} + {{ super() }} - - - - - + }); - - + // Block Ctrl+C and other keyboard shortcuts for copying + document.addEventListener('keydown', function (e) { + if (e.ctrlKey && e.key === 'c') { // Blocks Ctrl+C + e.preventDefault(); + } + if (e.ctrlKey && e.shiftKey && e.key === 'v') { // Blocks Ctrl+Shift+V + e.preventDefault(); + } + }); + + // Additional measures for image protection + document.addEventListener('contextmenu', function (e) { + if (e.target.tagName.toLowerCase() === 'img') { + e.preventDefault(); + } + }); + + + + {% endblock %}