From 3c440f2e57980c1d2ba7ebf5cc7e5144117fb707 Mon Sep 17 00:00:00 2001 From: shangfabao Date: Wed, 9 Dec 2020 23:13:56 +0800 Subject: [PATCH 1/2] github dark mode --- GithubEnhanced-High-Speed-Download.user.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index e3d5a1942..12b5c0a32 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -18,6 +18,10 @@ // ==/UserScript== (function() { + var bColor='#ffffff'; + if('dark'==$('html').attr('data-color-mode')){ + bColor='#0D1117'; + } var download_url = [ ['https://gh.con.sh','美国'], ['https://gh.api.99988866.xyz','美国'], @@ -42,7 +46,7 @@ '', '' ], - style = ['padding:0 6px;margin-right: -1px;border-radius: 2px;background-color: #ffffff;border-color: rgba(27, 31, 35, 0.1);font-size: 11px;color: #888888;'], + style = ['padding:0 6px;margin-right: -1px;border-radius: 2px;background-color: '+bColor+';border-color: rgba(27, 31, 35, 0.1);font-size: 11px;color: #888888;'], menu_raw_fast = GM_getValue('xiu2_menu_raw_fast'), menu_menu_raw_fast_ID, menu_feedBack_ID; From f1217808b4bdd1ab84e61e65f03c15e37513e7bd Mon Sep 17 00:00:00 2001 From: shangfabao Date: Wed, 9 Dec 2020 23:26:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=BB=91=E8=89=B2=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E4=BF=AE=E6=94=B9a=E6=A0=87=E7=AD=BE=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index 12b5c0a32..19e0ae9c2 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -18,9 +18,11 @@ // ==/UserScript== (function() { - var bColor='#ffffff'; + var backColor='#ffffff'; + var fontColor='#888888'; if('dark'==$('html').attr('data-color-mode')){ - bColor='#0D1117'; + backColor='#0D1117'; + fontColor='#58A6FF'; } var download_url = [ ['https://gh.con.sh','美国'], @@ -46,7 +48,7 @@ '', '' ], - style = ['padding:0 6px;margin-right: -1px;border-radius: 2px;background-color: '+bColor+';border-color: rgba(27, 31, 35, 0.1);font-size: 11px;color: #888888;'], + style = ['padding:0 6px;margin-right: -1px;border-radius: 2px;background-color: '+backColor+';border-color: rgba(27, 31, 35, 0.1);font-size: 11px;color: '+fontColor+';'], menu_raw_fast = GM_getValue('xiu2_menu_raw_fast'), menu_menu_raw_fast_ID, menu_feedBack_ID;