Comments (6)
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.
Thank you for the detailed explanation!
from cssstats.
@sanderteirlynck - would be happy to accept a PR to enable this.
from cssstats.
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.
Can you give a more detailed example?
from cssstats.
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)
- Specificity graph not visible in dark mode HOT 2
- Stats doesn't work properly with CSS variables HOT 4
- Some sites fail to analyze HOT 12
- 502 bad gateway against a site HOT 1
- Location of reported items in source CSS [FEATURE REQUEST] HOT 2
- How to copy paste CSS code and then analyzie via CSSstats? HOT 1
- `/stats` endpoint is accessible and shows infinite loading HOT 2
- Unexpected error occured HOT 1
- Remove CSS field in stats response for the API
- Feature Rewu
- Adding custom user agent to request HOT 1
- Blank page when trying to analyze a certain css file HOT 8
- [BUG] Failing to collect selectors with declaration that only has custom properties HOT 3
- Failing URLs
- Failing URL
- No longer maintained? HOT 2
- The website is crashed after typing a url address HOT 1
- Skins section appears twice
- Export found values as JSON HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cssstats.