News for hackers. Stuff that matters.
Re:Weaintfoundshit.js by antoineMoPa on Saturday July 23, 2016 @10:54AM (#12149629)
I like the fact that it works with querySelectorAll! This is compatible with my projects in which I do:

    var qsa = function(sel){return document.querySelectorAll(sel)};
However, it does not work with:

    var subqsa = function(el,sel){return el.querySelectorAll(sel);}
Re:Weaintfoundshit.js by maga on Saturday July 23, 2016 @12:55PM (#12150082)
If you're seriously wondering why is it so then, well, they're just replacing native methods of the document object, in order to get the same behavior from your second line, they'll have to replace Element.prototype.querySelectorAll as well, which is a bad idea.
Re:Weaintfoundshit.js by nailer on Saturday July 23, 2016 @06:44PM (#12151322)
You can just:

  var queryAll = document.querySelectorAll.bind(document);