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:

enter image description here

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.


Developed & tested with TamperMonkey on Chrome.

You must log in to answer this question.

Browse other questions tagged .