-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsigu.json
28 lines (28 loc) · 4.58 KB
/
sigu.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[{
"articleStyle": 2,
"concurrentRate": "",
"customOrder": -101062,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"header": "{\"User-Agent\": \"Mozilla/5.0 (Linux; Android 13; 2112123AC) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36\"}",
"lastUpdateTime": 0,
"loadWithBaseUrl": true,
"loginUrl": "https://sigu.cc",
"ruleArticles": "<js>\nvar ed_net=String(JSON.parse(java.ajax(\"https://cdn.jsdelivr.net/gh/ljun223/reader3@latest/sigu.json\"))[0].sourceComment).match(/版本:(.*)/)[1]\nvar ed_local=String(source.sourceComment).match(/版本:(.*)/)[1];\ned_local!=ed_net?java.longToast(\"当前订阅源有更新,您可以选择去往源仓库更新也可以继续使用当前版本\"):\"\"\nlist=\"\"\nif(baseUrl.match(/search/)){\n String(source)==0?java.longToast(\"当前未输入搜索内容!\"):\"\"\n\t \tlist=java.getElement(\"id.searchList@li\")\n\t if(list==\"\"&&result.match(/频繁操作/)){\n\t \tjava.longToast(\"搜索间隔3秒,请不要频繁操作哦!\");\n\t \t}else if(list==\"\"&&result.match(/请输入验证码/)){\n\t //java.log(\"输入验证码\")\nyzm=java.getVerificationCode(\"https://sigu.cc/index.php/verify/index.html?\"); \t\tverifi_url=\"http://sigu.cc/index.php/ajax/verify_check?type=search&verify=\"+yzm+\",\"+JSON.stringify({\"cookie\":cookie})\t \t\t\n\t \t\tdata=java.ajax(verifi_url) \t\t\t\n\t \tcookie=java.getCookie(verifi_url); \t url=baseUrl+\",\"+JSON.stringify({\"cookie\":cookie}); \n\t \thtml=java.ajax(url)\n\t java.setContent(html)\n\t list=java.getElement(\"id.searchList@li\")\n\t \t}\n\t }else{\tlist=java.getElement(\"class.myui-vodlist__box\")\n\t \t}\n\t \tlist\n</js>",
"ruleContent": "<html><head><meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no\"/>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/gh/ljun223/reader3@latest/js/yingshi.css\" />\n<script src=\"//cdn.staticfile.org/jquery/2.2.4/jquery.min.js\"></script>\n</head>\n<div class =\"dz\" width=\"100%\"></div>\n<div class=\"dplayer\" id=\"dplayer\" style=\"width:100%;height:350\"></div>\n<div id=\"tab\"><ul>{{@@class.nav nav-tabs active@a@html}}</ul></div>\n<br>\n<br>\n{{@@class.myui-content__list@html}}\n<script>\nfunction video(url){\n$.get(url,function(result){\n\tjson=result.match(/var player.*?=(\\{.*?\\})</)[1];\nvar src=JSON.parse(json).url;\nsrc=decodeURIComponent(atob(src));\nvar path=\"{{source.sourceUrl}}/static/js/playerconfig.js\";\n$.get(path,function(js){\n\tjs=js.match(/player_list=(\\{.*?\\}),MacPlayerConfig/)[1]\n\tfrom=JSON.parse(json).from;\n\tparse=JSON.parse(js)[from].parse;\n\turl=parse+src;\t\niframe= '<iframe width=\"100%\" height=\"100%\" src=\"'+url+'\" frameborder=\"0\" border=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" allowfullscreen=\"true\" mozallowfullscreen=\"mozallowfullscreen\" msallowfullscreen=\"msallowfullscreen\" oallowfullscreen=\"oallowfullscreen\" webkitallowfullscreen=\"webkitallowfullscreen\">';\n$(\".dplayer\").html(iframe)\n$(\".dz\").html(url);\n})});}\n(function(){\n$(\".myui-content__list\").hide();\n$(\".myui-content__list:eq(0)\").show();\n$(\"li:eq(0)\").addClass(\"active\")})();\n$(\"button\").ready(function(){\nurl=$(\"button:first\").val();\n$(\"button:first\").addClass(\"upBtn\");\nvideo(url);\n});\n$(\"button\").click(function(){\n$(\"button\").removeClass(\"upBtn\");\n$(this).addClass(\"upBtn\");\nurl='{{source.souceUrl}}'+$(this).val();\nvideo(url);\n});\n$(\"li\").click(function(){\n$(\"li\").removeClass(\"active\");\n$(this).addClass(\"active\");\nindex=$(this).index();\ntext=$(this).text()\n$(\".myui-content__list\").hide();\n$(\".myui-content__list:eq(\"+index+\")\").show();\n})</script></html>\n@js:\nresult = result.replace(/<li.*?><a.*? href=\"([^\"]+)\">([^<]+)<\\/a><\\/li>/g,'<button value=\"$1\">$2</button>').replace(/<a/g,'<li').replace(/<\\/a>/g,'</li>')",
"ruleDescription": "",
"ruleImage": "class.lazyload@data-original",
"ruleLink": "a.0@href",
"ruleNextPage": "text.下一页@href",
"rulePubDate": "class.lazyload@text",
"ruleTitle": "a@title",
"singleUrl": false,
"sortUrl": "搜索::/search/-------------.html?wd={{source.getVariable()}}&submit=\n电影::/type/m.html\n电视剧::/type/tv.html\n综艺::/type/va.html\n动漫::/type/ct.html",
"sourceComment": "版本:1.0.3\n导航:\nhttps://sigu.app",
"sourceGroup": "影视",
"sourceIcon": "https://inews.gtimg.com/newsapp_ls/0/11929387606/0",
"sourceName": "思古影视",
"sourceUrl": "https://siguyy.cn",
"style": ""
}]