From 64ec78155cb7818a0fc8f2861113453daa887c34 Mon Sep 17 00:00:00 2001 From: g* Date: Wed, 19 Nov 2025 15:06:16 +0100 Subject: [PATCH] . --- docs/index.md | 2 +- docs/overrides/main.html | 65 ++++++++++++++++++++-------------------- 2 files changed, 34 insertions(+), 33 deletions(-) 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 %}