Make webpage B&W

From NAT, 6 Years ago, written in Plain Text, viewed 523 times.
URL https://code.nat.moe/view/d517f579 Embed
Download Paste or View Raw
  1. function blackAndWhite () {
  2.   var body = document.body;
  3.   body.style['filter'] = 'progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)';
  4.   if (!body.style['filter']) {
  5.     body.style['-webkit-filter'] = 'grayscale(1)';
  6.     body.style['filter'] = 'grayscale(1)';
  7.   }
  8. }
  9. //逝者安息

Reply to "Make webpage B&W"

Here you can reply to the paste above

captcha