mirror of
https://github.com/XIU2/UserScript.git
synced 2026-10-07 15:54:20 +00:00
优化 Release 文件名较长时的显示效果
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// @name:zh-CN Github 增强 - 高速下载
|
||||
// @name:zh-TW Github 增強 - 高速下載
|
||||
// @name:ru Улучшение GitHub – быстрое скачивание
|
||||
// @version 2.6.24
|
||||
// @version 2.6.25
|
||||
// @author X.I.U
|
||||
// @description High-speed download of Git Clone/SSH, Release, Raw, Code(ZIP) and other files (Based on public welfare), project list file quick download (☁)
|
||||
// @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)
|
||||
@@ -295,6 +295,7 @@
|
||||
let html = document.querySelectorAll('.Box-footer'); if (html.length == 0 || location.pathname.indexOf('/releases') == -1) return
|
||||
let divDisplay = 'margin-left: -90px;', new_download_url = get_New_download_url();
|
||||
if (document.documentElement.clientWidth > 755) {divDisplay = 'margin-top: -3px;margin-left: 8px;display: inherit;';}; // 调整小屏幕时的样式
|
||||
html[0].appendChild(document.createElement('style')).textContent = '@media (min-width: 768px) {.Box-footer li.Box-row>div>span.color-fg-muted {min-width: 27px !important;}}';
|
||||
for (const current of html) {
|
||||
if (current.querySelector('.XIU2-RS')) continue
|
||||
current.querySelectorAll('li.Box-row a').forEach(function (_this) {
|
||||
|
||||
Reference in New Issue
Block a user