Skip to content

Instantly share code, notes, and snippets.

View FabioVergani's full-sized avatar
Senior Frontend #FullRemote

Fabio Vergani FabioVergani

Senior Frontend #FullRemote
View GitHub Profile
//#FixFunctionNameProperty
(function Fix(o,p){if(!DummyFn[p]){o(Function.prototype,p,{get:function(){var e=this,s=e.toString().match(/^\s*function\s*(\w*)\s*\(/)[1];o(this,p,{value:s});return s},enumerable:1})}})(Object.defineProperty,'name');
//#
(function Fix(o,p){//#FixFunctionNameProperty
if(!arguments.callee[p]){o(Function.prototype,p,{get:function(){var e=this,s=e.toString().match(/^\s*function\s*(\w*)\s*\(/)[1];o(this,p,{value:s});return s},enumerable:1})};
})(Object.defineProperty,'name');
//
/*
@FabioVergani
FabioVergani / page.htm
Created June 25, 2023 08:30
Html blank page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ToBeDefiend</title>
<link rel="stylesheet" href="./page.css" />
<script src="./lib.js"></script>
</head>
<body>