diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index 66686ff..f3bf7c9 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Github 增强 - 高速下载 -// @version 1.5.1 +// @version 1.5.2 // @author X.I.U // @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) // @match *://github.com/* @@ -123,11 +123,17 @@ // Release function addRelease() { let html = document.getElementsByClassName('Box Box--condensed');if (!html) return + let divDisplay; + if (document.documentElement.clientWidth > 1000) { + divDisplay = 'display: flex;'; + } else { + divDisplay = 'display: block;'; + } Array.from(html).forEach(function (current) { current.querySelectorAll('.d-flex.Box-body > a').forEach(function (_this) { let href = _this.href.split('github.com'), url = [], - _html = `
`; + _html = `
`; for (let i=0;i a').forEach(function (_this) { let href = _this.href.split('github.com'), url = [], - _html = `
`; + _html = `
`; for (let i=0;i