Skip to content

Commit afd0dd3

Browse files
author
skofkyo
authored
Update pagetualRules.json
1 parent d8b1381 commit afd0dd3

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

Pagetual/pagetualRules.json

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2798,11 +2798,11 @@
27982798
"nav.pagination"
27992799
],
28002800
"action": 1,
2801-
"init": "document.querySelectorAll('source').forEach(e=>{e.remove()});document.querySelectorAll('picture>img').forEach(img=>{img.src=img.src.match(/https?:\\/\\/[^/]+\\/upload\\/[^.]+\\.[a-z]{3}/)[0]})",
2801+
"init": "document.querySelectorAll('source').forEach(e=>{e.remove()});document.querySelectorAll('picture>img').forEach(img=>{img.src=img.src.match(/[^/]+\\/\\/[^/]+\\/[^.]+\\.[a-z]{3}/)[0]})",
28022802
"nextLink": "li.page-item.active+li>a",
28032803
"pageElement": ".photo-list.row",
28042804
"replaceElement": "nav.pagination",
2805-
"pageInit": "doc.querySelectorAll('source').forEach(e=>{e.remove()});doc.querySelectorAll('picture>img').forEach(img=>{img.src=img.src.match(/https?:\\/\\/[^/]+\\/upload\\/[^.]+\\.[a-z]{3}/)[0]})"
2805+
"pageInit": "doc.querySelectorAll('source').forEach(e=>{e.remove()});doc.querySelectorAll('picture>img').forEach(img=>{img.src=img.src.match(/[^/]+\\/\\/[^/]+\\/[^.]+\\.[a-z]{3}/)[0]})"
28062806
},
28072807
{
28082808
"name": "美女目录网 - 圖片",
@@ -5336,7 +5336,7 @@
53365336
},
53375337
{
53385338
"name": "極品性感美女 - 搜索",
5339-
"example": "https://www.jpmn5.com/plus/search/index.asp?keyword=XiuRen",
5339+
"example": "https://www.jpmn5.cc/plus/search/index.asp?keyword=XiuRen",
53405340
"url": "^https?://[^/]+/plus/search/index\\.asp\\?keyword=",
53415341
"include": "body>.container>.container+font>font>font>.list>.list>.node+.pagination",
53425342
"nextLink": ".current+a",
@@ -5346,7 +5346,7 @@
53465346
},
53475347
{
53485348
"name": "極品性感美女 - 看圖",
5349-
"example": "https://www.jpmn5.com/Xiuren/Xiuren23112.html",
5349+
"example": "https://www.jpmn5.cc/Xiuren/Xiuren23112.html",
53505350
"url": "^https?://[^/]+/\\w+/\\w+\\.html",
53515351
"include": [
53525352
"body>section.container>div.content-wrap>div.content>article.article-content img[alt]",
@@ -5365,7 +5365,7 @@
53655365
},
53665366
{
53675367
"name": "極品性感美女 - 分類",
5368-
"example": "https://www.jpmn5.com/Xiuren/",
5368+
"example": "https://www.jpmn5.cc/Xiuren/",
53695369
"url": "^https?://[^/]+/\\w+/",
53705370
"include": [
53715371
"body>.container>.content-wrap>.content>.speedbar+.widget-title",
@@ -5812,12 +5812,16 @@
58125812
"name": "小黃書 - 原圖瀏覽",
58135813
"example": "https://tw.xchina.co/photoShow.php?server=1&id=6311c6080f9a5&index=0&pageSize=19&title=%E3%80%90%E6%9C%AA%E5%88%86%E9%A1%9E%E4%BA%BA%E9%AB%94%E6%94%9D%E5%BD%B1%E3%80%91%E9%87%91%E9%AD%9Akinngyo%E3%80%8A%E5%A4%8F%E6%97%A5%E5%8D%88%E5%BE%8C%E3%80%8B",
58145814
"url": "^https?://(tw|kr)?(\\.)?xchina\\.co/photoShow\\.php",
5815-
"pinUrl": true,
5816-
"init": "let alt=document.querySelector('img[alt]').getAttribute('alt');let max=alt.match(/\\d+\\/(\\d+)/)[1];let imgh=document.querySelector('img[alt]').getAttribute('src').replace(/\\d+\\.jpg/,'');let _img='';for(let i=1;i<=max;i++){let n;let a=alt.replace(/【.+】/,'').replace(/\\s\\(\\d+\\/\\d+\\)/,'')+'_P'+i;if(i<10){n='000'+i+'.jpg'}else if(i<100){n='00'+i+'.jpg'}else if(i<1000){n='0'+i+'.jpg'}_img+=`<img src='${imgh}${n}'alt='${a}'>`};document.querySelector('.image').innerHTML=_img",
5817-
"css": ".image>img{width:auto!important;height:auto!important;max-width:100%!important;display:block!important;margin:0 auto !important}"
5815+
"nextLink": ".image > a:not([href^='j']):nth-child(4)",
5816+
"pageElement": ".container > img",
5817+
"replaceElement": ".image>.index",
5818+
"css": ".image>a:nth-child(3),.image>a:nth-child(4),body>.image~*:not([id^='pv-']):not([class^='pv-']):not(.pagetual_tipsWords){display: none!important;}.container>img {max-width: 100% !important;display: block !important;margin: 0 auto !important;}",
5819+
"pageBar": 0,
5820+
"initRun": 1,
5821+
"autoLoadNum": "0"
58185822
},
58195823
{
5820-
"name": "小黃書 - 圖片清單瀏覽 - 同時加載原圖可透過Picviewer CE+打包下載",
5824+
"name": "小黃書 - 圖片清單瀏覽 - 最後加載所有原圖可透過Picviewer CE+打包下載",
58215825
"example": "https://tw.xchina.co/photo/id-6311c6080f9a5.html",
58225826
"url": "^https?://(tw|kr)?(\\.)?xchina\\.co/photo/",
58235827
"nextLink": "a.next",
@@ -5826,8 +5830,8 @@
58265830
"div.article>div.pager:first-child",
58275831
"div.article>div.pager:last-child"
58285832
],
5829-
"css": ".photos > div.item {display: none!important;}.pagetual_pageBar{margin-top:30px!important;margin-bottom:0px!important}",
5830-
"pageAction": "document.querySelectorAll('.photos img').forEach(img=>{img.src=img.src.replace('_600x0','')})",
5833+
"css": ".photos>div.item,.pager>.tips,body>footer~*:not([id^='pv-']):not([class^='pv-']):not(.pagetual_tipsWords){display: none!important;}.pagetual_pageBar{margin-top:30px!important;margin-bottom:0px!important}.body .article:not(.ad)>img{width:auto!important;height:auto!important;max-width:100%!important;display:block!important;margin:0 auto !important}",
5834+
"pageAction": "document.querySelectorAll('img.cr_only').forEach(img=>{img.src=img.src.replace('_600x0','')});setTimeout(()=>{let last=document.querySelector(\"a[current='true']+a.next\");if(last){let imgs=document.querySelectorAll('img.cr_only');let imgData=[];for(let i=0;i<imgs.length;i++){imgData.push(imgs[i].getAttribute('src'))};let _img='';for(let i=0;i<imgData.length;i++){_img+=`<img src='${imgData[i]}'>`};document.querySelector('.body .article:not(.ad)').innerHTML=_img;let p=document.querySelector('#pagetual-preload');if(p)p.remove()}},1000)",
58315835
"initRun": 1,
58325836
"autoLoadNum": "0"
58335837
},

0 commit comments

Comments
 (0)