sindresorhus/refined-github

Do you want to work on this issue?

You can request for a bounty in order to promote it!

`edit-files-faster` links should not be AJAXed #4638

kidonng posted onGitHub

Please ensure:

  • The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.

Description

Some links are AJAXed but GitHub returns the whole page, so the page will break immediately/once you make another navigation:

Screenshot

No response

Console errors

No response

Example URL

https://github.com/sindresorhus/refined-github

Browser(s) used

Chrome


Weird. Some links are automatically ajaxed, others need an attribute. The edit links don't have any attributes.

As for #4631 we can make sure it's using the right selector for that.

posted by fregante over 3 years ago

Some links are automatically ajaxed, others need an attribute. The edit links don't have any attributes.

I guess there are no "automatically ajaxed" things. Links in a container with [data-pjax] are all ajaxed, they don't need to have the attribute individually. The edit links are in this container:

<div role="grid" aria-labelledby="files" class="Details-content--hidden-not-important js-navigation-container js-active-navigation-container d-md-block" data-pjax>
posted by kidonng over 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests