sir-kokabi / github-sorter

Sort Github Repos by Stars ⭐
https://github.com/sir-kokabi/github-sorter
MIT License
28 stars 2 forks source link

it does nothing -> fixed by new selector #2

Closed scil closed 1 month ago

scil commented 1 month ago

i installed it onto latest firefox and chrome, visit https://github.com/vuejs/awesome-vue, and nothing happened.

I have paste the correct token.

scil commented 1 month ago

I fixed it by update selector

    function getSelector(url)
    {
        const selectors = [
        {
            pattern: /https?:\/\/github.com\/[^\/]+\/[^\/]+\/*$/,
            // selector: "#readme",
                        // new selector:
            selector: '.markdown-body',
        },

based on your repo, I created this user script https://greasyfork.org/en/scripts/508793-github-repos-stats

sir-kokabi commented 1 month ago

Good, but you could make changes to the code and submit a pull request.

sir-kokabi commented 1 month ago

fixed #3