diff --git a/src/assets/images/snapshot_icon.png b/src/assets/images/snapshot_icon.png new file mode 100644 index 00000000..b345fac1 Binary files /dev/null and b/src/assets/images/snapshot_icon.png differ diff --git a/src/read/controlbar.jsx b/src/read/controlbar.jsx index f8a1f790..c546343f 100644 --- a/src/read/controlbar.jsx +++ b/src/read/controlbar.jsx @@ -109,7 +109,7 @@ export default class ReadCtlbar extends React.Component { break; default: if ( type.indexOf( "_" ) > 0 && type.startsWith( "share" ) || - [ "fullscreen", "save", "markdown", "png", "epub", "pdf", "kindle", "temp", "bear", "ulysses", "html", "offlinehtml", "dropbox", "pocket", "instapaper", "linnk", "yinxiang","evernote", "onenote", "gdrive", "jianguo", "yuque", "notion", "youdao" ].includes( type )) { + [ "fullscreen", "save", "markdown", "png", "epub", "pdf", "kindle", "temp", "bear", "ulysses", "html", "offlinehtml", "snapshot", "dropbox", "pocket", "instapaper", "linnk", "yinxiang","evernote", "onenote", "gdrive", "jianguo", "yuque", "notion", "youdao" ].includes( type )) { const [ title, desc, content ] = [ $( "sr-rd-title" ).text().trim(), $( "sr-rd-desc" ).text().trim(), $( "sr-rd-content" ).html().trim() ]; output.Action( type, title, desc, content ); } diff --git a/src/service/config.js b/src/service/config.js index d30bf331..0e46cad8 100644 --- a/src/service/config.js +++ b/src/service/config.js @@ -310,7 +310,12 @@ const readItems = { "name" : "导出为 离线 HTML", "icon" : ss.IconPath("offline_html_icon"), "color": "#D4237A", - } + }, + "snapshot" : { + "name" : "截图", + "icon" : ss.IconPath("snapshot_icon"), + "color": "#D4237A", + }, }, }, "send" : {