From aaf0be8967e10ea61efa768ec88c3a4c725cecf6 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 2 Jun 2021 13:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Release=20=E5=8A=A0?= =?UTF-8?q?=E9=80=9F=E6=8C=89=E9=92=AE=E5=9C=A8=E6=89=8B=E6=9C=BA=EF=BC=88?= =?UTF-8?q?=E5=B0=8F=E5=B1=8F=E5=B9=95=EF=BC=89=E4=B8=8A=E7=9A=84=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 = `