tiramisyuz / ghcss-ext

Custom Github Profile CSS
MIT License
15 stars 3 forks source link

Use CSS file instead of markdown #5

Open tiramisyuz opened 1 month ago

tiramisyuz commented 1 month ago

Instead of using CSS code contained within a user's README.md, use a file within a repository with the same name as them

Bims-sh commented 1 month ago

Since we switched to webpack, we could get the user/repo from the url and fetch the css file (gh.css ?) file from their profile repo with axios

AAGaming00 commented 1 month ago

maybe could indicate one exists with a comment in the readme (and allow custom paths using that)? to prevent extra api requests

Bims-sh commented 1 month ago

maybe could indicate one exists with a comment in the readme (and allow custom paths using that)? to prevent extra api requests

I'd prefer completely removing it from the readme so it doesn't show up for normal users. We could make a 1x1 pixel image that will be used for this purpose.

Bims-sh commented 1 month ago

There is also another issue I noticed, it doesn't work on other tabs than the main profile, not sure if we are going to support this but it would be neat

Bims-sh commented 1 month ago

This is currently already implemented, it get's the css from github.com/Username/Username/gh.css and applies it in the head of the page.

This currently get's called every refresh though - plsfix