-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to WebExtensions #43
Comments
... yeah. :( I hope to have time to do this during the summer. It requires pretty much a complete rewrite and getting API's for GIF manipulation into Firefox. |
According to a discussion I had in That's why I said A.S.A.P. about getting on Bugzilla. You need to get them designing and writing that API pronto. EDIT: And please mention the bug here when you do open it, so I can follow the discussion. |
Thanks for the information about timing. I wonder when in the Nightly cycle it will land... Still, seems like I should have time in June and July if not before. My (naive?) hope is that the API is small enough that I can just design and land it myself, without a very long discussion phase. (And FWIW if for whatever reason I don't manage to get APIs accepted into Firefox, I'll make them available as a webextension experiment so I can continue using the extension myself.) |
Assuming no slipped deadlines, it'll land in Nightly on June 12th. (I've been doing some serious research into this whole "XUL is going away" thing.) |
Thanks. I'm now following both of those. |
Hi. I see that https://bugzilla.mozilla.org/show_bug.cgi?id=1364972 is resolved, and some new API is added for FF 57. This doesn't seem as complete as fully controlling everything, but, can a pause/play button be implemented with that? |
Kind of - I suspect changing the setting only affects future page loads though. I'm currently experimenting with whether it's possible to exploit Firefox bugs/quirks to get the behavior I want. (In particular, image animation state is shared between images with the same source even across frames, and |
I rather missed the deadline here, but, anyway. Here's a possible plan for a port:
Hopefully I'll have time for all this at some point... In the mean time, the addon continues to work on Nightly, about:config's |
Hope you find a way. :) I miss this plugin so hard. |
Looking forward to it! |
Sorry for filling your comments... Just wanted to let you know that more people are awaiting WebExt version. |
Thanks for the encouragement, all. I have some work-in-progress on the |
I noticed a bug with Firefox 57, it doesn't want to play animated gifs and I tried removing Toggle Animated Gifs (even though its still a legacy add-on) and it didn't help. My guess is that something got corrupted in Firefox when updating to version 57. Also good luck with updating TAG to a Web Extension. |
I suspect that's because the addon sets the |
@simonlindholm Thanks, But I already got some help last night from the Mozilla forums about this.:) |
@simonlindholm hi, what is the status of the port? Do you need help? |
Thanks for asking. Life caught up with me, and I haven't had any time to look at this for the last two months... If you're interested in helping out, there's some work in progress in the 'web-ext' branch, and I could try giving some detail on how the code works. Status is that most of the big comment above is implemented, and sometimes it even works. However, it's buggy in a few ways:
So the way I'd continue this if I had time (likely won't for the next 1-2 months either) would be to first fix the redirect thing (to avoid false positives when testing), and do further testing of how stable the method is. Depending on that, either tweak things like resetting to work reliably and then ship an update, or re-think the approach and either implement my own custom GIF rendering or look into standization. |
Thanks for the response. I'll check it out after my vacation. :) |
Hey guys! Any news regarding the port? I don't have much time to help you code, but I could help you test if you need some testers. Thanks for your work |
Not much has happened since the last update. I may start to get time for this addon soon, though. |
Hey, any chances project will move on any time soon? |
On a related note, is anyone aware of an alternative with feature-parity? I don't want to disable GIF and HTML video autoplay entirely, only be default and play the files at will. |
Even only implementing GIF-support would be very helpful, I occasionally come across older forums where every post seems to have animated GIFs (avatars, signatures, the message content). As far as I've understood implementing support for HTML video is delaying development. |
@simonlindholm, godspeed from still snow-covered Moscow. |
Curious on what is current status on port. :) |
Hej. Life got in the way. I had an idea of making a small gif only extension which only stops/starts a gif-image. But didn't found the time. |
@simonlindholm |
Really missing this add-on. Willing to donate if it helps. |
any news ? I love the addon and is a big miss on quantum |
I wish I knew enough to make one. I recently made an addon, cool but its very simple compared to this one. |
For a simple addon this links are good. But this addon especially aims to stop the gif in place. So hit stop/pause and play again where you stopped the gif. |
At least the addon won't have problems with cross-domain policy, which actually saves a ton of headache. There are libs which can parse GIFs in JS (eg https://github.com/buzzfeed/libgif-js or https://github.com/benwiley4000/gif-frames), all we need is to actually replace all the gifs into canvases, get the gif frames, get the gif animation speed and then just playback manually. But that solution isn't very performant. There are ways, but they sure are messy than this one which basically could "hack" into the Firefox gif playing engine and set the state directly for the gifs themselves. Too bad Mozilla dropped XUL support =( |
This is the user script I've made and been using for some time: Animate GIFs.user.js. |
Sorry I cant code (LOL) where should i put this code in to use on firefox? |
Install TamperMonkey and be happy |
Doesn't work for me. I see an icon on the GIF but clicking it does nothing |
I doubt that script works, it hadn't been updated in years. Doesn't work for me anyway. The real solution is a webextension, like this one. But seems like it's abandoned. |
It actually does, i think it starts the gif back from the begining when you click on it. Still useless |
I did seem to degrade the quality of the GIF. Oh well. And userscripts can do most of what webextensions do. |
there's a webapp in chrome called gif scrubber. I think it worked for some time (but is dead now) |
yeah I hate it when control is taken away. I hate how youtube just autoplays and same for gifs. This was awesome till it stopped working. |
As long as I middle-click instead of left-clicking when changing videos, and toggle auto-advance off in the YouTube player widget (it does a pretty good job of staying off until I restart the browser), I'm pretty comfortable with the level of non-autoplay I get out of YouTube without breaking particularly indirect play-button-to-video-element connections on other sites. Here are the relevant
The more annoying part was that I had to write a CSS Userstyle to force the issue on YouTube's insistence on constantly turning CC on. ( |
I will always want captions on myself :D but otherwise thanks. |
I've pushed the current version of my script here. |
Mozilla will be dropping support for XUL extensions in Firefox 57, so this needs to be ported to the WebExtensions APIs before then if you want to keep it working. (And I'd really appreciate if that were the case)
If it can't be accomplished using WebExtensions APIs, you need to get onto Bugzilla A.S.A.P. to start a discussion on how to extend the APIs.
The text was updated successfully, but these errors were encountered: