update SrcJyXunmi.js.

pull/1/head
src48597962 3 years ago committed by Gitee
parent 5a76704f41
commit 92a2ef4460
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 13
      SrcJyXunmi.js

@ -457,6 +457,19 @@ function xunmierji(type,ua) {
var pic = MY_PARAMS.pic || xpath(html, xpfile.dtImg);
var desc = String(xpath(html, xpfile.dtDesc)) || '...';
var arts = xpathArray(html, xpfile.dtFromNode+xpfile.dtFromName);
function removeByValue(arr, val) {
for(var i = 0; i < arr.length; i++) {
if(arr[i] == val) {
arr.splice(i, 1);
break;
}
}
}
removeByValue(arts,"猜你喜欢");
var contname = xpathArray(html, xpfile.dtUrlNode+xpfile.dtUrlName);
var conturl = xpathArray(html, xpfile.dtUrlNode+xpfile.dtUrlSubNode);
log(contname);
log(conturl);
var conts = [];
}else{
//网页

Loading…
Cancel
Save