Skip to content

Commit 40fd0aa

Browse files
committed
Missing pieces of protection
1 parent 9f750f4 commit 40fd0aa

32 files changed

+1346
-969
lines changed

navigator-html-injectables/src/comms/keys.ts

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type CommsEventKey =
1818
"text_selected" |
1919
"media_play" |
2020
"media_pause" |
21-
"suspicious_activity";
21+
"content_protection";
2222
;
2323

2424
export type CommsCommandKey =
@@ -44,7 +44,21 @@ export type CommsCommandKey =
4444
"activate" |
4545
"shake" |
4646
"force_webkit_recalc" |
47-
"content_protect" |
48-
"enable_scroll_protection" |
49-
"disable_scroll_protection";
50-
;
47+
"peripherals_protection" |
48+
"scroll_protection" |
49+
"print_protection";
50+
;
51+
52+
export type SuspiciousActivityType =
53+
| "developer_tools"
54+
| "select_all"
55+
| "suspicious_selection"
56+
| `custom:${string}` // Allow custom event types with 'custom:' prefix
57+
| "bulk_copy"
58+
| "suspicious_scrolling"
59+
| "suspicious_snapping"
60+
| "drag_detected"
61+
| "drop_detected"
62+
| "print"
63+
| "context_menu"
64+
| "blocked_keyboard_shortcut";

navigator-html-injectables/src/helpers/PatternAnalyzer.ts

Lines changed: 0 additions & 68 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from './comms';
22
export * from './modules';
3-
export * from './Loader';
3+
export * from './Loader';
4+
export * from './protection';

0 commit comments

Comments
 (0)