Action_Debug #17

Merged
yuysh merged 6 commits from Action_Debug into master 2025-09-05 03:55:48 +00:00
2 changed files with 21 additions and 0 deletions
Showing only changes of commit ec4cd1efc9 - Show all commits
+17
View File
@@ -0,0 +1,17 @@
document.addEventListener('DOMContentLoaded', function() {
// 禁用右键菜单
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
});
// 禁用文本选择
document.styleSheets[0].addRule('body', '-webkit-user-select: none!important;');
document.styleSheets[0].addRule('body', '-moz-user-select: none!important;');
document.styleSheets[0].addRule('body', '-ms-user-select: none!important;');
document.styleSheets[0].addRule('body', 'user-select: none!important;');
// 禁用拖拽
document.addEventListener('dragstart', function(e) {
e.preventDefault();
});
});
+4
View File
@@ -59,6 +59,10 @@ html_theme_options = {
# ================= 高级功能 =================
html_js_files = [
'custom.js'
]
# ================== Mermaid 配置 ==================
def find_system_chrome():
"""自动检测系统 Chrome/Chromium 可执行路径"""