-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfreeok.json
26 lines (26 loc) · 4.77 KB
/
freeok.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
[{
"articleStyle": 2,
"customOrder": -101070,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"header": "{\"User-Agent\": \"Mozilla/5.0 (Linux; Android 12; 2112123AC) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36\",\n\"Referer\":\"https://www.freeok.vip\"\n}",
"lastUpdateTime": 0,
"loadWithBaseUrl": true,
"loginUrl": "https://www.freeok.vip",
"ruleArticles": "<js>\nvar ed_net=String(JSON.parse(java.ajax(\"https://cdn.jsdelivr.net/gh/ljun223/reader3@latest/freeok.json\"))[0].sourceComment).match(/版本:(.*)/)[1]\nvar ed_local=String(source.sourceComment).match(/版本:(.*)/)[1];\ned_local!=ed_net?java.longToast(\"当前订阅源有更新,您可以选择去往源仓库更新也可以继续使用当前版本\"):\"\"\nvar a='class.module-item';\n\nhtml=java.getElement(a);\n\n\tif(result.match(\"请不要频繁操作\")){\n\t\t\n\t\tjava.longToast(\"搜索时间间隔5秒\")\n\t\t\n\t\t}\n\t\telse if(result.match(\"输入验证码\"))\n\t\t{\n\t\turl=source.sourceUrl+\"/so1so/\"+source.getVariable()+\"-------------.html\";\n\t\t\n\t\tcookie=java.getCookie(url)\n\t\t\tyzm=java.getVerificationCode(\"https://www.freeok.vip/index.php/verify/index.html?\");\n\t\t\t\n\tvar yzmurl=\"https://www.freeok.vip/index.php/ajax/verify_check?type=search&verify=\"+yzm+\",\"+JSON.stringify({\"method\": \"POST\",\"cookie\":cookie});\n\t\n\tmsg=java.ajax(yzmurl);\n\t\tjava.log(msg)\n\t\t url=url+\",\"+JSON.stringify({\"cookie\":cookie,\"referer\":url});\n\t\t\n data=java.ajax(url);\n\n\tjava.setContent(data);\n\t\n\thtml=java.getElement(a);\n} \n\thtml\n</js>",
"ruleContent": "<html>\n<head>\n<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\n<div class=\"dplayer\" id=\"dplayer\" style=\"width:100%;height:350\"></div>\n\n<div id=\"tab\"><ul>{{@@[email protected]@html##span##a}}</ul></div>\n<br>\n{{@xpath://*[@class=\"module-play-list\"]/div##div##ul}}\n\n<script>\nfunction video(url){\n$.get(url,function(result){\njson=result.match(/var player.*?=(\\{.*?\\})</)[1];\n//alert (json)\nnext=JSON.parse(json).link_next;\nif(!next){next=next}else{next=\"{{source.sourceUrl}}\"+next}\nsrc= JSON.parse(json).url;\nsrc=decodeURIComponent(src);\n//alert(src)\nvar title=result.match(/<title>(.*?)<\\/title>/)[1];\ntitle=title.split(\" -\")[0];\nif(src.match(/quark|uc/)){\n\talert(\"复制地址栏链接,前往夸克或UC网盘保存\")\n\t$(\".dz\").html(\"🚀 点击链接即可保存 体验4K臻享画质:\"+src)\n\t}else{\npath=\"/okplayer?url=\"+src+\"&next=\"+next+\"&title=\"+title;\n//alert (path)\nframe='<iframe border=\"0\" src=\"'+path+' \" width=\"100%\" height=\"100%\" marginwidth=\"0\" framespacing=\"0\" allowfullscreen=\"true\" marginheight=\"0\" frameborder=\"0\" scrolling=\"no\" vspale=\"0\" noresize>'\n\n$(\".dplayer\").html(frame)\n\nsrc.match(/m3u8/)?$(\".dz\").html(src):$(\".dz\").html(path);\n}\n});\n}\n\n(function(){\nurl=$(\"button:first()\").val();\nvideo(\"{{source.sourceUrl}}\"+url);\n\n$(\".module-play-list-content\").hide();\n$(\".module-play-list-content:eq(0)\").show();\n$(\"li:eq(0)\").addClass(\"active\")})();\n\n$(\"button\").ready(function(){\nurl=$(this).val();\n$(\"button:first\").addClass(\"upBtn\");\nvideo(url);\n});\n\n$(\"button\").click(function(){\n$(\"button\").removeClass(\"upBtn\");\n$(this).addClass(\"upBtn\");\nurl='{{source.sourceUrl}}'+$(this).val();\nvideo(url);\n});\n\n$(\"li\").click(function(){\n$(\"li\").removeClass(\"active\");\n$(this).addClass(\"active\");\nindex=$(this).index();\n$(\".module-play-list-content\").hide();\n$(\".module-play-list-content:eq(\"+index+\")\").show();\n})\n</script>\n</html>\n\n@js:\nresult = result.replace(/<a.*? href=\"([^\"]+)\".*?><span>([^<]+)<\\/span><\\/a>/g,'<button value=\"$1\">$2</button>').replace(/<a/g,'<li').replace(/<\\/a>/g,'</li>')",
"ruleImage": "img@data-original",
"ruleLink": "a.0@href",
"ruleNextPage": "text.下一页@href",
"rulePubDate": "class.module-item-note@text",
"ruleTitle": "img@alt",
"singleUrl": false,
"sortUrl": "搜索::/so1so/{{source.getVariable()}}-------------.html\n电影::/vod-show/1-----------.html\n剧集::/vod-show/2-----------.html\n动漫::/vod-show/3-----------.html\n综艺::/vod-show/4-----------.html\n短剧::/vod-show/12-----------.html",
"sourceComment": "版本:1.0.1",
"sourceGroup": "影视",
"sourceIcon": "https://www.freeok.vip/mxtheme/images/favicon.png",
"sourceName": "Freeok",
"sourceUrl": "https://www.freeok.vip",
"style": ""
}]