扇贝新闻R

视界
获赞:15    评论:3    查看:1639
海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"title":"扇贝新闻R","author":"","url":"https://www.shanbay.com/api/v2/news/articles/?ipp=10&page=fypage","version":0,"col_type":"movie_1","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js:\nvar res={},d=[];\nvar json=JSON.parse(getResCode());\nfor (let i in json.data.objects) {\n  d.push({\n    title:json.data.objects[i].title_en,\n    desc:json.data.objects[i].title_cn,\n    img:json.data.objects[i].thumbnail_urls[0],\n    url :'https://www.shanbay.com/api/v2/news/articles/'+json.data.objects[i].id+'/'\n  });\n}\nres.data=d;\nsetHomeResult(res);","search_url":"","titleColor":"","group":"⑧test","searchFind":"","detail_col_type":"rich_text","detail_find_rule":"js:\nvar res={},d=[];\nvar json=JSON.parse(getResCode());\nvar cookie=getVar('cookie');\nif (cookie != '') {\nfunction parseContent(content) {\n  if (content.indexOf('<img>')>-1) {\n    content=content.replace(/><url>.*?(http.*?\\.(png|jpg)).*?<\\/img/g,' src=\"$1\"');\n  }\n  if (content.indexOf('<video>')>-1) {\n    content=content.replace(/<video.*?video>/g,'');\n  }\n  content=content.replace(/<!\\[CDATA\\[(.*?)\\]\\]>/g,'$1');\n  content=content.replace(/<para id=\"(.*?)\".*?>(.*?)<\\/para>/g,'<div>$2<br><a href =\"https://www.shanbay.com/api/v2/news/notes/?para_id=$1&ipp=10&page=fypage;get;utf-8;{User-Agent@Mobile&&Cookie@.js:getVar(\\'cookie\\')}@rule=js:var res={},d=[];var json=JSON.parse(getResCode());for(var i in json.data.objects)d.push({title:json.data.objects[i].user_info.nickname,img:json.data.objects[i].user_info.avatar,col_type:\\'avatar\\'},{title:json.data.objects[i].content,col_type:\\'rich_text\\'});res.data=d;setHomeResult(res);\">点击查看笔记</a></div>');\n  return '<h2>'+json.data.title_en+'</h2>'+content;\n};\nd.push({\n  title:parseContent(json.data.content),\n  col_type:'rich_text'\n},{\n  title:'点击查看评论',\n  col_type:'text_center_1',\n  url:getUrl()+'/reviews/?page=fypage&ipp=10;get;utf-8;{User-Agent@Mobile&&Cookie@.js:getVar(\"cookie\")}@rule=js:var res={},d=[];var json=JSON.parse(getResCode());for(var i in json.data.objects)d.push({title:json.data.objects[i].user_info.nickname,img:json.data.objects[i].user_info.avatar,col_type:\"avatar\"},{title:json.data.objects[i].content,col_type:\"rich_text\"});res.data=d;setHomeResult(res);'\n});\n}\nelse {\nfunction parseContent(content) {\n  if (content.indexOf('<img>')>-1) {\n    content=content.replace(/><url>.*?(http.*?\\.(png|jpg)).*?<\\/img/g,' src=\"$1\"');\n  }\n  if (content.indexOf('<video>')>-1) {\n    content=content.replace(/<video.*?video>/g,'');\n  }\n  content=content.replace(/<!\\[CDATA\\[(.*?)\\]\\]>/g,'$1');\n  content=content.replace(/para/g,'div');\n  return '<h2>'+json.data.title_en+'</h2>'+content;\n};\nd.push({\n  title:parseContent(json.data.content),\n  col_type:'rich_text'\n});\n}\nres.data=d;\nsetHomeResult(res);","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"mobile","preRule":"var cookie = '';\nputVar2('cookie',cookie.toString());"}

有空学习学习英语也是不错的,查看评论需到预处理填写 cookie

liukh
时光清浅
布清佰
小棉袄
无可奉告
回复(3)
发表话题
膜拜
膜拜各位大佬!!!
  • 积分
    0
  • 注册排名
    3097