News for hackers. Stuff that matters.

ankjevel

Re: on Tuesday June 13, 2023 @05:21AM (#36307648)
Great content!
Re:KindScript – A kinder JavaScript experience on Sunday March 20, 2016 @11:10AM (#11323211)
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 ...
Re:The Bomb Didn't Beat Japan on Tuesday June 04, 2013 @08:27AM (#5818966)
(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);}})();