For example for this.parentNode I would like to just write this.p or instead of document.getElementById(\'someid\') just write d
this.parentNode
this.p
document.getElementById(\'someid\')
d
In a word, don't. It is best not to modify objects you don't own.
This is particularly true for HTMLElement, which you cannot modify in some browsers.
HTMLElement