导入

http@js:`data:text/html;base64,${java.base64Encode(cache.getFromMemory('lycdrdm'))}`

分享者: lyc486 (807)发布时间: 04/18 04:55

辅助导入的订阅源
二维码导入
{
    "articleStyle": 0,
    "customOrder": -10100145,
    "enableJs": true,
    "enabled": true,
    "enabledCookieJar": false,
    "header": "@js:\ncache.putMemory('lycdrdm',String.raw`\n<html>\n<head>\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\">\n    <title>导入<\/title>\n    <style>\n        body {\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            min-height: 80vh;\n        }\n        textarea {\n            font-size: 12px;\n            width: 96%;\n            margin: 16px 2%;\n            padding: 8px;\nbackground-color: rgba(80, 155, 84, 0.1);\nborder-radius: 10px;\n    border: 2px solid rgba(76, 175, 80, 0.3);\n        }\ntextarea:focus {\n    border-color: rgb(76, 175, 80);\n    outline: none;\n    box-shadow: 0 0 8px rgba(255, 107, 107, 0.3);\n  }\n        button {\n            user-select: none;\n            color: white;\n            border: none;\n            border-radius: 4px;\n            height: 40px;\n            width: 80px;\n            overflow: hidden;\n            transition: 0.3s;\n            font-size: 16px;\n        }\n        .an-s {\n        \ttransform: scale(0.8);\n        }\n        #btn1 {background-color: rgba(76, 175, 80, 0.9);}\n        #btn2 {background-color: rgba(175, 76, 80, 0.9);}\n        #btn3 {background-color: rgba(76, 80, 175, 0.9);}\n    <\/style>\n<\/head>\n<body>\n    <textarea id=\"copyt\" rows=\"9\" placeholder=\"在这里填写链接\n支持书源、订阅源、净化、字典等json或txt文件\n支持书籍网址(需要有对应的书源)\n支持data或base64加密链接\"><\/textarea>\n    <br>\n    <button id=\"btn1\" onclick=\"copy(1)\">导入<\/button>\n<br>\n<button id=\"btn2\" onclick=\"cleart()\">清空<\/button>\n<br>\n<button id=\"btn3\" onclick=\"copy(3)\">净化<\/button>\n    <script>\n        function copy(x) {\n            const btn = document.getElementById('btn'+x);\n            btn.classList.add('an-s');\n            const cpt = document.getElementById(\"copyt\");\n            let url = cpt.value;\nif (\/[删除去消].*(?:[删除去掉].*[中汉我]|汉.*字|中.*文|文.*字)\/.test(url)) url=url.replace(\/[abphm]站|[一-ꀀ]\/g,'');\n            url = url.replace(\/\\n[一-ꀀ,。?!;…“‘、’”]*$\/,'').replace(\/\\s+|😂|🌚|🌝|🙄|😳|🙃|😊|😍|😘|😏|😱|😭|😒|🤔|😛|😅|🙈|🙊|🙉|🌸|🍀|🌹|🌷|💎|💄|💋|🉑|㊗️|💰|🌈|🦄|🥚|🥟|🌶️|🐔|🍺|🐮|🐻|🐶|🐼|🐖|🐴|🐈|🐕|🧸|🦌|🐟|🐇|🕊️|🦞|🖤|❤️|💚|💙|💕|☎️|🎁|🧧|🎉|🎊|🙋|🙆|👰|🇨🇳|🌏|🔥|🥱|😷|😴|😡|😌|😉|😎|🤓|🥳|🥺|🥰|🤒|🤐|🤭|👿|👻|💩|💊|🍉|🍔|🍋|🥭|🍓|🥒|🥠|🍇|⚽|🏀|🏓|🛀|🃏|🎲|🀄|🎹|🎧|📢|🚗|🚢|🚆|✈️|🚀|🈶|🈚|㊙️|🈲|♠️|♥️|♣️|♦️|➕|➖|✖️|➗|✔️|😮‍💨|😵‍💫|🥸|🔞|🤚|🫱|🫲|🫳|🫴|👌|👍|🤌|🫰|🫵|🫶|✌️|🤟|💪|👏|🤙|🙏|🙇‍♂️|🤷‍♂️|🤦‍♂️|🌺|\\[(?:酷币|受虐滑稽|微笑|哈哈哈|呵呵|呲牙|可爱|可怜|皱眉|惊讶|微笑|坏笑|流泪|抱拳|色|强|doge笑哭|doge原谅ta|旺财|OK)\\]\/giu, '').replace(\/(\\\/.+\\.(?:json|txt))(?:[^\\\/\\?\\-\\_\\.][\\S\\s]*)$\/, '$1').replace(\/^[\\S\\s]+?(?=https?:)\/i,'').replace(\/\\u0026\/g,'%26');\nif (url.startsWith('data:')) url = atob(url.match(\/^[^,]+,([^\\s,]+)\/)[1]);\nif (\/^[\\da-z\\+\\\/]{2,}=*$\/i.test(url)) url = atob(url);\n            setTimeout(() => {\n                btn.classList.remove('an-s');\n            }, 500);\n            if (url == '') {alert('请输入内容');return}\n            if (\/^https?\\:\/i.test(url)&&x==1) {\n                if (\/\\\/.+\\.(?:json|txt)\/i.test(url)) {\n                    window.location.href = 'legado:\/\/import\/Source?src=' + url;\n                }\n                else {\n                    window.location.href = 'legado:\/\/import\/addToBookshelf?src=' + url;\n                }\n            }\n           else if (x==3) {cpt.value=url;}\n           else alert('链接格式错误');\n        }\nfunction cleart() {\nconst btn = document.getElementById('btn2');\nbtn.classList.add('an-s');\nconst cpt = document.getElementById(\"copyt\");\nsetTimeout(() => {\n                btn.classList.remove('an-s');\n            }, 300);\ncpt.value = '';\n  }\n    <\/script>\n<\/body>\n<\/html>\n`);\r\n''",
    "lastUpdateTime": 0,
    "loadWithBaseUrl": false,
    "ruleArticles": "",
    "ruleLink": "",
    "ruleTitle": "",
    "singleUrl": true,
    "sourceComment": "版本:1.1.1\n——洛娅橙",
    "sourceIcon": "https:\/\/gitee.com\/lyc486\/yuedu\/raw\/master\/drtb.gif",
    "sourceName": "导入",
    "sourceUrl": "http@js:`data:text\/html;base64,${java.base64Encode(cache.getFromMemory('lycdrdm'))}`"
}
广告