Post AOPftfo5Nw5gnu6YPw by maxi@todon.eu
 (DIR) More posts by maxi@todon.eu
 (DIR) Post #AOPfteEFFhpLuSKPui by maxi@todon.eu
       2022-07-26T07:43:35Z
       
       0 likes, 0 repeats
       
       I really like that in Mastodon's #web interface, animations are only played when you hover the mouse over the picture. Is there any #Firefox addOn or userScript that enables something like this on regular web pages?I once write a #userScript that hides #gifs under an HTML "description" (https://www.w3schools.com/TAGS/tag_details.asp), so you have to click a button in order to show/hide the image. However, this solution was not optimal, since it often changes the layout of the web page, and not every #gif is animated. What I would like is that the addon/userscript takes a screenshot of the first frame of the gif, and replaces the gif with the first frame, unless the mouse hovers over it.#animations #addOns #javascript
       
 (DIR) Post #AOPftevqdaho5gjEsS by nanook@friendica.eskimo.com
       2022-10-10T04:30:19Z
       
       0 likes, 0 repeats
       
       Nice!
       
 (DIR) Post #AOPftfo5Nw5gnu6YPw by maxi@todon.eu
       2022-10-05T10:14:05Z
       
       0 likes, 0 repeats
       
       There's the following simple #Firefox #AddOnhttps://addons.mozilla.org/en-US/firefox/addon/toggleanigif/It's basically a button that toggles image animation in about:config -- you therefore need to reload the page to stop all animations on it. There's also a feature that simply 'freezes' a gif (by repainting it onto a canvas), but this feature doesn't work for me.Anyway, perhaps this addon is a starting point for developing a new addon that satisfies my needs. (I want the GIF to only be animated if the mouse hovers over it. Perhaps a red border should be drawn about 'frozen' GIFs, so that the user sees that that they can hover over it to show the animation -- essentially like in Mastodon.)
       
 (DIR) Post #AOPfthGTxqOpKGOkJk by maxi@todon.eu
       2022-10-09T00:49:15Z
       
       0 likes, 0 repeats
       
       OK, I implemented a prototype of "HoverGIF" as a #UserScript. Maybe I'll polish this later and make this into a Firefox addon. But I'm going to sleep and bake bread first :)
       
 (DIR) Post #AOPftisnwqeELPKrgm by maxi@todon.eu
       2022-10-09T09:40:00Z
       
       0 likes, 0 repeats
       
       I cleaned up the code a bit. I also added a blue border around frozen GIFs.You can download the user script here:https://codeberg.org/maxi.green/UserScripts/src/branch/main/hoverGIF.jsIt needs to be imported into a #UserScript manager, e.g. #Greasemonkey on Firefox:https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/