Giter Club home page Giter Club logo

Comments (6)

ArshSB avatar ArshSB commented on July 18, 2024 1

Very interesting, I didn't know Chrome had that built-in feature!

Unfortunately, as far as I know, I don't have a way to fix this. DarkPDF injects some simple CSS on to the page to enable dark mode, and I believe other programs do something similar to achieve the same purpose, so when they both inject some CSS, they might interfere with each other. A possible solution would be identifying and fixing that interference in the HTML code, but that's beyond the scope of this extension 😞

I did a quick test and it seems DarkReader extension works well in your case (has dark mode for PDFs while the auto dark mode for web content setting is enabled).

I appreciate your feedback on this, take care!

from darkpdf.

ArshSB avatar ArshSB commented on July 18, 2024

Hi there,

Thanks for opening the issue. I checked with a friend's MacBook running macOS Monterey and the extension was working fine for him (worked on both local and online PDF files along with the keyboard shortcut).

I'm not sure what might be the problem in your case. Can you tell me what macOS version you are using?

from darkpdf.

siara-cc avatar siara-cc commented on July 18, 2024

Hi, thanks for the quick reply. It worked after I enabled file URLs. So it was just my misunderstanding.

However, I could not get it to darken the PDF itself, like the software Negative I use. Please see the attached video. Is it possible to do the same with DarkPDF?

DarkPDFDemo.mp4

In any case, thanks for making this extension. Great work!!

from darkpdf.

ArshSB avatar ArshSB commented on July 18, 2024

I've noticed a similar problem when using DarkPDF with other extensions/programs that interact with the PDF such as DarkReader. The solution, of course, is to use only one of them at a time.

Perhaps something else is also trying to do same thing as DarkPDF in Chrome? Does it do the same thing for online PDF files?

from darkpdf.

siara-cc avatar siara-cc commented on July 18, 2024

I don't have other similar extensions installed, but I found that the Auto Dark Mode setting I am using in chrome://flags is causing trouble:

image

I am using this setting to see all web pages in dark mode as I was uncomfortable to install an extension for this purpose.

When this setting is disabled, DarkPDF works as intended. Is there a way of making DarkPDF invert PDFs even if this is enabled?

from darkpdf.

siara-cc avatar siara-cc commented on July 18, 2024

Thanks for the info on DarkReader!! It works for both websites and PDFs as you said, even without the "Auto dark mode" setting.

from darkpdf.

Related Issues (12)

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.