Files
readbook/dy
2020-12-13 23:51:10 +08:00

21 lines
4.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"articleStyle": 0,
"customOrder": 0,
"enableJs": true,
"enabled": true,
"header": " {\n\"User-Agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36\"\n}",
"loadWithBaseUrl": true,
"ruleArticles": "class.file_holder&&class.gutter-condensed gutter-lg flex-column flex-md-row d-flex&&class.Post_content_box&&class.ui mid-center small message notice@js:\n<!-------gitee无md界面列表-------->\nif(baseUrl.match(/(baize)|(zmn)|(onede)|(jia_to_hui)|(pxysen)/)){\nresult = java.getElements(\"class.recent-commit\")}else{result}",
"ruleContent": "@js:\n<!---获取gitee作者无MD资源列表方法---->\nfunction ui(){\nvar list =\njava.getElements(\"class.five wide column tree-item-file-name tree-list-item\");\nvar doc =org.jsoup.Jsoup.parse(list)\nvar elements = doc.select(\"a\");\nvar all = \"\";\nfor(var i = 0;i<elements.size();i++){\nall += \"<h5>\"+elements.get(i).attr(\"title\")+\"</h5><a> https://www.gitee.com \"+elements.get(i).attr(\"href\")+\"</ a><hr>\"+\"\\n\"\n}\nvar str = String(all).replace(/blob/g,\"raw\")\nreturn str;\n}\n\n<!------gitee无MD作者生成页面-------->\n<!------在这里按例子添加用户名-------->\n\nif(baseUrl.match(/(baize)|(zmn)|(onede)|(jia_to_hui)|(pxysen)/)){\nresult = ui()}\nelse{\n<!------其他有MD作者生成页面-------->\n\nresult =java.getElements(\"class.markdown-body entry-content container-lg&&class.file_content markdown-body&&class.duta\").html()\n}\n",
"ruleImage": "",
"ruleLink": "@js:baseUrl",
"ruleNextPage": "",
"rulePubDate": "@js:\n<!--自定义日期方法-->\n<!--字符串yyyy/mm/dd转为xxxx年xx月xx日(星期x)-->\nfunction myFormat(str) {\nvar date = new Date(str);\nvar weeks = new Array(\"星期日\",\"星期一\",\"星期二\",\"星期三\",\"星期四\",\"星期五\",\"星期六\");\nvar week = weeks[date.getDay()];\r\nvar time = date.getFullYear()+\"年\"+(date.getMonth()+1)+\"月\"+date.getDate()+\"日\"+\" (\"+week+\")\"\nreturn time;\n}\n\n<!-----github有md界面获取时间方法---->\n\nif(baseUrl.match(/XIU2/)){\nvar str = \"{{@@class.css-truncate css-truncate-target d-block width-fit.15@text}}\";\nresult = \"更新日期: \"+ myFormat(str);\n}\n\n<!-----gitee有md界面获取时间方法----->\n\nelse if(baseUrl.match(/(vpq)|(namofree)|(slaijie)/)){\nvar time = \"{{@@class.contributor-description@text}}\";\nvar str = time.replace(/\\-/g,\"\\/\").match(/2.{9}/);\nresult = \"更新日期: \"+ myFormat(str);\n}\n\n<!-----gitee无md界面获取时间方法---->\n\nelse if(baseUrl.match(/(baize)|(zmn)|(onede)|(jia_to_hui)|(pxysen)/)){\nvar list = java.getElements(\"class.timeago\");\nvar doc =org.jsoup.Jsoup.parse(list)\nvar time = doc.select(\"span\").attr(\"datetime\");\nvar str = time.match(/2.{9}/);\nresult = \"更新日期: \"+ myFormat(str);\n}\n\n<!--------其他获取时间方法---------->\n\nelse if(baseUrl.match(/SanQianShuYuan/)){\nvar time = \"{{@@class.breadcrumb h6@tag.p@text}}\"\nvar year = time.match(/2[\\d]{3}/);\nvar month = time.match(/年\\s[\\d]{2}/);\nvar day = time.match(/月\\s[\\d]{2}/);\nvar str = (year+month+day).replace(/(年\\s)|(月\\s)/g,\"\\/\");\nresult = \"更新日期: \"+ myFormat(str);\n}",
"ruleTitle": "@js:\nif(baseUrl.match(/XIU2/)){\nresult = \" {{@@tag.h1@text}}\"\n}\nelse if(baseUrl.match(/namofree/)){\nresult = \"{{@@tag.h1@text}}\"\n}\n\n<!---可以像下列使用自定义标题名--->\n\nelse if(baseUrl.match(/SanQianShuYuan/)){\nresult = \" 古有弱水三千,今有三千书源。\"\n}\n\n<!-----如果没有标题名,可自在这添加默认标题名----->\n\nelse if(baseUrl.match(/(vpq)|(baize)|(zmn)|(onede)|(jia_to_hui)|(pxysen)|(slaijie)/)){\nresult = \" 阅读 | 书源分享\"\n}",
"sortUrl": "一程:: https://www.gitee.com/vpq/yd/blob/sy/README.md \n\nXiu2:: https://github.com/XIU2/Yuedu \n\nNamo:: https://gitee.com/namofree/yuedu3/blob/legado3booksource/README.md \n\n芜恙:: https://gitee.com/slaijie/legado/blob/master/legado/README.MD \n\n勿埋我心:: https://www.qian.blue/archives/SanQianShuYuan.html \n\n<!----下面都是gitee无MD界面作者------>\n\nbaize:: https:///gitee.com/baize12/baize/tree/master/yuedu \n\n关耳:: https://gitee.com/zmn1307617161/booksource/tree/master/%E4%B9%A6%E6%BA%90 \n\nonede:: https://gitee.com/kuan_onede/book-source/tree/master \n\n滨边美波 :: https://gitee.com/jia_to_hui/read-30-preferred-book-source/tree/master \n\n要有上进心:: https://gitee.com/pxysen/book/tree/master",
"sourceGroup": "可自行添加作者,规则跟写书源一样,非常简单,一看就知道了\n\n一般简单的gitee无md界面作者只需要增加分类url和标题和时间最后在无MD生成界面加个名字就行了\n\n作者id我不太熟悉以酷安和作者主页id为主我随便找的如果搞错请谅解",
"sourceIcon": "",
"sourceName": "大佬们的书源合辑",
"sourceUrl": "修正注释",
"style": "*{font-size:13px}"
}