User:AstonishingTunesAdmirer/megapixels.js

if($(".fullImageLink")[0]) {	var fileinfo = $(".fileInfo"); var result = /\((\d*)\s×\s(\d*)\spixels/.exec(fileinfo.text.replace(/,/g, ''));	var mp = result[1]*result[2]/1000000;	var istoobig = mp > 0.1 ? "❌" : "✔️";	fileinfo.append(` — ${mp} megapixels ${istoobig}`); }