美图123
https://mt123.cc
分享者: mengluo9960 (14501)发布时间: 08/21 14:08
该用户很懒,什么介绍也没有写!
{
"articleStyle": 2,
"cacheFirst": false,
"customOrder": 14,
"enableJs": true,
"enabled": true,
"enabledCookieJar": false,
"lastUpdateTime": 1787086268062,
"loadWithBaseUrl": true,
"preload": true,
"ruleArticles": ".erx-w-item",
"ruleContent": "@js:\n(function(){\n var doc = org.jsoup.Jsoup.parse(result);\n var title = '';\n var titleEl = doc.selectFirst('h1');\n if(titleEl) title = titleEl.text();\n var imgs = doc.select('section.erx-article-con img');\n var urls = [];\n var imgHtml = '';\n for(var i=0;i<imgs.size();i++){\n var img = imgs.get(i);\n var src = img.attr('src');\n if(!src) src = img.attr('data-src') || '';\n if(src){\n urls.push(src);\n imgHtml += '<img class=\"zoom-img\" src=\"'+src+'\" data-idx=\"'+(urls.length-1)+'\" style=\"max-width:100%;display:block;margin:10px auto;cursor:zoom-in;\" onclick=\"openZoom('+(urls.length-1)+')\">';\n }\n }\n if(!title && urls.length===0) return '<p>暂无内容<\/p>';\n var html = '<div>';\n if(title) html += '<h2>'+title+'<\/h2>';\n html += imgHtml;\n html += '<\/div>';\n html += '<div id=\"zoomOverlay\" style=\"position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.92);z-index:9999;display:none;align-items:center;justify-content:center;flex-direction:column;\">'+\n '<img id=\"zoomImg\" src=\"\" style=\"max-width:95%;max-height:85%;object-fit:contain;cursor:auto;\">'+\n '<div style=\"position:absolute;bottom:20px;left:0;width:100%;display:flex;justify-content:space-between;padding:0 20px;box-sizing:border-box;\">'+\n '<button onclick=\"prevZoom()\" style=\"padding:8px 16px;background:#fff;border:none;border-radius:4px;cursor:pointer;\">上一张<\/button>'+\n '<button onclick=\"nextZoom()\" style=\"padding:8px 16px;background:#fff;border:none;border-radius:4px;cursor:pointer;\">下一张<\/button>'+\n '<\/div>'+\n '<\/div>';\n html += '<script>'+\n 'var zoomUrls='+JSON.stringify(urls)+';'+\n 'var zoomIndex=0;'+\n 'function openZoom(idx){if(zoomUrls.length===0)return;zoomIndex=idx;document.getElementById(\"zoomImg\").src=zoomUrls[idx];document.getElementById(\"zoomOverlay\").style.display=\"flex\";}'+\n 'function closeZoom(){document.getElementById(\"zoomOverlay\").style.display=\"none\";}'+\n 'function prevZoom(){if(zoomUrls.length===0)return;zoomIndex=(zoomIndex-1+zoomUrls.length)%zoomUrls.length;document.getElementById(\"zoomImg\").src=zoomUrls[zoomIndex];}'+\n 'function nextZoom(){if(zoomUrls.length===0)return;zoomIndex=(zoomIndex+1)%zoomUrls.length;document.getElementById(\"zoomImg\").src=zoomUrls[zoomIndex];}'+\n 'document.getElementById(\"zoomOverlay\").addEventListener(\"click\",function(e){if(e.target===this)closeZoom();});'+\n 'var sx=0, overlay=document.getElementById(\"zoomOverlay\");'+\n 'overlay.addEventListener(\"touchstart\",function(e){sx=e.touches[0].clientX;});'+\n 'overlay.addEventListener(\"touchend\",function(e){var dx=e.changedTouches[0].clientX-sx;if(Math.abs(dx)>50){if(dx<0)nextZoom();else prevZoom();}});'+\n '<\\\/script>';\n return html;\n})()",
"ruleImage": "img@src",
"ruleLink": "h3.m-title a@href",
"ruleNextPage": "a:contains(下一页)@href",
"ruleTitle": "h3.m-title@text",
"searchUrl": "https:\/\/mt123.cc\/search.php?q={{key}}",
"showWebLog": false,
"singleUrl": false,
"sortUrl": "主页::https:\/\/mt123.cc\/\n优质精选::https:\/\/mt123.cc\/category-29.html\n电脑壁纸::https:\/\/mt123.cc\/category-2.html\n国漫壁纸::https:\/\/mt123.cc\/category-4.html\n美女明星::https:\/\/mt123.cc\/category-21.html\n游戏壁纸::https:\/\/mt123.cc\/category-5.html\n自然风景::https:\/\/mt123.cc\/category-17.html\n次元动漫::https:\/\/mt123.cc\/category-8.html\n汽车超跑::https:\/\/mt123.cc\/category-16.html\n美女壁纸::https:\/\/mt123.cc\/category-3.html\n更多专题::https:\/\/mt123.cc\/category-6.html\n头像表情::https:\/\/mt123.cc\/category-7.html\n历史归档::https:\/\/mt123.cc\/category-26.html\n手办::https:\/\/mt123.cc\/tags-48.html\n二次元::https:\/\/mt123.cc\/tags-3.html\n超高清::https:\/\/mt123.cc\/tags-89.html\n手机壁纸::https:\/\/mt123.cc\/tags-2.html\n电脑桌面::https:\/\/mt123.cc\/tags-221.html",
"sourceGroup": "图片",
"sourceIcon": "https:\/\/mt123.cc\/favicon.ico",
"sourceName": "美图123",
"sourceUrl": "https:\/\/mt123.cc",
"type": 0
}