Skip to content

Instantly share code, notes, and snippets.

View Overmiind's full-sized avatar
💤
Zzz

Oleh Kovalenko Overmiind

💤
Zzz
  • Ukraine
View GitHub Profile
@Overmiind
Overmiind / unlock.js
Created February 25, 2024 12:34
Unblock dev tools
() => {
function isDevToolsScript() {
var stack = new Error().stack;
return stack.includes('devtool');
}
Date.prototype.originalGetTime = Date.prototype.getTime;
Date.prototype.getTime = function () {
if (!isDevToolsScript()) {
return this.originalGetTime();