GitHub 提交信息显示网页视图

该脚本将 GitHub 上的提交信息转化为 HTML 视图,以更清晰地查看提交详情。它会自动将提交信息列表、提交头部和最新提交信息转化为 HTML 格式,提供更佳的视觉效果和用户体验。

目前为 2024-10-14 提交的版本。查看 最新版本

作者
人民的勤务员
评分
0 0 0
版本
1.0.0.19
创建于
2024-08-30
更新于
2024-10-14
大小
38.3 KB
许可证
MIT
适用于

GitHub提交信息显示HTML

「 该脚本将 GitHub 上的提交信息转化为 HTML 视图,以更清晰地查看提交详情。它会自动将提交信息列表、提交头部和最新提交信息转化为 HTML 格式,提供更佳的视觉效果和用户体验。 」

Views

Download:Github | ⭐Greasy Fork

GitHub CommitMessage Html View

描述

GitHub CommitMessage Html View 是一个用户脚本,旨在将 GitHub 上的提交信息转换为 HTML 视图,从而提供更清晰的提交详情。该脚本自动将提交信息列表、提交头部和最新提交信息转换为 HTML 格式,以增强视觉效果和用户体验,配合git使用

功能

  • 提交信息列表转换: 将提交消息列表中的提交信息转化为 HTML 视图。
  • 头部信息展示: 显示提交头部和最新提交的详细信息。
  • 增强视觉效果: 改善提交信息的可视性和用户体验。

PowerShell配合上传到远程仓库

点击qinwuyuan.ps1下载Powershell脚本

 param (
    [string]$qinwuyuan_messageFilePath
)
$qinwuyuan_scriptPath = $PSScriptRoot
$qinwuyuan_rootDrive1 = [System.IO.Path]::GetPathRoot($qinwuyuan_scriptPath).TrimEnd('\')
if (-not $qinwuyuan_messageFilePath) {
    $qinwuyuan_messageFilePath = "$qinwuyuan_rootDrive1\path\to\change\commit.txt"
}
$qinwuyuan_oldCommitFilePath = "$qinwuyuan_scriptPath\oldcommit.txt"
if (-not (Test-Path $qinwuyuan_messageFilePath)) {
    exit 1
}
if (-not (Test-Path .git)) {
    exit 1
}
$qinwuyuan_newCommitMessage = Get-Content $qinwuyuan_messageFilePath -Raw
$qinwuyuan_oldCommitMessage = if (Test-Path $qinwuyuan_oldCommitFilePath) {
    Get-Content $qinwuyuan_oldCommitFilePath -Raw
} else {
    ""
}
if ($qinwuyuan_newCommitMessage -eq $qinwuyuan_oldCommitMessage) {
    $qinwuyuan_currentDateTime = Get-Date -Format "yyyy/M/d HH:mm:ss"
    $qinwuyuan_commitMessage = @"
https://avatars.githubusercontent.com/u/96548841?v=4&size=32">
https://github.com/ChinaGodMan">
  人民的勤务员Github:ChinaGodMan

(UTC+8) $qinwuyuan_currentDateTime 
"@
} else {
    $qinwuyuan_currentDateTime = Get-Date -Format "yyyy/M/d HH:mm:ss"
    $qinwuyuan_commitMessage = $qinwuyuan_newCommitMessage -replace '\$qinwuyuan_currentDateTime', $qinwuyuan_currentDateTime
}
$qinwuyuan_currentBranch = git rev-parse --abbrev-ref HEAD
if ($LASTEXITCODE -ne 0) {
    exit 1
}
git add .
git commit -m $qinwuyuan_commitMessage
if ($LASTEXITCODE -ne 0) {
    exit 1
}
git push origin $qinwuyuan_currentBranch --force
if ($LASTEXITCODE -ne 0) {
    exit 1
}
Copy-Item -Path $qinwuyuan_messageFilePath -Destination $qinwuyuan_oldCommitFilePath -Force

🔍你可能在找GitHub相关脚本

支持

许可证

此脚本使用 MIT 许可证

使用后: 1.png 使用前: 2.png

使用帮助

推荐浏览器和脚本管理器:

  • Greasemonkey + Waterfox
  • Tampermonkey/Violentmonkey + Firefox
  • Tampermonkey/Violentmonkey + Chrome
  • Userscripts + ios Safari
  • Violentmonkey/KiWiBrowser + Android

如果你需要了解更多关于如何安装用户脚本,点击我查看图文教学!

更多用户脚本 / 回到顶部↑

查看所有发布脚本

🔍你可能在找ChatGPT相关脚本

🔍你可能在找网页相关脚本

🔍你可能在找GitHub相关脚本

🔍你可能在找Google相关脚本

  • Google 高级搜索: 这是一个为 Google 添加高级搜索表单的用户脚本。它能在页面顶部添加一个可隐藏的高级搜索表单,使您能够更精确地搜索信息。
  • Google 搜索屏蔽指定站点: 在搜索引擎结果中屏蔽特定的站点,帮助用户过滤掉不需要的搜索结果。 自定义输入屏蔽站点。格式-zhihu -baidu 用于屏蔽谷歌搜索内容

🔍你可能在找GreasyFork相关脚本

🔍你可能在找成人脚本

🔍你可能在找自动翻译

  • 外语终结者: 识别非中文字符,如果长度大于 5 且翻译文本中不含中文,则替换为中文,需要可访问google的网络
  • 网页翻译——自动翻译为中文: 给每个非中文的网页右下角(可以调整到左下角)添加一个 google 翻译图标,该版本为中文翻译版本,只把外语翻译为中文,添加自动翻译