I made a script that allows you to minimizes pictures, gifs, youtube preview, tweets or wikipedia articles.
It's useful if you don't want the image to be always shown. For example at the office.
It searches with the selector
'.ob-image, .ob-tweet, .ob-wikipedia, .ob-youtube ' and adds an arrow like this:
When clicked, the image toggles with
slideToggle() and the arrow rotates.
It uses a
mutationObserver so if new messages match this kind of content, it will add the arrow as well.
- Install the userscript.
Developed & tested with TamperMonkey on Chrome.