简悦 · 站点集市
锤子便签
{
    "name": "note.smartisan.com",
    "title": "<title>",
    "desc": "",
    "include": "[[{(()=>{let html='';const type=$('iframe').contents().find('.edit-mode-switch:first .ng-binding').text();function rtfmode(item){const $target=$(item);let text=$target.html();if(/<span class=\" ?rtf-bold\">/ig.test(text)){$target.find('.rtf-bold').map((idx,item)=>{$(item).replaceWith(`<b>${item.innerHTML}</b>`)});text=$target.html()}$target.find('img.emojione').map((idx,item)=>{$(item).replaceWith(item.alt)});text=$target.html();if(/cm-text/ig.test(text)&&$target.find('[cm-text=\"\"]').length>0){html+=`<sr-br>&nbsp;</sr-br>`}else if($target.attr('class').trim()=='CodeMirror-line'){html+=`<p>${text}</p>`}else if($target.hasClass('rtf-head')){html+=`<h2>${text}</h2>`}else if($target.hasClass('rtf-quote')){html+=`<blockquote>${text}</blockquote>`}else if($target.hasClass('rtf-center')){html+=`<p><sr-center>${text}</sr-center></p>`}else if($target.hasClass('todo-line')){const checked=$target.find('.line-todo-checked').length>0?'checked':'';html+=`<div><input type=\"checkbox\"${checked}><label>${$target.find('pre').html()}</label></div>`}else if($target.hasClass('rtf-ul')){html+=`<li>${text}</li>`}else if($target.hasClass('img-line')){const $img=$target.find('.CodeMirror-linewidget img');if($img.length>0){html+=`<img src=\"${ $img[0].currentSrc }\"/>`}}}function mdmode(item){const $target=$(item);let text=$target.text();$target.find('img.emojione').map((idx,item)=>{$(item).replaceWith(item.alt)});text=$target.text();html+=text+'\\n'}$('iframe').contents().find('.CodeMirror-code:first').children().map((idx,item)=>{if(type.includes('Markdown')){mdmode(item)}else rtfmode(item)});html=html.replace(/\\u200B/g,'');return type.includes('Markdown')?`<p><pre>${html}</pre></p>`:html})()}]]",
    "url": "[[/https:\\/\\/yun.smartisan.com\\/#\\/notes/]]",
    "avatar": [
        {
            "name": ""
        },
        {
            "url": ""
        }
    ],
    "paging": [
        {
            "prev": ""
        },
        {
            "next": ""
        }
    ],
    "css": ".simpread-theme-root {\n    overflow-y: auto;\n}\nsr-rd-content img {\n    all: unset!important;\n    max-width: 100%!important;\n}\n.sr-rd-content-img-load {\n    all: unset!important;\n    width: 100%!important;\n}\n.sr-rd-content-center-small img {\n    margin-top: 14px;\n    height: 20px;\n    width: 20px;\n    vertical-align: top;\n}\nsr-center {\n    display: flex;\n    justify-content: center;\n}\nsr-rd-content p, sr-rd-content div, sr-rd-content pre, sr-rd-content sr-blockquote {\n    margin-bottom: 15px;\n}\nsr-rd-content pre code, sr-rd-content pre code * {\n    font-size: 12px!important;\n}\nsr-rd-content h1, sr-rd-content h1 * {\n    padding-left: 0!important;\n}\nsr-rd-content blockquote {\n    border-left: 5px solid!important;\n    padding-left: 15px!important;\n}",
    "exclude": [
        "<sr-empty>"
    ]
}
安装当前站点