NHK党より先に、NHKのホームページをプログラミングでぶっ壊してみた。
JavaScriptでNHKのホームページをぶっ壊すプログラムです。
コードは以下の通り。
Array.prototype.slice.call( document.querySelectorAll('div,p,span,img,a,body')).map(function (tag) { let m = Math.floor(Math.random() * 3.5) - 1; tag.style['transform'] = 'rotate(' + m +