diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index 3ccd503..38b7fd1 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -241,9 +241,9 @@ document.addEventListener("DOMContentLoaded", () => { let html = document.querySelectorAll('.Box-footer'); if (html.length == 0 || location.pathname.indexOf('/releases') == -1) return // li:hover 鼠标悬停变色 - let style = document.createElement('style'); - style.innerHTML = '.Box-footer ul li.Box-row:hover { background-color: var(--bgColor-muted); }'; - document.head.appendChild(style); + let styleHover = document.createElement('style'); + styleHover.innerHTML = '.Box-footer ul li.Box-row:hover { background-color: var(--bgColor-muted); }'; + document.head.appendChild(styleHover); 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;';}; // 调整小屏幕时的样式