f12-forbidden
Version:
Prevent users from debugging web data.
2 lines (1 loc) • 621 B
JavaScript
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.F12Forbidden={}))})(this,function(n){"use strict";var o=Object.defineProperty;var s=(n,e,t)=>e in n?o(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var i=(n,e,t)=>(s(n,typeof e!="symbol"?e+"":e,t),t);class e{constructor(){i(this,"_t");this._t=500,this.debug()}debug(){const d=new Function("debugger");setInterval(d,this._t)}}function t(){new e}n.f12Forbidden=t,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});