File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77// @description :zh-TW 一鍵自動將磁鏈、bt種子或其他下載資源離綫下載至網槃
88// @namespace http://tampermonkey.net/
99// @require http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js
10- // @version 1.0.45
10+ // @version 1.0.46
1111// @author Hoothin
1212// @mail rixixi@gmail.com
1313// @include http*://*/*
9090 furk :"Furk网盘" ,
9191 seedr :"Seedr网盘" ,
9292 pcloud :"Pcloud网盘" ,
93- xunlei :"迅雷离线"
93+ xunlei :"迅雷离线" ,
94+ enable :"启用" ,
95+ disable :"禁用"
9496 } ;
9597 break ;
9698 default :
101103 furk :"Furk" ,
102104 seedr :"Seedr" ,
103105 pcloud :"Pcloud" ,
104- xunlei :"Xunlei"
106+ xunlei :"Xunlei" ,
107+ enable :"Enable " ,
108+ disable :"Disable "
105109 } ;
106110 break ;
107111 }
354358 for ( var x = 0 ; x < Object . keys ( sites ) . length ; x ++ ) {
355359 let siteConfig = sites [ x ] ;
356360 let icon = $ ( "<div style='height:25px;width:25px;float:left;border-radius:50%;background-position:center;background-repeat:no-repeat;background-size:20px;margin-left:20px;cursor:pointer'></div>" ) ;
357- icon . css ( "background-color" , "#" + siteConfig . bgColor ) . attr ( "title" , i18n [ siteConfig . name ] ) ;
361+ icon . css ( "background-color" , "#" + siteConfig . bgColor ) . attr ( "title" , i18n . disable + i18n [ siteConfig . name ] ) ;
358362 if ( GM_getValue ( "eoHide" + siteConfig . name ) ) {
359363 icon . css ( "opacity" , "0.2" ) ;
364+ icon . attr ( "title" , i18n . enable + i18n [ siteConfig . name ] ) ;
360365 }
361366 if ( siteConfig . bgImg ) icon . css ( "background-image" , "url(\"" + siteConfig . bgImg + "\")" ) ;
362367 icon . on ( "click" , function ( ) {
363368 var eoHide = GM_getValue ( "eoHide" + siteConfig . name ) ;
364369 GM_setValue ( "eoHide" + siteConfig . name , ! eoHide ) ;
365370 icon . css ( "opacity" , eoHide ?"1" :"0.2" ) ;
371+ icon . attr ( "title" , ( eoHide ?i18n . disable :i18n . enable ) + i18n [ siteConfig . name ] ) ;
366372 } ) ;
367373 icons . append ( icon ) ;
368374 }
You can’t perform that action at this time.
0 commit comments