James Published & Destroyed this

From Hackers & Designers
Revision as of 15:30, 12 February 2016 by JBG (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Inspired by contest among friends titled "Best Tweetable Javascript", here is 123 characters which causes a webpage to eat itself.

setInterval(function() { i = document.querySelectorAll('*'); e = i[i.length - 1]; p = e.parentNode.removeChild(e); }, 1000)

To run paste it into the web developers console as follows:

WebConsole.png