gagarine / no-transition

Disable all the shiny and inappropriate animations made with CSS3 on your browser.
https://addons.mozilla.org/en-US/firefox/addon/no-transition/
30 stars 5 forks source link

Option to temporarily enable/disable per site or tab #10

Open sumyungguy opened 7 years ago

sumyungguy commented 7 years ago

Usually I leave CSS3 animation on, and temporarily disable it with this bookmarklet any time a web page causes a problem: https://github.com/stephen322/cssanim-bookmarklet

It works well if you stay on the same page and don't reload it. But it would be great to have the ability to disable animation in a tab, rather than the whole browser, and have it stay disabled until you close the tab.

For example, I can disable Javascript per-tab with Prefbar and it's "Javascript (tab)" button, or the Tab Permissions addon. I'd like to be able to do the same thing with CSS3 animations.

gagarine commented 7 years ago

What about a white/black list?

gagarine commented 7 years ago

Sorry, didn't see your proposition in #9 .

I don't want to make it to complicated. You don't think blackliste can works for you usecase? Somethings like "add this site in the blackliste"?

sumyungguy commented 7 years ago

From my experience with other addons for blocking Javascript or cookies for example, it's very useful to have a "temporarily block" option, in addition to "permanently blacklist". When there is only the option to permanently blacklist, then:

  1. The blacklist can get very large and difficult to manage, filled with sites that I only visited once, and probably never will again.
  2. A few times, I blacklisted a site to get rid of some annoyance. Then I came back to it much later, and could not understand why it wasn't working. I had forgotten that I had blacklisted it.

I thought about per-tab blocking because there are some addons that let you block Javascript per tab. But that's easy for Javascript because of docShell.allowJavascript. It's not so easy for animation I guess.

Maybe better than per-tab blocking, would be a temporary block that would apply to a site (domain) only as long as there is a tab open with that site. A bit like Self-Destructing Cookies works.

Another way could be temporarily for the browser session, so that blocking for the domain would last until the next browser restart. But I don't like that as much because I very rarely restart my browser. The concept of browser session is a 90s thing, when people powered off their computers after using them... Still, it would be better than having only permanent blocking.

gagarine commented 7 years ago

Maybe better than per-tab blocking, would be a temporary block that would apply to a site (domain) only as long as there is a tab open with that site. A bit like Self-Destructing Cookies works.

I like this approach. I was trying to avoid the need for a dropdown panel (menu) to keep it as a single on/off toggle button but I guess it's not going to be possible.

FYI: I will not have to much time in august, but I will be able to work on that in September.