小黄书(图集)
https://xchina.co/photos.html
分享者: ixiaoxu_111 (3888)发布时间: 2023/12/25
(挂梯使用)(加载不出来多刷新几次)
{ "articleStyle": 2, "customOrder": 0, "enableJs": true, "enabled": true, "enabledCookieJar": true, "lastUpdateTime": 0, "loadWithBaseUrl": true, "ruleArticles": "class.list@class.item", "ruleContent": "<!DOCTYPE html>\n<html>\n\n<head>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\">\n <link rel=\"stylesheet\" href=\"https:\/\/cdn.bootcdn.net\/ajax\/libs\/viewerjs\/1.10.1\/viewer.min.css\">\n <script src=\"https:\/\/cdn.bootcdn.net\/ajax\/libs\/viewerjs\/1.10.1\/viewer.min.js\"><\/script>\n <script src=\"http:\/\/lib.sinaapp.com\/js\/jquery\/2.0.2\/jquery-2.0.2.min.js\"><\/script>\n <script src=\"https:\/\/cdn.jsdelivr.net\/hls.js\/latest\/hls.min.js\"><\/script>\n <script src=\"https:\/\/xchina.co\/scripts\/my_49.js\"><\/script>\n<\/head>\n\n<body>\n\n <div id=\"div_video\">\n <div class=\"controls\">\n <button class=\"btn prev\" go=\"-1\" disabled>上一个<\/button>\n <div class=\"index\">\n <span class=\"current\">1<\/span>\n \/\n <span class=\"total\"><\/span>\n <\/div>\n <button class=\"btn next\" go=\"1\">下一个<\/button>\n <\/div>\n <video id=\"video\" width=\"100%\" controls src=\"\"><\/video>\n <\/div>\n\n {{@@class.main@tag.script.0@html}}\n\n <script>\n\n\n var xhs_type = \"{{@@id.tab_1@tag.div.2@text}}\";\n var regType = \/V\/;\n if (regType.test(xhs_type)) {\n $('#div_video').css('display', 'block');\n \/\/ 判断是否是mp4类型视频\n if (typeof videos !== 'undefined') {\n \/\/ 视频个数\n var total = videos.length;\n $('.total').text(total)\n\n if (total == 1) {\n $('.controls').css(\"display\", 'none');\n }\n\n playVideo();\n $(\".btn[go]\").click(function () {\n if (!$(this).attr(\"disabled\")) {\n var go = parseInt($(this).attr(\"go\"));\n currentVideo += go;\n currentVideo = currentVideo < 0 ? 0 : currentVideo;\n currentVideo = currentVideo > videos.length - 1 ? videos.length - 1 : currentVideo;\n currentVideo == 0 ? $(\".btn[go='-1']\").attr(\"disabled\", \"disabled\") : $(\".btn[go='-1']\").removeAttr(\"disabled\");\n currentVideo == videos.length - 1 ? $(\".btn[go='1']\").attr(\"disabled\", \"disabled\") : $(\".btn[go='1']\").removeAttr(\"disabled\");\n $(\".current\").text(currentVideo + 1);\n playVideo(true);\n }\n });\n function playVideo(autoplay = false) {\n var $player = $(\"video\");\n var player = $player;\n $player.attr(\"poster\", $player.attr(\"_poster\")).attr(\"src\", domain + videos[currentVideo][\"url\"]).off(\"canplaythrough\").on(\"canplaythrough\", function () {\n $player.removeAttr(\"poster\");\n });\n player.load();\n if (autoplay) {\n player.play();\n }\n }\n }else{\n $('.controls').css(\"display\", 'none'); \n }\n }\n\n <\/script>\n{{@@class.container@tag.script.1@html}}\n\n\n <div id=\"box\">{{@@class.photos@tag.a@tag.figure@tag.img@html}}<\/div>\n <div id=\"loads\">加载中 <\/div>\n <script>\n var loads;\n $(document).ready(function () {\n var box = document.getElementById(\"box\");\n loads = document.getElementById(\"loads\");\n new Viewer(box, { title: false, interval: 3000 })\n var i = 1;\n var page = {{@@class.pager.0@tag.a.-2@textNodes##\\n}};\n var baseurl = window.location.href.substring(0, window.location.href.lastIndexOf('.'));\n var urlStart = baseurl + \"\/\";\n var urlEnd = \".html\";\n var nurl;\n new IntersectionObserver(entries => {\n if (entries[0].intersectionRatio) {\n if (entries[0].intersectionRatio <= 0) return;\n for (var j = 0; j < 1; j++) {\n fetchHtml(i, page, urlStart, urlEnd);\n i += 1;\n }\n }\n }).observe(loads)\n });\n\n function fetchHtml(i, page, urlStart, urlEnd) {\n\n if (i < page) {\n i += 1;\n nurl = urlStart + i + urlEnd;\n $.ajax({\n url: nurl,\n dataType: 'html',\n success: function (html) {\n $('#box').append('<h5>' + i + '->' + page + '<\/h5>');\n $('#box').append($(html).find('img.cr_only'));\n box.viewer.update();\n },\n error: function (xhr) { }\n });\n } else {\n $('#loads').html(\"\");\n }\n }\n <\/script>\n<\/body>\n\n<\/html>", "ruleImage": "tag.a@tag.img@src", "ruleLink": "tag.a.0@href", "ruleNextPage": "class.pager.0@class.next@href", "ruleTitle": "tag.a@tag.img@alt", "singleUrl": false, "sortUrl": "秀人网::https:\/\/xchina.co\/photos\/album-1.html\n大尺度主题::https:\/\/xchina.co\/photos\/album-2.html\n性爱主题::https:\/\/xchina.co\/photos\/album-3.html\n露出主题::https:\/\/xchina.co\/photos\/album-4.html\nCosplay主题::https:\/\/xchina.co\/photos\/album-5.html\n道具主题::https:\/\/xchina.co\/photos\/album-6.html\n捆绑主题::https:\/\/xchina.co\/photos\/album-7.html\n白虎主题::https:\/\/xchina.co\/photos\/album-8.html\n女同主题::https:\/\/xchina.co\/photos\/album-9.html\n丝袜主题::https:\/\/xchina.co\/photos\/album-10.html\n有视频::https:\/\/xchina.co\/photos\/album-11.html", "sourceComment": "(挂梯使用)(加载不出来多刷新几次)", "sourceIcon": "https:\/\/p3-search.byteimg.com\/obj\/labis\/0a5502af6b95a6b49d3acd488aae8398", "sourceName": "小黄书(图集)", "sourceUrl": "https:\/\/xchina.co\/photos.html", "style": "img{width:100%;height:auto;margin-bottom:10px}\nh5{margin-bottom:0;padding-left:5;margin-top:-10px}\n.controls {\n padding: 5px 0 10px;\n text-align: center;\n font-size: 16px;\n color: #000;\n line-height: 30px;\n white-space: nowrap;\n user-select: none;\n\n }\n\n .btn {\n height: 30px;\n line-height: 30px;\n padding: 0 20px;\n font-size: 14px;\n cursor: pointer;\n background-color: #3498db;\n color: #fff;\n border: none;\n border-radius: 5px;\n outline: none;\n margin: 0 5px;\n display: inline-block;\n }\n\n .index {\n display: inline-block;\n margin: 0 10px;\n padding: 5px;\n }\n #div_video {\n display: none;\nmargin-bottom:10px;\n }" }