Skip to content

Commit 5c55ee6

Browse files
committed
fix
1 parent 1d0f9a5 commit 5c55ee6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Easy offline/Easy offline.user.js

Lines changed: 5 additions & 5 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.3.8
11+
// @version 1.3.10
1212
// @author Hoothin
1313
// @mail rixixi@gmail.com
1414
// @include http*://*/*
@@ -338,7 +338,7 @@
338338
if(!siteConfig.directUrl){
339339
if(e.ctrlKey && e.shiftKey && siteConfig.canMul)
340340
GM_setValue("eoUrl",allUrl);
341-
else GM_setValue("eoUrl",getRightUrl(offUrl));
341+
else GM_setValue("eoUrl",offUrl);
342342
}
343343
e.stopPropagation();
344344
});
@@ -444,11 +444,11 @@
444444
if(sNodes.indexOf(curNode)!=-1)continue;
445445
sNodes.push(curNode);
446446
}
447-
let href=curNode.href,rUrl=getRightUrl(href);
447+
let href=getRightUrl(curNode.href);
448448
let clone=$("<a></a>").attr("style",curNode.getAttribute("style")).attr("href",href).addClass('whx-a').css("background-color","#e1e1e1").css("background-image",'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAARVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADc6ur3AAAAFnRSTlMAYM5vMOA/ENGegK2olI6G1b97Z0sXENA+jAAAAKFJREFUKM+FklkSxCAIRHFfss3K/Y86iQSDVqzpH7FfgQpCVfAmGx+gl9JI0qrxrcNLzooEbKUG4EKWdkCiDRV0N0RTrZ5wvdgTTgp4SzCAHxAPZkAM5GOJWuuT7FE5OVPOBFLTYb3Oc2YB5uJ8+G6pgkTGt74ntcCJHiwFLHw10Tdc93jlGXGvSRtsHNpuPs+/o1ODfxAtSL0f7HPC+L/9AF60G3QxO1UaAAAAAElFTkSuQmCC")');
449-
if(allUrl.toString().indexOf(rUrl)==-1)allUrl.push(rUrl);
449+
if(allUrl.toString().indexOf(href)==-1)allUrl.push(href);
450450
clone.mouseover(function(e){
451-
offUrl=clone[0].href;
451+
offUrl=href;
452452
parentDiv.css("display","block");
453453
var basePos=clone.offset();
454454
parentDiv.offset({top:basePos.top,left:basePos.left});

0 commit comments

Comments
 (0)