Git Product home page Git Product logo

Comments (6)

lachlanjc avatar lachlanjc commented on September 20, 2024 1

If there's a protected page you'd like to analyze, you can log in, then in your browser devtools, head over to Network/Resources & copy the link of the CSS file, then paste that into CSS Stats—it's super rare that sites require authentication to access the CSS itself, usually you just can't get the link to the CSS file from the outside (CSS Stats' issue). So if you get it yourself you should be fine.

If there's a specific type of authentication you think CSS Stats should support, for sure mention that, but I don't think there's any simple/streamlined way to do it, & getting the URL yourself works pretty well most of the time.

from cssstats.

sh3raf avatar sh3raf commented on September 20, 2024 1

Thank you for the detailed explanation!

from cssstats.

mrmrs avatar mrmrs commented on September 20, 2024 1

@sanderteirlynck - would be happy to accept a PR to enable this.

from cssstats.

lachlanjc avatar lachlanjc commented on September 20, 2024

Hi! What kind of authentication do you mean @raziel8? I'm not aware of any way of password-protecting CSS files that work in browsers. While CSS Stats can't support the stats of full pages behind a login (e.g. Gmail web UI), if you inspect element & grab the CSS link from that page while you're logged in, CSS Stats can fetch that.

from cssstats.

sh3raf avatar sh3raf commented on September 20, 2024

Can you give a more detailed example?

from cssstats.

sanderteirlynck avatar sanderteirlynck commented on September 20, 2024

I feel like there's a use case for websites that require authentication, though not exactly as explained here. Websites with basic access authentication enabled (user:[email protected], for example) currently fail in CSS Stats. Finding the path of the CSS file on these websites and pasting it in CSS Stats also fails, since technically you still need to authenticate before reading the contents of the file. I definitely have a use case for this, since the company I work at has a live development environment with basic access authentication enabled. I would love to be able to analyse the CSS of this environment, since its CSS is entirely different from the live website.

I noticed CSS Stats uses the normalize-url package, which has an option to allow basic access authentication. It looks like a small code change (one I would love to contribute) but I'm not sure if there are any downsides to this feature, or if anyone's interested in this feature. Would love to get some opinions!

from cssstats.

Related Issues (20)

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.