Gitlab Copy Commit Link Instead of SHA

This is a Tampermonkey user script that enhances the Gitlab user interface by adding a button that copies the commit link to the clipboard instead of just the commit SHA.

作者
dunstorm
日安装量
0
总安装量
0
评分
0 0 0
版本
0.1
创建于
2023-04-05
更新于
2023-04-05
大小
1.4 KB
许可证
MIT
适用于

Gitlab Copy Commit Link Instead of SHA

This is a Tampermonkey user script that enhances the Gitlab user interface by adding a button that copies the commit link to the clipboard instead of just the commit SHA.

Installation

To use this script, you must have Tampermonkey installed in your browser. Once installed, click on the Tampermonkey icon in your browser and select "Create a new script". Copy and paste the code from above into the script editor and save the file. The script will now be active whenever you visit a Gitlab commit page.

How it works

The script works by selecting all commit items on the Gitlab page and then finding the link to the commit. It then duplicates the "Copy commit SHA" button and adds it to the commit's avatar cell. Finally, it modifies the cloned button to copy the commit link instead of just the commit SHA.

QingJ © 2025

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