flomo · 浮墨笔记
- Kenshin Wang
- 联络方式
- 2021/04/11 16:27:22
- 其它
- 适配代码
{
"name": "flomoapp.com",
"title": "<title>",
"desc": "[[{$('meta[name=Description]').attr('content')||$('meta[name=description]').attr('content')}]]",
"include": "[[{(()=>{let html='';const len=$('.memo .card').length;$('.memo .card').map((idx,item)=>{const $target=$(item),$content=$target.find('.content'),time=$target.find('.time')[0].outerHTML,$tag=$target.find('.tag'),hr=idx<len-1?'<hr></hr>':'',$files=$target.find('.files'),tag=$tag.text();let files='';$files.find('img').map((idx,item)=>{files+=`<img src=\"${ $(item).attr( 'data-source' ) }\"/>`});files!=''&&(files=`<sr-images class=\"images\">${files}</sr-images>`);$tag.replaceWith(`<a href=\"https://flomoapp.com/mine?tag=${ tag }\">${tag}</a>`);html+=`<sr-flomo>${time+$content.html()+files+hr}</sr-flomo>`});return'<p> </p>'+html})()}]]",
"url": "https://flomoapp.com/mine*",
"avatar": [
{
"name": ""
},
{
"url": ""
}
],
"paging": [
{
"prev": ""
},
{
"next": ""
}
],
"css": "html {\n overflow: initial!important;\n}\nsr-flomo {\n display: block;\n margin-bottom: 15px;\n}\nsr-flomo a:nth-child(1){\n padding-left: 0;\n}\nsr-flomo hr {\n display: block!important;\n border: none;\n margin: 30px;\n transform: scale(2);\n}\nsr-flomo hr::before {\n content: '· · ·';\n display: block;\n text-align: center;\n}\nsr-images {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n width: 100%;\n align-items: center;\n}\nsr-images img {\n max-width: 100px!important;\n max-height: 100px;\n border: 1px solid #e6e6e6!important;\n cursor: pointer;\n border-radius: 4px;\n margin-right: 12px!important;\n margin-top: 6px!important;\n}\n@media (pointer: coarse) {\n sr-read {\n max-width: 100%!important;\n overflow-x: hidden!important;\n }\n}"
}
安装当前站点