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.

As of 08.12.2023. See ბოლო ვერსია.

These are versions of this script where the code was updated. Show all versions.

  • v0.8 09.01.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 09.12.2023

    - Refactoring

  • v0.6 09.12.2023

    - Minor refactoring

  • v0.4 09.12.2023

    - Refactoring
    - Removed log messages

  • v0.3 09.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 08.12.2023

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

  • v0.1 08.12.2023
  • v0.1 08.12.2023
  • v0.1 08.12.2023