Skip to content

Commit f0b39cd

Browse files
committed
fix
1 parent a45e6e8 commit f0b39cd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Easy offline/Easy offline.user.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @namespace http://tampermonkey.net/
99
// @require https://cdn.jsdelivr.net/jquery/1.7.2/jquery.min.js
1010
// @require https://cdn.jsdelivr.net/hi-base64/0.2.0/base64.min.js
11-
// @version 1.2.2
11+
// @version 1.2.3
1212
// @author Hoothin
1313
// @mail rixixi@gmail.com
1414
// @include http*://*/*
@@ -362,15 +362,15 @@
362362
break;
363363
}
364364
}
365-
if(isDisk){
365+
if(location.href.indexOf("pan.baidu.com/wap/home") != -1){
366+
if(curlink)location.href="https://pan.baidu.com/disk/home";
367+
}else if(location.href.indexOf("github.com/hoothin/UserScripts/tree/master/Easy%20offline") != -1){
368+
setting();
369+
}else if(isDisk){
366370
if(curlink){
367371
diskFun();
368372
GM_deleteValue('eoUrl');
369373
}
370-
}else if(location.href.indexOf("pan.baidu.com/wap/home") != -1){
371-
if(curlink)location.href="https://pan.baidu.com/disk/home";
372-
}else if(location.href.indexOf("github.com/hoothin/UserScripts/tree/master/Easy%20offline") != -1){
373-
setting();
374374
}else{
375375
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
376376
var observer = new MutationObserver(function(records){

0 commit comments

Comments
 (0)