Giter Club home page Giter Club logo

nightlight's Introduction

Browse the internet more comfortably at night

Nightlight screenshot

Nightlight is a Safari app extension that darkens websites while attempting to preserve their original designs.

To Little Snitch users: you'll notice that SafariExtension sends HTTP(S) requests to work around Safari limitations.

Acknowledgements

This project is available under the MIT License.

nightlight's People

Contributors

gofake1 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  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

nightlight's Issues

Add hotkey support

I want hotkey support to quickly activate/deactivate Nightlight. I remember this extension had it but no longer has it.

Add one more hotkey mapping please

Sorry to ask you this again. But is it possible to add one more mapping (cmd + shift + f).

The reason is that I can't use opt key and my control key is too valuable for me as it is filled with other very valuable things to me.

A mapping to cmd + shift + f or some cmd + shift variation would be really big for me.

I tried adding it myself looking at this commit however I am bit confused by the code of it, was quite hard to make sense of it.

I would greatly appreciate if you were to add it. I don't think it hurts the performance of the extension too, I think it shouldn't.

Privacy policy

I've looked around the website and now here at GH, but couldn't find it anywhere. What's the privacy policy of this extension. Does it collect any data and/or share it? And, if so, what data is collected and how is it used?

Brighter Fonts Feature Request

Thanks for this great software. Would it be possible to configure brighter bolder font style? I really prefer white on black text and not light grey text. On non retina displays small italic light grey text on black background get visually lost.

Thoughts on Safari App Extension

In case you haven't heard, Safari 12 will deprecate Javascript extensions, and Apple will stop accepting updates to the Gallery after 2018.

A native Safari App Extension offers some advantages:

  • System support for querying the user's location
  • Foundation provides a Timer class (my current implementation of timers in global.html is low-effort)

Since this is the only way forward, I will stop maintaining the Javascript extensions.

In other news, I will change how Nightlight works (from walking the DOM to injecting stylesheets). This should be both more efficient and produce better-looking results.

I haven't been updating Nightlight for a while, and this is my way of letting everyone know that it will continue to be a while before Nightlight reaches 1.0. Thanks for your patience.

Adjusting the CSS

Is there a way to customize or adjust the CSS? Some sites are really jarring.

New Twitter Design

Twitter has released a new design which seems incompatible with the current Nightlight version. Here is what happens when Nightlight is on:

Capture d’écran 2019-07-20 à 23 14 57

Disabled:

Capture d’écran 2019-07-20 à 23 17 00

Possible to use it as a boomarklet in iOS Safari?

First of all thank you for this extension, it works quite reliably.
Would it be possible to modify the js in some way to make it work as a mobile Safari bookmarklet?
I'm nowhere capable enough to pull it of by myself.

Add a way to add a website quickly to a blacklist

Perhaps from a hotkey or from the menu bar option.

Currently I can ignore tab but that is not very useful since on some sites Nightlight is broken. I would like to blacklist those sites quickly.

Thank you.

rdar://42491788 - (Safari) CSSStyleSheet.cssRules is sometimes null

Summary:
The 'cssRules' property on CSSStyleSheet is null in some cases. It seems to happen when the corresponding style sheet is very large.

Steps to Reproduce:

  1. Log in to bugreport.apple.com

  2. Open the console:
    Code:
    [].slice.call(document.styleSheets).filter(s => !s.cssRules) // Get style sheets with null cssRules

  3. Inspect the results.

Expected Results:
The array should be empty (i.e. all CSSStyleSheets have non-null cssRules).

Actual Results:
For bugreport.apple.com, three stylesheets "failed".

Version/Build:
12.0 (14606.1.24.40.1)

Configuration:
macOS 10.14 (18A336e)

Comments:
Also reproducible on Safari TP (14606.1.25.1)
In comparison, Chrome 67 supports the expected behavior

Darken light background images

Background images that load from a URL can be bright (e.g. macrumors.com).
We can try darkening them by using CSS filters or programmatically (maybe using WebGL).

Is it possible to make Nightlight compatible with sVim link hints

I opened an issue about it in sVim repo here:

flippidippi/sVim#101

But I think it's something only Nightlight can fix.

With Nightlight on:

dark

WIth Nightlight off:

2018-09-25 at 10 32

As you can see, the letters in the colored boxes are clearly seen in the off version.

I would love to have both extensions work well together. I really rely on sVim for my work and I am loving using Nightlight now that Mojawe has been released.

Thank you.

Add different hotkey option

I can't use my option keys as they do something else on my system globally and I can't change that.

Can you add hotkey like cmd + shift + M or control + some key. Thank you.

Add ignorelist

Previously Nightlight allowed to pass multiple websites to ignore with the extension. I would love to have this feature added to.

An easy to extend, edit blacklist of websites to ignore with the extension.

GitHub dark mode doesn't look very good

When dark mode is enabled on GitHub the website doesn't look very good and some text is difficult to read. Do you plan on adding any custom stylesheets for certain websites or do they all use the same general ruleset? But as an aside, I've been looking for an app like this for a long time, and am excited to see how this matures!

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.