-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
67 lines (59 loc) · 2.06 KB
/
main.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Webuzz - Ultimate Text Copy Disabler</title>
<style>
body {
-webkit-touch-callout: none; /* Disable iOS copy/paste menu */
-webkit-user-select: none; /* Disable text selection */
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
</style>
</head>
<body oncontextmenu="return false;"> <!-- Disable right-click -->
<h1>Webuzz - Ultimate Text Copy Disabler</h1>
<p>This page has disabled text copying, right-clicking, keyboard shortcuts, and more.</p>
<script>
// Disable keyboard shortcuts
document.addEventListener('keydown', function(e) {
if (e.ctrlKey && e.shiftKey && e.code === 'KeyI') {
e.preventDefault(); // Disable Ctrl+Shift+I
}
if (e.ctrlKey && e.code === 'KeyU') {
e.preventDefault(); // Disable Ctrl+U
}
if (e.ctrlKey && e.code === 'KeyF') {
e.preventDefault(); // Disable Ctrl+F
}
if ((e.metaKey || e.ctrlKey) && e.shiftKey && e.code === 'KeyS') {
e.preventDefault(); // Disable Win+Shift+S (Windows) or Command+Shift+S (Mac)
}
});
// Detect extensions that enable copy and right-click
document.addEventListener('contextmenu', function(e) {
var selection = window.getSelection().toString();
if (selection === '') {
var extensionNames = ['enable', 'right', 'copy']; // Example extension names
var detected = extensionNames.some(function(name) {
return document.title.toLowerCase().includes(name.toLowerCase());
});
if (detected) {
e.preventDefault(); // Disable right-click when extension is detected
}
}
});
// Disable print screen (PrtSc) key
window.addEventListener('keyup', function(e) {
if (e.code === 'PrintScreen') {
e.preventDefault();
alert('Print Screen is disabled on this page.');
}
});
</script>
</body>
</html>