Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify show-user-top-repositories #4235

Merged
merged 2 commits into from Apr 15, 2021
Merged

Simplify show-user-top-repositories #4235

merged 2 commits into from Apr 15, 2021

Conversation

cheap-glitch
Copy link
Member

Closes #4221

Test URLs

https://github.com/sindresorhus

Screenshot

n/a

Copy link
Member

@yakov116 yakov116 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

url.searchParams.set('s', queryField);
url.searchParams.set('type', 'Repositories');
function buildUrl(): URL {
const url = new URL('/' + getCleanPathname(), location.href);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be enough

Suggested change
const url = new URL('/' + getCleanPathname(), location.href);
const url = new URL(location.pathname, location.href);

@yakov116 yakov116 merged commit 8ee4d15 into refined-github:main Apr 15, 2021
@cheap-glitch cheap-glitch deleted the use-sort-by-stargazers branch April 15, 2021 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Use sort=stargazers for show-user-top-repositories
3 participants