简悦 · 站点集市
即刻-转发页面
{
    "name": "repost.okjike.com",
    "title": "[[{(()=>{const arr=$('.break-words:first').html().split('<br>');return arr&&arr.length>0?arr[0]:$('meta[property=\"article:author\"]').attr('content')+'的即刻'})()}]]",
    "desc": "",
    "include": "[[{(()=>{let html='';html=`<sr-jike-p><p></p>${$('.break-words:first').html()}</sr-jike-p>`;$('.MessagePictureGrid__RadiusContainer-sc-pal5rf-0:first').children().map((idx,item)=>{const $target=$(item);if($target.is('img')){const src=$target.attr('src');html+=`<img src=\"${ src.replace( /\\?\\S+$/i, '' ) }\"/>`}else if($target.children().length>0){$target.children().map((_,img)=>{const $img=$(img),src=$img.css('background-image');html+=`<img src=\"${ src.replace( /(^url\\(\")|(\"\\)$)/i, '' ).replace( /\\?\\S+$/i, '' ) }\"/>`})}});if($('a.sc-bdnxRM.cYiXfS').length>0){const $a=$('a.sc-bdnxRM.cYiXfS'),text=$a.text(),href=$a.attr('href');html+=`<sr-jike-div>来自<a href=\"${ href }\"target=\"_blank\">${text}</a></sr-jike-div>`}if($('.RepostContent__Container-sc-qy1mvf-0').length>0){const $target=$('.RepostContent__Container-sc-qy1mvf-0'),text=$target.find('.RepostContent__StyledText-sc-qy1mvf-1').text(),$link=$target.find('.RepostContent__TopicText-sc-qy1mvf-2');$link.attr('target','_blank');html+=`<sr-jike-repost-block><sr-jike-div>${text}</sr-jike-div>${$link[0].outerHTML}</sr-jike-repost-block>`}return html})()}]]",
    "exclude": [
        "<sr-bad-empty>"
    ],
    "url": "https://web.okjike.com/repos*/*",
    "avatar": [
        {
            "name": ""
        },
        {
            "url": ""
        }
    ],
    "paging": [
        {
            "prev": ""
        },
        {
            "next": ""
        }
    ],
    "css": "sr-jike-repost-block {\n    display: block;\n    margin-bottom: 12px!important;\n    padding: 12px 12px 0px;\n    color: rgb(64, 64, 64);\n    background-color: rgb(242, 245, 248);\n    border-radius: 4px;\n    cursor: pointer;\n    transition: all 0.2s ease 0s;\n}\nsr-jike-repost-block sr-jike-div {\n    display: -webkit-box;\n    flex: 1 1 0%;\n    line-height: 1.5;\n    max-height: 42px;\n    font-size: 14px;\n    text-align: initial;\n    text-overflow: ellipsis;\n    overflow: hidden;\n    -webkit-line-clamp: 2;\n    -webkit-box-orient: vertical;\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}"
}
安装当前站点