Better GitHub Pull Requests

Improves the GitHub Pull Request UI and adds several features. "Better PRs"

目前為 2022-04-06 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Douglas Krahmer
評價
0 0 0
版本
0.1.3.0
建立日期
2022-04-06
更新日期
2022-04-06
尺寸
16.6 KB
授權條款
GNU GPLv3
腳本執行於

Features

  • Show one file at a time. (can be disabled with on-page checkbox)
  • Show unviewed filenames in bold in file tree.
  • Show number of comments for each file in file tree.
  • Auto-mark file as viewed after viewing for 2 seconds. (only in "single file" mode, configurable delay time)
  • Filename pop-up tooltips in native GitHub file tree.
  • Automatically load large diffs that are hidden by default. (only in "single file" mode)
  • Enable adjusting the file tree width. (bottom-right corner of file tree pane)
  • Works with GitHub and GitHub Enterprise.
  • Supports native GitHub tree view and/or Gitako Chrome Extension tree view.
  • On-page checkbox to disable/enable added styles.

User Settings

  • Enabled - Set to false to disable this mod. A checkbox is added to the page to easliy change this setting on the fly.
  • IntegrateWithGitako - Integrate with Gitako file tree in addition to GitHub native.
  • MarkViewedAfterMs - Mark file viewed after this many milliseconds. Set to 0 to disable.
  • ShowOnlySingleFile - Show only a single file at a time in the UI. A checkbox is added to the page to easliy change this setting on the fly.

How to change User Settings

Persistent user settings can be changed in the Storage tab in Tampermonkey. The Storage tab can be found near to the script Editor tab when editing this script in Tampermonkey. If the Storage tab is not visible, change config mode to Advanced in Tampermonkey's main Settings then refresh. Load at least one PR to populate default values before attempting to edit. These settings will persist even if the browser is closed or this Tampermonkey script is updated in the future.

Notes

This script will automatically run on github.com and any domain name that begins with "git." for GitHub Enterprise. If your GitHub Enterprise domain does not start with "git.", add an @include statement above to include your domain name.