瀏覽代碼

added debug protection

sanex3339 9 年之前
父節點
當前提交
91856f0096
共有 1 個文件被更改,包括 22 次插入1 次删除
  1. 22 1
      readme.md

+ 22 - 1
readme.md

@@ -55,7 +55,8 @@ Options for JavaScript obfuscator:
 
 ```javascript
 {
-    rotateUnicodeArray: false
+    rotateUnicodeArray: true
+    // ...
 }
 ```
 
@@ -65,6 +66,26 @@ Type: `boolean` Default: `true`
 
 Compact code output in one line.
 
+####debugProtection
+Type: `boolean` Default: `false`
+
+#####This option can cause browser freeze while Developer Tools is enabled! Use at own risk.
+
+Force enable debug mode in some browsers (mainly based on WebKit) on page load, if Developers Tools panel is enbaled.
+With this options using of Debug panel is impossible.
+
+WebKit based browsers: blocking site window, but you still can navigate through Developers Tools panel.
+Firefox: *not* blocking site window, but you still can't use Debug panel.
+
+####debugProtectionInterval
+Type: `boolean` Default: `false`
+
+#####This option can cause browser freeze even while Developer Tools is disabled! Use at own risk.
+
+Works if `debugProtection` is enabled.
+
+Force enable debug mode in some browsers (mainly based on WebKit) when Developers Tools panel was enbaled, even after page was loaded.
+
 ####rotateUnicodeArray
 Type: `boolean` Default: `true`