Giter Site home page Giter Site logo

firefoxinvertcolors's Introduction

Invert Colors

A simple FireFox add-on that inverts the web page colors.

Basic instructions:

Requirements:

Firefox, as this extention is designed for firefox.

web-ext, which is a command line tool from mozilla to help build, run, and test WebExtensions.

Installing web-ext:

This obviously requires npm to be installed.

npm install --global web-ext
Running the code:

To run the code within your local firefox run

web-ext run -s src/
Building the extention:
web-ext build -s src/

firefoxinvertcolors's People

Contributors

bhspitmonkey avatar hellosager avatar hhirtz avatar max-github avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

firefoxinvertcolors's Issues

Doesn't seem to do anything on Firefox for Android?

I tried installing this on Android Firefox and couldn't get it to do anything. There were no buttons, no menu options, nothing to actually turn on the inverting.

It works on desktop Firefox, but I can't figure it out on the mobile version. Does this actually support mobile Firefox? It shouldn't be listed in the Android add-ons section if it doesn't.

Doesn't invert background if not explicitly defined?

Try to invert colors on this page: https://developer.xamarin.com/guides/cross-platform/fsharp/samples/

As you can see, it inverts the main column (which has an explicitly defined background color of "white"), but not the main background (which has no explicitly defined background color, and thus defaults to white).

Otherwise, thanks for a nice plugin! Too bad it doesn't play nice with font smoothing (e.g. the font on this page looks much less clear when inverted; it looks fine when inverting the whole screen using the Windows built-in Magnifier tool), but I guess there's little you can do about that.

BSOD when trying to access Options

Windows 10 Pro, 64 bit
Firefox version: 83.0 (64-bit)
Invert Colors version: 0.3.0.0
BSOD log and MiniDump: 2020-11-18 BSOD - Invert Colors addon in Firefox.zip

BSOD happened when I tried to go to the options for "Invert Colors" addon in Firefox. Area where options are supposed to show was black (using Windows & Firefox dark theme), and windows scroll showed that the area was getting bigger.

After reboot, tried the same thing again, and this time the computer froze up with no output to monitor. No BSOD. Had to force power-off of computer by pressing power button on it for more than 3 seconds.

Option to exclude images

Just discovered this plugin and it's pretty useful, but inverting images it's a no go for me. A checkbox in the addon's options to exclude images would be really nice.

"Invert Current Page" doesn't stick in Google Docs editor

Thanks so much for this extension! I'm using it primarily to invert colors while editing Google Docs.

Global invert colors state works as expected (yay!!)

But when I try to use the per-page Invert Colors on a Google Docs editor tab, as soon as I start typing, it immediately reverts.

