Created
March 28, 2021 10:29
-
-
Save AnatoliyAkhmatov/38a2647ffc757ff60e4948d2a44f704b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.keys((new $).__proto__).forEach(el => { | |
try { | |
if (!HTMLElement.prototype[el]) { | |
HTMLElement.prototype[el] = function() { | |
let e = $(this) | |
return e[el].apply(e, arguments) | |
} | |
} | |
} catch(e) {} | |
}) | |
document.body.css('background', 'red') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment