sindresorhus/refined-github

"View blame prior to this change" link should include the current line #2175

fregante posted onGitHub

  1. https://github.com/sindresorhus/refined-github/blame/master/readme.md#L200

  2. Click on

    <img width="374" alt="View blame prior to this change" src="https://user-images.githubusercontent.com/1402241/60064482-26b47e00-9733-11e9-803c-c113ea612fbe.png">

  3. The page loads, you're no longer on line 200 but at the start of the document

"View blame prior to this change" link should include the current line (where you click)

Something like

for (const link of select.all('.reblame-link')) {
    link.hash = '#' + link.closest('.blame-hunk')!.querySelector('.js-line-number[id]')!.id
}

Fund this Issue

$0.00
Funded

Pull requests