GitHub Comparing Changes: add link to fork's branch

This adds a link to the fork's branch on the GitHub "Comparing changes" 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.

Versión del día 8/12/2023. Echa un vistazo a la versión más reciente.

A continuación se muestran las versiones de este script en las que se actualizó el código. Ver todas las versiones.

  • v0.8 9/1/2024
    • 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 9/12/2023

    - Refactoring

  • v0.6 9/12/2023

    - Minor refactoring

  • v0.4 9/12/2023

    - Refactoring
    - Removed log messages

  • v0.3 9/12/2023

    - 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 8/12/2023

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

  • v0.1 8/12/2023
  • v0.1 8/12/2023
  • v0.1 8/12/2023