网页内启用右键的方法: 8 `" l$ C- [) \2 \; N4 R0 t1 a在游戏夹内找到"index.html",右键用记事本打开 ' F r( J( A, d* J6 ^2 B: G( M3 ]+ |在里面找以下的一段Code: 7 _* J( E: E- v// JavaScript code to toggle the "hidden" class when clicking the right side bar toggle button + n/ a6 g( ^) { 6 h9 u7 ]3 I4 {* `, o/ i" bdocument.addEventListener('DOMContentLoaded', function () {/ W. `6 Z. @2 d+ t: [(欢迎访问老王论坛:laowang.vip)
const rightUiBar = document.getElementById('right-ui-bar'); $ l# w z5 B4 [: x" ~# k m$ O const rightUiBarToggle = document.getElementById('right-ui-bar-toggle');: Q+ |2 L7 p4 w7 U2 y/ e(欢迎访问老王论坛:laowang.vip)
$ G9 C. {" ?+ H- m; |. M(欢迎访问老王论坛:laowang.vip)
// Toggle the "hidden" class when clicking the right side bar toggle button 4 O4 j2 J4 n4 K# u8 T. r rightUiBarToggle.addEventListener('click', function () { . k: \/ e; M* z/ x( H rightUiBar.classList.toggle('hidden'); + d" w& s3 W- n5 s7 n }); ! A3 V. g( s/ F( @});% q, m+ E2 _) j. V' k5 M(欢迎访问老王论坛:laowang.vip)
+ ^* W/ h/ g& B ^; r, R7 q% Y4 H! zwindow.addEventListener('contextmenu', function(event) { ) f8 H4 |: a' B& W2 K5 N7 j( z2 r! B event.preventDefault(); 1 P; y+ s9 n+ b7 H( Z; _2 d // You can remove the alert or customize the message below- ~8 C" }' a/ s/ ~(欢迎访问老王论坛:laowang.vip)
alert('Right-click is disabled in this game.'); & {5 s) [4 h/ q, t5 z2 \}, false);9 x# X9 a8 W. `5 ?(欢迎访问老王论坛:laowang.vip)