Possible solution - can we specifically blacklist certain URLs to always be in inverted mode, instead of whitelisting them to be excluded? Or can we have a per-tab inverted state instead of per-page? (see #31 )

Some Inverted pages become 'invisible'

I've hit this issue on some random sites but not investigated more fully because I turned off Inverting, but after having installed Nextcloud 13.0 which has a default theme with some values close to the mid-point and getting a completely blank page I'm digging deeper.

I can't say I fully understand what I'm seeing as-yet but it /seems/ like elements with color values close to #808080 makes text invisble when the filter itself is applied.

Using Firefox 60.0a1 (2018-03-05) (64-bit) on Ubuntu 16.04.

If you can add any insights or investigate that would be helpful.

global alt-shift-r broken?

Global inversion is broken for me -- alt+shift+r has no effect. Alt+R still works for individual tabs.

Firefox 72.0 (64-bit)
Microsoft Windows 10 Pro 10.0.18362 Build 18362
Dell Inc. Latitude 7280

Remove from URL bar

I noticed today that Invert Colors has been pushed to the urlbar again even after I removed it and I can no longer remove it. Not interested in it being in the urlbar, I don't think it has any business there. I usually keep my extensions above the urlbar.

TLDR: Unable to remove from urlbar, noticed today (2021/4/11) on firefox-trunk (Nightly, Linux).

changing default shorcut

How can i change the shortcut Alt+Shift+R to something else? i tried editing manifest.json, but firefox sees the extension as unsecure then.

sorry

sorry. Now i've submitted the issue 41 to the correct recipient.

Invert Colors 0.1.6 sometimes non-effective with Firefox ESR 52.9.0 and Waterfox 56.2.5

Tested at http://www.ianbicking.org/blog/2014/09/professional-transitions.html with:

  • Firefox on (Tier-3) FreeBSD-CURRENT
  • Waterfox on (unsupported) FreeBSD-CURRENT.

Version 0.1.6 of the extension seems to work with Firefox, but not with Waterfox.

$ date ; uname -v
Sat 24 Nov 2018 08:55:03 GMT
FreeBSD 13.0-CURRENT r340689 GENERIC 
$ poudriere jail -i -j current | grep -i version
Jail version:      13.0-CURRENT 1300003
Jail vcs version:  r340689
$ pkg info waterfox | grep -i repository
        repository     : poudriere
$ pkg info firefox | grep -i repository
        repository     : poudriere
$ pkg query '%o %v %R' waterfox firefox
www/waterfox 56.2.5 poudriere
www/firefox 63.0.3_3,1 poudriere
$ 

Comparison

Monochromer by @xia-sava is effective with Waterfox 56.2.5, so I imagine that Invert Colors could be enhanced to support Waterfox.

[Feature Request] List of exceptioned websites

It would be great to have some kind of white / blacklisting depending on the current default mode.
E.g. lets assume my default mode is "invert colors", then I would find it quite nice if I could configure, while being on site X, that on site X, the colors should not be inverted.

chatwindows on end of the page

On at least facebook and okcupid, chatwindows are at the (as in: scroll down to the) bottom of the loaded page instead of floating at the bottom of the window screen.
That is a problem on facebook since there touching the bottom of the page initiates more content to be loaded - and the chatwindow is farther down again.

Per Tab setting

Would love to have an option to make the add-on only invert certain tabs.
For example when toggling Invert Colors, the focused tab only gets inverted, the rest stay the same.

mouse-on-keyboard

FIREFOX turns win10 mouse-on-keyboard's secondary button to be simultaneously primary, with precedence over the 2ary. [no problem with chrome and edge]
Specifically it is impossible to open a link in a new tab.
This is already some years old.

current tab ALT+R not working

Cheers, Max, for a needed add-on. FYI:

Alt+Shift+R does work, which is great!

Alt+R does not work. But clicking 'Invert Colors' from the menu (mouse right click) works.

On Debian stable.

Hue rotation

If the CSS filter: hue-rotate(180deg); is used when inversion is active colors will retain their original values to a closer degree.

Thanks for a simple yet super useful addon.

Allow for only inverting the current tab

Currently all tabs of all windows have their colors inverted. It would be nice to allow for only the current tab having its colors inverted. Even better would be a preference to either invert colors of just the current tab in the current window, all tabs in the current window, or all tabs in all windows.

Did not see color inverted on firefox locally

Hi, I am not be able to see color inverted. When I ran command web-ext run -s src/, a new firefox window opened and I tried different sites like facebook, reddit and github on the new window, however no changes in color that I have noticed. I am running firefox version 4.2.0(latest) and firefox 76.0.1(latest). Any help will be appreciated!

invert only images

This is not an issue, but an option I would like to have.
Reason why (which might be the case for others as well, I guess):
. I'm using the global system inversion win&+
. So with FFIC I can reinvert temporarily to see images,
. But everything else is burning my eyes
Therefore
by having the option of inverting ONLY images, I would have a double inversion (with the win&+), for them (that is 0-inversion), and the single inversion from win&+ for everything else.

Invert brightness but not color

I want to add an option to invert the brightness but not the hue of every color on the webpage.
I'd happily help by contributing an algorithm (pseudo-code or JavaScript or C++) that takes a color input RGB(A) and performs the correct color transformation to keep the color but get the opposite brightness, returning some different RGB(A) with the same dominant color as the input.

Invert colors on `about:*` and chrome pages

Colors are not inverted on about:* and chrome pages.

The most important one surely is about:blank, which is opened on new tabs (and maybe even on startup, depending on the browser settings). It would be great if it's possible to make it black.

Invert colors on a tab-per-tab basis

Nice add-on. However, currently pushing the button inverts colors across the entire browser, but to me this functionality makes much more sense on a tab-per-tab basis, since different websites open in different tabs probably have different color schemes. I would recommend a very simple implementation:

  1. Each tab is either inverted or non-inverted, and maintains that state even if within that tab the user navigates to a different page or a different domain.
  2. All tabs start in the un-inverted state (even if it's a tab that the user opened from an inverted tab).

Would a pull requests with this behavior be accepted?

Colors are not inverted during page load

Hi!

When a page loads, its colors are not inverted. It hurts my eyes to see the screen going white then black then white again, etc. I know this addon works by adding a stylesheet, but it seems firefox waits until the page is loaded to apply it.

Is there any way to apply the CSS directly, without waiting for the page to be fully loaded?

Turns Itself On

Quick note, I'm only using this for one webpage.
It seems that if I have another tab open with this on, it seems to be confused and turns on whenever I go to another page, no matter how many times I turn it off.

Of course I could blacklist pages but I think adding a whitelist of pages (notice the black and white use haha) would be a simple solution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.