4kep

https://www.4kep.com

分享者: logique (204)发布时间: 2023/06/03

该用户很懒,什么介绍也没有写!
二维码导入
{
    "articleStyle": 2,
    "customOrder": 0,
    "enableJs": true,
    "enabled": true,
    "enabledCookieJar": true,
    "lastUpdateTime": 0,
    "loadWithBaseUrl": true,
    "ruleArticles": "ul@li",
    "ruleContent": "<js>\r\nhtml = result\r\n\/\/总页数-1(最后一页没有图\r\npage = parseInt(java.getString('class.numpages.-1@tag.a@text'))\r\njava.log(\"共\"+page+\"页\")\r\nif(page>1){\r\nnurl=[];\nbase=baseUrl;\r\nfor(i=2;i<=page;i++){\r\n\tnurl.push(base+\"\/\"+i+\",{'retry':16}\");\r\n}\r\n\r\nres=java.ajaxAll(nurl)\r\nfor(i in res){\r\n\thtml += org.jsoup.Jsoup.parse(res[i].body())\r\n}\r\n}\r\n<\/js>\r\n\r\ntag.figure@tag.img@src##\\n##,\r\n\r\n<js>\r\nli='\\n'\r\nlist=result.split(',')\r\nfor(i in list){\r\n\t\tli += '<li><img src=\"https:\/\/i0.wp.com\/www.4khd.com\/wp-content\/uploads\/2023\/02\/4khd-1.png?fit=32%2C32&ssl=1\" data-src=\"'+list[i]+'\"><\/li>\\n'\r\n\t}\r\n\r\n<\/js>\r\n\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\">\r\n\r\n\r\n<ul id=\"box\">\r\n{{result}}\r\n<\/ul>\r\n<h3>{{@@tag.h3.0@text}}<\/h3>\r\n<link rel=\"stylesheet\" href=\"https:\/\/cdn.bootcdn.net\/ajax\/libs\/viewerjs\/1.10.1\/viewer.min.css\">\r\n<script src=\"https:\/\/cdn.bootcdn.net\/ajax\/libs\/viewerjs\/1.10.1\/viewer.min.js\"><\/script>\r\n<script>\n\r\n\troot = document.getElementById('box')\r\n\tlazy = new IntersectionObserver(entires => {\r\n\t\tentires.forEach(item => {\r\n\t\t\tif(item.isIntersecting){\r\n\t\t\t\titem=item.target\r\n\t\t\t\titem.src=item.getAttribute('data-src')\r\n\t\t\t\tlazy.unobserve(item)\r\n\t\t\t}\r\n\t\t})\r\n\t}, {\r\n\t\troot: root,\r\n\t\tthreshold: [0],\r\n\t\trootMargin:\"0px 0px 500px 0px\"\r\n\t})\r\n\r\nimgs = document.getElementsByTagName('img')\r\nArray.from(imgs).forEach(item => {\r\n\t\tlazy.observe(item)\r\n\t})\r\n\r\n\/\/查看大图插件\r\nnew Viewer(root,{title:false,interval:3000})\r\n<\/script>\r\n",
    "ruleImage": "img@src",
    "ruleLink": "figure@a@href",
    "ruleNextPage": "page",
    "rulePubDate": "time@text",
    "ruleTitle": "h2.0@a@text",
    "singleUrl": false,
    "sortUrl": "最新::\/{{page - 1 == 0 ? \"\": \"?query-3-page=\"+page}}\n韩国::\/pages\/album{{page - 1 == 0 ? \"\": \"?query-3-page=\"+page}}\ncospaly::\/pages\/cosplay{{page - 1 == 0 ? \"\": \"?query-3-page=\"+page}}\ndjawa::\/search\/djawa\/page\/{{page}}\n搜索::\/search\/{{source.getVariable().length()<1?source.setVariable('손예은'):source.getVariable()}}\/page\/{{page}}",
    "sourceIcon": "https:\/\/i0.wp.com\/www.4khd.com\/wp-content\/uploads\/2023\/02\/4khd-1.png?fit=32%2C32&ssl=1",
    "sourceName": "4kep",
    "sourceUrl": "https:\/\/www.4kep.com",
    "style": "\/*标题相关*\/\nh3{text-align:center}\nh6{margin-bottom:0}\n* {\n\tmargin: 0;\n\tpadding: 0\n}\nul {\n\tfont-size: 0;\n\theight: 100%;\n\toverflow-y: scroll\n}\nli {\n\tlist-style: none;\n\ttext-align: center\n}\nimg {\n\twidth: 100%;\n\theight: auto\n}"
}
站长推荐
广告