Skip to content

Instantly share code, notes, and snippets.

@AnatoliyAkhmatov
Created March 28, 2021 10:29
Show Gist options
  • Save AnatoliyAkhmatov/38a2647ffc757ff60e4948d2a44f704b to your computer and use it in GitHub Desktop.
Save AnatoliyAkhmatov/38a2647ffc757ff60e4948d2a44f704b to your computer and use it in GitHub Desktop.
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