mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-19 01:43:35 +08:00
feat: add rule for yuque (#4802)
This commit is contained in:
@@ -1909,6 +1909,29 @@
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
'yuque.com': {
|
||||
_name: '语雀',
|
||||
www: [
|
||||
{
|
||||
title: '知识库',
|
||||
docs: 'https://docs.rsshub.app/study.html#yu-que',
|
||||
source: ['/:space/:book'],
|
||||
target: (params, url, document) => {
|
||||
const match = document.documentElement.innerHTML.match(/JSON\.parse\(decodeURIComponent\("(.*)"\)/);
|
||||
if (match && match[1]) {
|
||||
const dataStr = match[1];
|
||||
try {
|
||||
const appData = JSON.parse(decodeURIComponent(dataStr));
|
||||
return `/yuque/doc/${appData.book.id}`;
|
||||
} catch (e) {
|
||||
// pass
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
],
|
||||
},
|
||||
'bjeea.com': {
|
||||
_name: '北京考试院',
|
||||
www: [
|
||||
|
||||
Reference in New Issue
Block a user