Better HN
topnewbestaskshowjobs
Log inSign up

ankjevel

3 karma · joined Mar 18, 2012 (14y ago) · 3 submissions

Submissions

comment 3y ago · link · parent

Great content!

comment 10y ago · link · parent

Why would you like to add anything to the __proto__ property? One way would be to write, like this:

  {
    const m = {}

    m.__alpha__ = 10
    m.__bravo__ = 20
    m.__defineGetter__('__proto__', () => 30)
    
    Reflect.ownKeys(m).forEach(key => console.log(key))
  }
EDIT: I can't format ...

comment 13y ago · link · parent

(This is not about the content of the article, this is about the site.)

Why oh why do they have a sign-up/sign-in? The content is clearly there in the background! So obtrusive!

This is how I was able to read the article:

  (function(){var o,w,h,b,n,s,h,i,j;o=document.getElementById("TB_overlay");w=document.getElementById("TB_window");if(!!o){o.parentNode.removeChild(o);}if(!!w){w.parentNode.removeChild(w);}h=document.getElementById("art-mast");b=document.getElementById("art-body").getElementsByClassName("translateBody")[0];n=document.createElement("div");n.style["max-width"]="625px";n.style.padding="150px 0 0 150px";n.innerHTML=h.innerHTML+b.innerHTML;document.body.innerHTML="";document.body.appendChild(n);s=document.getElementById("share-box");s.parentNode.removeChild(s);h=document.head.getElementsByTagName("script");i=h.length;while(i--){j=h[i];if(!j)return;j.parentNode.removeChild(j);}})();