更新github油猴脚本:下载链接用新窗口打开。

pull/289/head
王良 2024-04-03 01:12:48 +08:00
parent 070e42042c
commit 43c7ac81be
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@
url = new_download_url[i][0] + href[1]
}
if (location.host !== 'github.com') url = url.replace(location.host,'github.com')
_html += `<a style="${style[0]}" class="btn" href="${url}" title="${new_download_url[i][2]}" rel="noreferrer noopener nofollow">${new_download_url[i][1]}</a>`
_html += `<a style="${style[0]}" class="btn" href="${url}" target="_blank" title="${new_download_url[i][2]}" rel="noreferrer noopener nofollow">${new_download_url[i][1]}</a>`
}
_this.parentElement.nextElementSibling.insertAdjacentHTML('beforeend', _html + '</div>');
});