Skip to content

Commit e454203

Browse files
committed
优化 按钮样式
1 parent 84b0d18 commit e454203

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

GithubEnhanced-High-Speed-Download.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
var backColor = '#ffffff';
2222
var fontColor = '#888888';
2323
if('dark' == $('html').attr('data-color-mode')){ // 黑暗模式判断
24-
backColor = '#0D1117';
24+
backColor = '#161a21';
2525
fontColor = '#b2b8bf';
2626
}
2727
var download_url = [
@@ -114,7 +114,7 @@
114114
html = `<div style="display: flex;justify-content: flex-end;">`;
115115
for (let i=0;i<url.length;i++)
116116
{
117-
html = html + `<div><a style="${style[0]}" class="btn" href="${url[i]}" rel="noreferrer noopener nofollow">${download_url[i][1]}</a></div>`
117+
html = html + `<a style="${style[0]}" class="btn" href="${url[i]}" rel="noreferrer noopener nofollow">${download_url[i][1]}</a>`
118118
}
119119
html = html + `</div>`
120120
$(this).next().after(html);
@@ -137,7 +137,7 @@
137137
html = `<div style="display: flex;justify-content: flex-end;flex-grow: 1;">`;
138138
for (let i=0;i<url.length;i++)
139139
{
140-
html = html + `<div><a style="${style[0]}" class="btn" href="${url[i]}" rel="noreferrer noopener nofollow">${download_url[i][1]}</a></div>`
140+
html = html + `<a style="${style[0]}" class="btn" href="${url[i]}" rel="noreferrer noopener nofollow">${download_url[i][1]}</a>`
141141
}
142142
html = html + `</div>`
143143
$(this).after(html);

0 commit comments

Comments
 (0)