|
3878 | 3878 | }, |
3879 | 3879 | "哔哩轻小说": { |
3880 | 3880 | "host": "www.linovelib.com", |
3881 | | - "url": "return fun.indexOF(/\\/novel\\/\\d+\\/.+\\.html/)", |
| 3881 | + "url": "if (fun.indexOF(/\\/novel\\/\\d+\\/.+\\.html/)){setTimeout(()=>{let ac=fun.getCSS('#TextContent');if(ac){ac.classList.add('a123456');ac.classList.remove('adv-box');ac.style='display: block !important;';let ax=fun.getXpath(\"//head/style[not(@type)][normalize-space()='']\");document.head.appendChild(document.createElement('style')).textContent = ax.sheet.cssRules[0].cssText.replaceAll('#TextContent ','.a123456#TextContent ');ax.remove();}},300);return true;}", |
3882 | 3882 | "history": true, |
3883 | 3883 | "pager": { |
| 3884 | + "type": 6, |
3884 | 3885 | "nextL": "//div[@class='mlfy_page']/a[contains(text(),'下一页') or contains(text(),'下一章')]", |
3885 | | - "pageE": "#TextContent>*:not(div),head>style", |
3886 | | - "replaceE": ".mlfy_page" |
| 3886 | + "pageE": "//div[@id='TextContent'] | //head/style[not(@type)][normalize-space()='']", |
| 3887 | + "replaceE": ".mlfy_page", |
| 3888 | + "loadTime": 1000 |
3887 | 3889 | }, |
3888 | 3890 | "function": { |
3889 | | - "bF": "if(pageE[0].tagName=='STYLE'){pageE[pageE.length-1].style='font-family: read !important;';pageE[0].textContent=pageE[0].textContent.replace(' p:last-of-type','666')}; return pageE", |
| 3891 | + "bF": "const ra='a'+Math.random().toString(36).slice(-6);pageE.forEach(function (a) {if(a.tagName=='STYLE'){a.textContent=a.sheet.cssRules[0].cssText.replaceAll('#TextContent ','.'+ra+'#TextContent ');}else if(a.tagName=='DIV'){a.classList.add(ra);a.classList.remove('adv-box');a.style='display: block !important;'};}); return pageE", |
3890 | 3892 | "aF": "document.body.appendChild(document.createElement('script')).textContent='yuedu()'" |
3891 | 3893 | } |
3892 | 3894 | }, |
|
3916 | 3918 | }, |
3917 | 3919 | "哔哩轻小说 - 手机版": { |
3918 | 3920 | "host": "www.bilinovel.com", |
3919 | | - "url": "/\\/novel\\/\\d+\\/.+\\.html/", |
| 3921 | + "url": "if (fun.indexOF(/\\/novel\\/\\d+\\/.+\\.html/)){setTimeout(()=>{let ac=fun.getCSS('#acontent');if(ac){ac.classList.add('a123456');ac.classList.remove('adv-box');ac.style='display: block !important;';let ax=fun.getXpath(\"//head/style[not(@type)][normalize-space()='']\");document.head.appendChild(document.createElement('style')).textContent = ax.sheet.cssRules[0].cssText.replaceAll('#acontent ','.a123456#acontent ');ax.remove();}},300);return true;}", |
3920 | 3922 | "history": true, |
3921 | 3923 | "pager": { |
| 3924 | + "type": 6, |
3922 | 3925 | "nextL": "js; if (ReadParams.url_next.slice(ReadParams.url_next.length-5) === '.html') return (location.origin + ReadParams.url_next)", |
3923 | | - "pageE": "id('acontent')/*[name()='p' or name()='img' or name()='br'] | //body/script[contains(text(),'var ReadParams')] | //body/script[contains(@src,'/readtools.js')] | //head/style", |
3924 | | - "scriptT": 2 |
| 3926 | + "pageE": "//div[@id='acontent'] | //body/script[contains(text(),'var ReadParams')] | //head/style[not(@type)][normalize-space()='']", |
| 3927 | + "scriptT": 2, |
| 3928 | + "loadTime": 1000 |
3925 | 3929 | }, |
3926 | 3930 | "function": { |
3927 | | - "bF": "if(pageE[0].tagName=='STYLE'){pageE[pageE.length-2].style='font-family: read !important;';pageE[0].textContent=pageE[0].textContent.replace(' p:last-of-type','666')}; return pageE" |
| 3931 | + "bF": "const ra='a'+Math.random().toString(36).slice(-6);pageE.forEach(function (a) {if(a.tagName=='STYLE'){a.textContent=a.sheet.cssRules[0].cssText.replaceAll('#acontent ','.'+ra+'#acontent ');}else if(a.tagName=='DIV'){a.classList.add(ra);a.classList.remove('adv-box');a.style='display: block !important;'};}); return pageE" |
3928 | 3932 | } |
3929 | 3933 | }, |
3930 | 3934 | "哔哩轻小说 - 手机版 - 文库": { |
|
0 commit comments