aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/stop-blocking.ts
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-03-09 08:57:59 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-03-09 08:57:59 +0530
commitf4a94bed13a8595ec8a15e3ea8315aeb5aecc744 (patch)
treee563f1a74a657348f13999c125f5ca12d200f8e6 /src/scripts/stop-blocking.ts
parent435b16e29080f49e1ec373f5b0f552559ca04686 (diff)
downloadbanglar-bhumi-utils-f4a94bed13a8595ec8a15e3ea8315aeb5aecc744.tar.gz
banglar-bhumi-utils-f4a94bed13a8595ec8a15e3ea8315aeb5aecc744.zip
A lot of changes :)
Diffstat (limited to 'src/scripts/stop-blocking.ts')
-rw-r--r--src/scripts/stop-blocking.ts26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/scripts/stop-blocking.ts b/src/scripts/stop-blocking.ts
index f418f66..bf9ae4e 100644
--- a/src/scripts/stop-blocking.ts
+++ b/src/scripts/stop-blocking.ts
@@ -1,22 +1,22 @@
-const proxiedBind = $.prototype.bind;
+document.addEventListener("DOMContentLoaded", () => {
+ const proxiedBind = $.prototype.bind;
-$.prototype.bind = function() {
- if (arguments[0].trim() === "cut copy paste") {
- arguments[1] = (e: any) => {};
- }
+ $.prototype.bind = function() {
+ if (arguments[0].trim() === "cut copy paste") {
+ arguments[1] = (e: any) => {};
+ }
- return proxiedBind.apply(this, Array.from(arguments) as any);
-}
+ return proxiedBind.apply(this, Array.from(arguments) as any);
+ }
-const proxiedKeydown = $.prototype.keydown;
+ const proxiedKeydown = $.prototype.keydown;
-$.prototype.keydown = function() {
- arguments[0] = (e: any) => true;
+ $.prototype.keydown = function() {
+ arguments[0] = (e: any) => true;
- return proxiedKeydown.apply(this, Array.from(arguments) as any);
-}
+ return proxiedKeydown.apply(this, Array.from(arguments) as any);
+ }
-document.addEventListener("DOMContentLoaded", () => {
$.prototype.bind = proxiedBind;
$.prototype.keydown = proxiedKeydown;
document.oncontextmenu = new Function("return true") as any;