立方

方寸之间

分享者: NRHSYD (2776)发布时间: 05/18 00:33

体积更环保
二维码导入
{
    "articleStyle": 0,
    "customOrder": -10098453,
    "enableJs": true,
    "enabled": true,
    "enabledCookieJar": true,
    "header": "{\"User-Agent\":\"\"}",
    "lastUpdateTime": 0,
    "loadWithBaseUrl": true,
    "ruleArticles": "<js>\nsort = [];\nL = String(baseUrl).replace(\/^h.*?\\=\/,'').split('★');\nfor (i = 0; i < L.length; i ++) {\n  sort.push ({\n    title: L[i].match(\/【(.*?)】\/)[1],\n    date: L[i].match(\/】(.*?)#\/)[1],\n    img: L[i].match(\/#(.*)\/)[1],\n    link: L[i].match(\/(.*?)【\/)[1]\n  });\n};\nJSON.stringify(sort);\n<\/js>\n$.[*]",
    "ruleDescription": "🔴0<!doctype html><html><head lang=\"zh\"><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"><style>*{line-height:1em;margin:0;padding:0;text-underline-offset:.2em;word-break:break-all}body{background-color:#f4f5f7;display:flex;flex-wrap:wrap;place-content:center;place-items:start;padding:15px;color:#001944}.card{border-top:.5px solid rgba(255,255,255,.7);border-radius:24px;background-color:rgba(255,255,255,.6);box-shadow:0 10px 20px rgba(0,0,0,.05);padding:30px;margin:12.5px;width:250px;height:auto}.card > details + div{overflow:hidden;max-height:0;opacity:0;transition:.6s}.card > [open] + div{max-height:888px;opacity:1}.card > details > summary::-webkit-details-marker{display:none}.card > details > summary::-moz-list-bullet{display:none}.card > details > summary{font-size:24px;font-weight:700;user-select:none;outline:0;opacity:.4;transition:.6s;display:block}.card > [open] > summary{opacity:1;margin-bottom:6px;font-size:20.5px}.flex{display:flex;flex-wrap:wrap}.text{line-height:1.4em;display:inline-block;margin-top:9px}a:not([href]){margin-top:9px;margin-right:9px;display:inline-block}a:not([href]) span{margin-left:9px}a[href]{color:#4360b7;text-decoration:none;margin:.2em}a[href]:hover{text-decoration:underline}span{background-color:rgba(0,0,0,.04);padding:.15em .3em;border-radius:.5em;margin-left:.2em;font-family:monospace;opacity:.75}button{font-size:13.5px;font-weight:700;color:#4360b7;background-color:#e7eeff;padding:.65em .9em;margin-top:9px;margin-right:10px;border-radius:2em;border:none;transition:.3s}button:active{background-color:#d6ddee}textarea{margin-top:9px;padding:9px;width:100%;box-sizing:border-box;line-height:1.2em;font-size:13px;min-height:37.6px;max-height:115.6px;resize:vertical;border-radius:9px;color:#333;border:2px solid rgba(0,0,0,.1);background-color:rgba(0,0,0,.006)}input{vertical-align:middle;appearance:none;margin:-2px 2.25px 0 0;width:15px;height:15px;box-sizing:border-box;background-color:rgba(0,0,0,.006);border:2px solid rgba(0,0,0,.1);border-radius:9px;transition:.15s}input:checked{border-color:#4360b7}label{display:inline-block;margin-top:9px;margin-right:9px;font-size:15px}<\/style><title>写源助手<\/title><\/head><body><div class=\"card\"><details><summary>发现格式工具<\/summary><\/details><div><textarea id=\"text\" rows=\"3\" placeholder=\"请输入要处理的内容\"><\/textarea><a>格式转换<\/a><div class=\"flex\"><button onclick=\"Format()\">html转旧发现<\/button><button onclick=\"Switch()\">新旧发现互转<\/button><\/div><a>每行列数<span>仅新发现<\/span><\/a><div class=\"flex\"><button onclick=\"Add(1)\">1<\/button><button onclick=\"Add(.4)\">2<\/button><button onclick=\"Add(.25)\">3<\/button><button onclick=\"Add(.2)\">4<\/button><button onclick=\"Add(.15)\">5<\/button><\/div><a>快捷功能<\/a><div class=\"flex\"><button onclick=\"Copy('#text')\">复制全文<\/button><button onclick=\"Cut('#text')\">剪切全文<\/button><button onclick=\"Empty('#text')\">清空<\/button><\/div><\/div><\/div><div class=\"card\"><details><summary>正则匹配替换<\/summary><\/details><div><textarea id=\"text1\" rows=\"3\" placeholder=\"请输入要处理的内容\"><\/textarea><a>正则匹配<\/a><textarea id=\"matchText\" rows=\"1\" placeholder=\"正则表达式\"><\/textarea><label><input id=\"global\" type=\"checkbox\" checked>全局搜索<\/label><label><input id=\"ignoreCase\" type=\"checkbox\">忽略大小写<\/label><div class=\"flex\"><button onclick=\"Match()\">进行匹配<\/button><button onclick=\"Copy('#matchResult')\">复制结果<\/button><button onclick=\"Reset()\">清空<\/button><\/div><div id=\"tip\"><\/div><textarea id=\"matchResult\" rows=\"3\" placeholder=\"匹配结果\"><\/textarea><a>正则替换<\/a><textarea id=\"replaceText\" rows=\"1\" placeholder=\"想要替换成什么\"><\/textarea><div class=\"flex\"><button onclick=\"Add1('{\\{page}}')\">&#123;&#123;page&#125;&#125;<\/button><button onclick=\"Add1('\\\\')\">\\<\/button><button onclick=\"Add1('<')\">&lt;<\/button><button onclick=\"Add1('>')\">&gt;<\/button><\/div><div class=\"flex\"><button onclick=\"Replace()\">进行替换<\/button><button onclick=\"Copy('#replaceResult')\">复制结果<\/button><\/div><textarea id=\"replaceResult\" rows=\"3\" placeholder=\"替换结果\"><\/textarea><\/div><\/div><div class=\"card\"><details><summary>编码格式转换<\/summary><\/details><div><textarea id=\"text2\" rows=\"3\" placeholder=\"请输入要处理的内容\"><\/textarea><a>url编码<\/a><label><input id=\"ignoreComponent\" type=\"checkbox\">编码<span>@#$&amp;=:\/,;?+<\/span><\/label><div class=\"flex\"><button onclick=\"Encode()\">进行编码<\/button><button onclick=\"Decode()\">进行解码<\/button><\/div><a>html转义<\/a><label><input id=\"super\" type=\"checkbox\">转义全部字符<\/label><div id=\"temp\" hidden><\/div><div class=\"flex\"><button onclick=\"EncodeHtml()\">进行转义<\/button><button onclick=\"DecodeHtml()\">进行反转义<\/button><\/div><a>快捷功能<\/a><div class=\"flex\"><button onclick=\"Copy('#text2')\">复制全文<\/button><button onclick=\"Cut('#text2')\">剪切全文<\/button><button onclick=\"Empty('#text2')\">清空<\/button><\/div><\/div><\/div><div class=\"card\"><details><summary>外部在线工具<\/summary><\/details><div><div class=\"flex\"><button onclick=\"window.open('https:\/\/tool.lu\/zhconvert')\">简繁转换<\/button><button onclick=\"window.open('https:\/\/www.yuque.com\/legado\/yuan')\">写源教程<\/button><\/div><\/div><\/div><script>$=(t=>document.querySelector(t)),$$=(t=>document.execCommand(t)),Copy=(t=>{$(t).select(),$$(\"copy\")}),Empty=(t=>{x=$(t),x.value=\"\",x.focus()}),Cut=(t=>{$(t).select(),$$(\"cut\")}),Format=(()=>{if(t=$(\"#text\"),list=t.value.match(\/<[^<]*?(href|open)[=\\(]['\"]([\\s\\S]*?)['\"][\\s\\S]*?>([\\s\\S]*?)<\/g),list){for(html=\"\",i=0;i<list.length;++i)a=list[i].match(\/<[^<]*?(href|open)[=\\(]['\"]([\\s\\S]*?)['\"][\\s\\S]*?>([\\s\\S]*?)<\/),html+=a[3].trim().replace(\/\\n\/g,\" \")+\"::\"+a[2]+\"\\r\\n\";t.value=html.replace(\/\\r\\n$\/,\"\")}}),Switch=(()=>{t=$(\"#text\");try{for(html=\"\",json=JSON.parse(t.value),i=0;i<json.length;++i)html+=json[i].title+\"::\"+json[i].url+\"\\r\\n\";t.value=html.replace(\/\\r\\n$\/,\"\")}catch(e){if(t.value.match(\/\\&\\&|::\/g)){for(text=t.value.replace(\/\\&\\&\/g,\"\\r\\n\"),list=text.match(\/.*?::.*\/g),html=[],i=0;i<list.length;++i)a=list[i].match(\/(.*?)::(.*)\/),html.push({title:a[1],url:a[2]});t.value=JSON.stringify(html)}}}),Add=(t=>{x=$(\"#text\");try{for(json=JSON.parse(x.value),i=0;i<json.length;++i)json[i].style={layout_flexGrow:1,layout_flexBasisPercent:t};x.value=JSON.stringify(json)}catch(t){}}),BuildRegex=(()=>(text=$(\"#text1\"),text.value?(match=$(\"#matchText\"),match.value?(op=$(\"#global\").checked?\"g\":\"\",op=$(\"#ignoreCase\").checked?op+\"i\":op,new RegExp(match.value,op)):(match.focus(),!1)):(text.focus(),!1))),Match=(()=>{if(regex=BuildRegex(),t=$(\"#tip\"),x=$(\"#matchResult\"),tip=text=t.textContent=t.style=x.value=\"\",match=$(\"#text1\").value.match(regex),$(\"#global\").checked){for(i=0;i<match.length;++i)text+=match[i]+\"\\r\\n\";tip=\"共找到 \"+match.length+\" 处匹配:\\r\\n\",text=text.replace(\/\\r\\n$\/,\"\")}else tip=\"匹配位置:\"+regex.lastIndex,text=match[0];return t.textContent=tip,t.style.marginTop=\"9px\",x.value=text,!0}),Reset=(()=>{$(\"#text1\").value=$(\"#matchText\").value=$(\"#tip\").textContent=t.style=$(\"#matchResult\").value=$(\"#replaceText\").value=$(\"#replaceResult\").value=\"\",$(\"#text1\").focus()}),Add1=(t=>{x=$(\"#replaceText\"),start=x.selectionStart,length=x.selectionEnd-start,json=x.value.split(\"\"),json.splice(start,length,t),x.value=json.join(\"\"),x.focus(),x.selectionStart=t.length+start,x.selectionEnd=t.length+start}),Replace=(()=>{regex=BuildRegex(),$(\"#replaceResult\").value=$(\"#text1\").value.replace(regex,$(\"#replaceText\").value)}),Encode=(()=>{t=$(\"#text2\"),text=t.value,t.value=$(\"#ignoreComponent\").checked?encodeURIComponent(text):encodeURI(text)}),Decode=(()=>{t=$(\"#text2\"),text=t.value,t.value=decodeURIComponent(text)}),EncodeHtml=(()=>{if(t=$(\"#text2\"),text=t.value,$(\"#super\").checked)for(u=\"\",i=0;i<text.length;++i)u+=\"&#\"+text.charCodeAt(i)+\";\";else x=$(\"#temp\"),x.textContent=text,u=x.innerHTML;t.value=u}),DecodeHtml=(()=>{t=$(\"#text2\"),text=t.value,x=$(\"#temp\"),x.innerHTML=text.replace(\/<br>\/g,\"\\r\\n\").replace(\/<\/g,\"&#60;\").replace(\/>\/g,\"&#62;\"),t.value=x.textContent});<\/script><\/body><\/html>\n🔵0\n🔴1<!doctype html><html><head lang=\"zh\"><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"><title>一键导入<\/title><style>*{line-height:1em;margin:0;padding:0;text-underline-offset:.2em;word-break:break-all}body{background-color:#f4f5f7;display:flex;flex-wrap:wrap;place-content:center;place-items:start;padding:15px;color:#001944}.card{border-top:.5px solid rgba(255,255,255,.7);border-radius:24px;background-color:rgba(255,255,255,.6);box-shadow:0 10px 20px rgba(0,0,0,.05);padding:30px;margin:12.5px;width:250px;height:auto}.card>details+div{overflow:hidden;max-height:0;opacity:0;transition:.6s}.card>[open]+div{max-height:888px;opacity:1}.card>details>summary::-webkit-details-marker{display:none}.card>details>summary::-moz-list-bullet{display:none}.card>details>summary{font-size:24px;font-weight:700;user-select:none;outline:0;opacity:.4;transition:.6s;display:block}.card>[open]>summary{opacity:1;margin-bottom:6px;font-size:20.5px}.card>b{margin-bottom:6px;font-size:20.5px;display:block}.flex{display:flex;flex-wrap:wrap}.text{line-height:1.4em;display:inline-block;margin-top:9px}a:not([href]){margin-top:9px;margin-right:9px;display:inline-block}a[href]{color:#4360b7;text-decoration:none;margin:.2em}a[href]:hover{text-decoration:underline}legend{background-color:rgba(0,0,0,.04);padding:.15em .3em;border-radius:.5em;margin-left:.2em;font-family:monospace;opacity:.75}button{font-size:13.5px;font-weight:700;color:#4360b7;background-color:#e7eeff;padding:.65em .9em;margin-top:9px;margin-right:10px;border-radius:2em;border:none;transition:.3s}button:active{background-color:#d6ddee}textarea{margin-top:9px;padding:9px;width:100%;box-sizing:border-box;line-height:1.2em;font-size:13px;min-height:37.6px;max-height:115.6px;resize:vertical;border-radius:9px;color:#333;border:2px solid rgba(0,0,0,.1);background-color:rgba(0,0,0,.006)}input{vertical-align:middle;appearance:none;margin:-2px 2.25px 0 0;width:15px;height:15px;box-sizing:border-box;background-color:rgba(0,0,0,.006);border:2px solid rgba(0,0,0,.1);border-radius:9px;transition:.15s}input:checked{border-color:#4360b7}label{display:inline-block;margin-top:9px;margin-right:9px;font-size:15px}fieldset{border:2px solid rgba(0,0,0,.1);background-color:rgba(0,0,0,.006);border-radius:9px;margin-top:9px;padding:5px 18px 18px 18px}<\/style><\/head><body><div class=\"card\"><b>一键导入<\/b><textarea id=\"url\" rows=\"4\" placeholder=\"请输入资源链接\"><\/textarea><fieldset><legend>导入格式<\/legend><label><input type=\"radio\" name=\"path\" value=\"auto\" checked>自动识别<\/label><label><input type=\"radio\" name=\"path\" value=\"bookSource\">书源<\/label><label><input type=\"radio\" name=\"path\" value=\"rssSource\">订阅源<\/label><label><input type=\"radio\" name=\"path\" value=\"replaceRule\">替换规则<\/label><label><input type=\"radio\" name=\"path\" value=\"textTocRule\">TXT目录规则<\/label><label><input type=\"radio\" name=\"path\" value=\"httpTTS\">TTS<\/label><label><input type=\"radio\" name=\"path\" value=\"theme\">主题<\/label><label><input type=\"radio\" name=\"path\" value=\"readConfig\">排版<\/label><\/fieldset><div class=\"flex\"><button onclick=\"Import()\">点击导入<\/button><button onclick=\"Copy()\">复制<\/button><button onclick=\"Empty()\">清空<\/button><\/div><\/div><div class=\"card\"><details><summary>长期链接<\/summary><\/details><div><fieldset><legend>书源<\/legend><button onclick=\"SetUrl('https:\/\/www.gitlink.org.cn\/api\/yi-c\/yd\/raw\/sy.json?ref=master★1')\">一程<\/button><button onclick=\"SetUrl('https:\/\/ghproxy.org\/https:\/\/raw.githubusercontent.com\/PB-pobing\/pobing\/pb\/sy.json★1')\">破冰<\/button><button onclick=\"SetUrl('https:\/\/ghproxy.org\/https:\/\/raw.githubusercontent.com\/zmn001125\/booksources\/master\/sources\/guaner.txt★1')\">关耳<\/button><button onclick=\"SetUrl('https:\/\/ghproxy.org\/https:\/\/raw.githubusercontent.com\/cyao2q\/yuedu\/master\/shuyuan★1')\">漠星曜<\/button><\/fieldset><fieldset><legend>订阅源<\/legend><button onclick=\"SetUrl('https:\/\/www.gitlink.org.cn\/api\/yi-c\/yd\/raw\/dy.json?ref=master★2')\">一程<\/button><\/fieldset><\/div><\/div><script>$=(e=>document.querySelector(e)),Copy=(()=>{$(\"#url\").select(),document.execCommand(\"copy\")}),Empty=(()=>{x=$(\"#url\"),x.value=\"\",x.focus(),$('[value=\"auto\"]').checked=!0}),Import=(()=>{if(t=$(\"#url\"),!t.value)return t.focus(),!1;path=$('[name=\"path\"]:checked').value,location=`yuedu:\/\/import\/${path}?src=`+encodeURIComponent(t.value)}),SetUrl=(e=>{x=$(\"#url\"),x.value=e.split(\"★\")[0],document.querySelectorAll('[name=\"path\"]')[e.split(\"★\")[1]].checked=!0,x.focus(),Import()});<\/script><\/body><\/html>\n🔵1\n{{}}\n@js:\nu = \"{{$.link}}\";\nif (\/^\\d+$\/.test(u)) {\ntry {\n  result.match(`🔴${u}([\\\\s\\\\S]*?)🔵${u}`)[1];\n} catch (err) { \"\"; }\n} else { \"\"; }",
    "ruleImage": "$.img\n@js:\nr = result;\nr == 0 ? source.sourceIcon: r;",
    "ruleLink": "$.link",
    "rulePubDate": "$.date",
    "ruleTitle": "$.title",
    "shouldOverrideUrlLoading": "if (\/s?q=\/.test(url)) {\n  q = java.toURL(url).searchParams.get('q');\n  java.searchBook(q.split(' ')[0]);\n  true;\n}",
    "singleUrl": false,
    "sortUrl": "寻书::https:\/\/bing.com\/search?q=https:\/\/quark.sm.cn\/api\/rest?method=Novelnew.home&format=html&schema=v2&cate=全部&rank=rank_hot&gender=male【夸克热搜】大家都在搜的热点#\n\n找源::https:\/\/bing.com\/search?q=https:\/\/link3.cc\/yckceo【源仓库】最新地址发布页#★https:\/\/legado.aoaostar.com【阅读APP源】@AOAOSTAR#★http:\/\/yuedu.miaogongzi.net\/gx.html【阅读书源】@喵公子#★1【一键导入】长期链接#\n\n杂项::https:\/\/bing.com\/search?q=0【写源助手】偶尔会有用#",
    "sourceComment": "",
    "sourceIcon": "data:image\/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiM0NDQiIGQ9Ik04LjQyMiAyMC42MThDMTAuMTc4IDIxLjU0IDExLjA1NiAyMiAxMiAyMlYxMkwyLjYzOCA3LjA3M2EzLjE5NiAzLjE5NiAwIDAgMC0uMDQuMDY3QzIgOC4xNTQgMiA5LjQxNyAyIDExLjk0MnYuMTE3YzAgMi41MjQgMCAzLjc4Ny41OTcgNC44MDFjLjU5OCAxLjAxNSAxLjY3NCAxLjU4IDMuODI1IDIuNzA5eiIvPjxwYXRoIGZpbGw9IiM0NDQiIGQ9Im0xNy41NzcgNC40MzJsLTItMS4wNUMxMy44MjIgMi40NjEgMTIuOTQ0IDIgMTIgMmMtLjk0NSAwLTEuODIyLjQ2LTMuNTc4IDEuMzgybC0yIDEuMDVDNC4zMTggNS41MzYgMy4yNDIgNi4xIDIuNjM4IDcuMDcyTDEyIDEybDkuMzYyLTQuOTI3Yy0uNjA2LS45NzMtMS42OC0xLjUzNy0zLjc4NS0yLjY0MSIgb3BhY2l0eT0iLjciLz48cGF0aCBmaWxsPSIjNDQ0IiBkPSJNMjEuNDAzIDcuMTRhMy4xNTMgMy4xNTMgMCAwIDAtLjA0MS0uMDY3TDEyIDEydjEwYy45NDQgMCAxLjgyMi0uNDYgMy41NzgtMS4zODJsMi0xLjA1YzIuMTUxLTEuMTI5IDMuMjI3LTEuNjkzIDMuODI1LTIuNzA4Yy41OTctMS4wMTQuNTk3LTIuMjc3LjU5Ny00Ljh2LS4xMTdjMC0yLjUyNSAwLTMuNzg4LS41OTctNC44MDIiIG9wYWNpdHk9Ii41Ii8+PC9zdmc+",
    "sourceName": "立方",
    "sourceUrl": "方寸之间"
}
站长推荐
广告