Files
RSSHub/lib/v2/jike/radar.js
Rongrong 63ccc9499b fix(route/jike): image URL; outdated usage (#9693)
* fix(route/jike): image URL; outdated usage

Signed-off-by: Rongrong <i@rong.moe>

* refactor: migrate to v2

* fix: unescaped .

* feat(route/jike): new radar rule

Signed-off-by: Rongrong <i@rong.moe>
2022-05-05 20:28:04 +08:00

35 lines
1.2 KiB
JavaScript

module.exports = {
'okjike.com': {
_name: '即刻',
m: [
{
title: '用户动态',
docs: 'https://docs.rsshub.app/social-media.html#ji-ke',
source: '/users/:uid',
target: '/jike/user/:uid',
},
{
title: '用户动态',
docs: 'https://docs.rsshub.app/social-media.html#ji-ke',
source: '/reposts/:repostId',
target: (params, url, document) => {
const uid = document.querySelector('.avatar').getAttribute('href').replace('/users/', '');
return uid ? `/jike/user/${uid}` : '';
},
},
{
title: '圈子',
docs: 'https://docs.rsshub.app/social-media.html#ji-ke',
source: '/topics/:id',
target: '/jike/topic/:id',
},
{
title: '圈子 - 纯文字',
docs: 'https://docs.rsshub.app/social-media.html#ji-ke',
source: '/topics/:id',
target: '/jike/topic/text/:id',
},
],
},
};