Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If momentum builds behind an internet blackout a-la the SOPA protest, that'd be a clever way to do it.. write some js/css that black-marker-redacts the page contents.


Best I can do for hacker news. You'll have to copy it into your browser's javascript console, or prepend javascript: and save it as a bookmarklet.

Array.prototype.slice.call(document.getElementsByTagName('font')).forEach(function(i){i.innerHTML = i.innerHTML.split(' ').reduce(function(acc, cv, i, a) {if (i % 5 == 0) return acc + '<span style="background-color: black;">' + cv + ' </span>'; else return acc + cv + ' '; }, '');})


Reddit already has that for spoiler alerts.


I believe it is just some subreddit css that implements that effect.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: