Add repo/branch links to GitHub's "Comparing Changes" page

This adds a link to the fork's branch on the GitHub "Comparing changes" page (AKA the "Create a Pull Request" page). See https://stackoverflow.com/questions/77623282/how-do-i-get-my-remote-branch-url-from-the-github-create-pull-request-page for more details.

這裡顯示腳本的所有版本。 只顯示彼此間有代碼差異的版本。

  • v0.8 2024-01-09
    • On the file tab, the "View file" and "Edit file" links in the dropdown open a tab to the file in the branch you modified.
    • Bug fix: When viewing "two branches, same repo," the "compare across forks" link had no effect.
  • v0.7 2023-12-09

    - Refactoring

  • v0.6 2023-12-09

    - Minor refactoring

  • v0.4 2023-12-09

    - Refactoring
    - Removed log messages

  • v0.3 2023-12-09

    - Now the script modifies the PR page even if your tab initially loaded a different github page.
    - The script now works for PRs between two branches of the same repository

  • v0.2 2023-12-08

    If the page is loaded, immediately modify the page instead of waiting for the first interval.

  • v0.1 2023-12-08
  • v0.1 2023-12-08
  • v0.1 2023-12-08
  • v0.1 2023-12-08

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址