File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11 // ==UserScript==
22// @name Github 增强 - 高速下载
3- // @version 1.2.3
3+ // @version 1.2.4
44// @author X.I.U
55// @description 高速下载 Clone、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
66// @match https://github.com/*/*
7777 menu_raw_fast += 1 ;
7878 }
7979 GM_setValue ( 'xiu2_menu_raw_fast' , menu_raw_fast ) ;
80+ console . log ( 11111 )
8081 delDownLink ( ) ; // 删除旧加速源
82+ console . log ( 22222 )
8183 addDownLink ( ) ; // 添加新加速源
84+ console . log ( 33333 )
8285 GM_notification ( `已切换加速源为:${ raw_url_name [ menu_raw_fast ] } ` ) ; // 提示消息
8386 registerMenuCommand ( ) ; // 重新注册脚本菜单
8487 } ;
219222 // 添加 Raw 下载链接(☁)
220223 function addDownLink ( ) {
221224 // 如果不是项目文件页面,就返回
222- var files = $ ( '.octicon.octicon-file' ) ;
225+ var files = $ ( 'div.Box-row svg .octicon.octicon-file' ) ;
223226 if ( files . length === 0 ) return ;
224- var files1 = $ ( '.fileDownLink' ) ;
227+ var files1 = $ ( 'a .fileDownLink' ) ;
225228 if ( files1 . length > 0 ) return ;
226229
227230 // 鼠标指向则显示
You can’t perform that action at this time.
0 commit comments