即刻-动态页面
- Kenshin Wang
- 联络方式
- 2021/09/02 13:02:15
- 其它
- 适配代码
{
"name": "post.okjike.com",
"title": "[[{(()=>{const now=(time)=>{const date=new Date(time),format=value=>value=value<10?'0'+value:value;return date.getFullYear()+''+format(date.getMonth()+1)+''+format(date.getDate())+''+format(date.getHours())+''+format(date.getMinutes())+''+format(date.getSeconds())},name=$('.flex.flex-row.pb-1').text(),date=now($('time[datetime]').attr('datetime'));return name+'@'+date})()}]]",
"desc": "",
"include": "[[{(()=>{let html='';html=`<sr-jike-p><p></p>${$('.break-words.content_truncate__tFX8J').html()}</sr-jike-p>`;$('article .sc-bdvvtL.sc-gsDKAQ.MessagePictureGrid__RadiusContainer-sc-pal5rf-0').map((idx,item)=>{const $target=$(item);if(idx==0){if($target.find('img').length>0){html+=`<img src=\"${ $target.find( 'img' ).attr( 'src' ) }\">`}$target.find('.sc-bdvvtL.MessagePictureGrid__Cell-sc-pal5rf-3').map((idx,item)=>{const $img=$(item),src=$img.css('background-image');src&&(html+=`<img src=\"${ src.replace( 'url(\"', '' ).replace( '\")', '' ) }\">`)})}});if($('.VideoContent___StyledFlex-sc-f948sc-3').find('video').length>0){html+=`<video src=\"${ $( '.VideoContent___StyledFlex-sc-f948sc-3' ).find( 'video' ).attr( 'src' ) }\"></video>`}if($('.sc-bdvvtL.cFhUlV').length>0){const text=$('.sc-bdvvtL.cFhUlV').text(),href=$('.sc-bdvvtL.cFhUlV').attr('href');html+=`<sr-deeplink><a target=\"_blank\"href=\"${ href }\">${text}</a></sr-deeplink>`}if($('.flex.flex-col.items-stretch').length>0){const via=$('.flex.flex-col.items-stretch').find('a').text(),link=$('.flex.flex-col.items-stretch').find('a').attr('href');html+=`<sr-deeplink><a target=\"_blank\"href=\"${ location.origin + link }\">${via}</a></sr-deeplink>`}return html})()}]]",
"url": "https://web.okjike.com/original*/*",
"avatar": [
{
"name": ""
},
{
"url": ""
}
],
"paging": [
{
"prev": ""
},
{
"next": ""
}
],
"exclude": [
"<sr-bad-empty>"
],
"css": "sr-jike-repost-block {\n display: block;\n margin-bottom: 12px!important;\n padding: 12px!important;\n color: rgb(64, 64, 64);\n background-color: rgb(242, 245, 248);\n text-align: center;\n border-radius: 4px;\n cursor: pointer;\n transition: all 0.2s ease 0s;\n}\nsr-jike-repost-block a {\n -webkit-box-pack: end;\n justify-content: flex-end;\n margin: 0px;\n padding-top: 8px;\n padding-bottom: 8px;\n min-width: 0px;\n font-size: 12px!important;\n box-sizing: border-box;\n}\nsr-deeplink {\n display: flex;\n justify-content: center;\n margin: 16px auto;\n padding: 12px 12px 9px 12px;\n border: 3px solid #F6F6F6;\n}"
}
安装当前站点