document.addEventListener('load', function(e){
e.target.tagName && e.target.tagName.toLowerCase() == 'img' && /\bfigure\b/.test(e.target.parentNode.className) && e.target.parentNode.style && e.target.width && (e.target.parentNode.style.width = e.target.width + 'px')
},true);

/* anti-clickjacking, anti diggcrapbar */
if (top !== self) try {top.location.replace(self.location)} catch(e){top.location = self.location}
