更新github油猴脚本:下载链接用新窗口打开。
parent
070e42042c
commit
43c7ac81be
|
@ -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>');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue