├── .gitignore ├── dist ├── client │ ├── bookmark.js │ ├── bundle.js │ ├── chrome-plugin.user.js │ ├── clean-rules │ │ ├── cnblogs_code.js │ │ ├── crayon-syntax.js │ │ ├── dp-highlighter.js │ │ ├── prettyprint.js │ │ └── syntaxhighlighter.js │ ├── client.conf │ ├── editor │ │ ├── editor.css │ │ ├── index.html │ │ └── umeditor │ │ │ ├── bak.html │ │ │ ├── dialogs │ │ │ ├── emotion │ │ │ │ ├── emotion.css │ │ │ │ ├── emotion.js │ │ │ │ └── images │ │ │ │ │ ├── 0.gif │ │ │ │ │ ├── bface.gif │ │ │ │ │ ├── cface.gif │ │ │ │ │ ├── fface.gif │ │ │ │ │ ├── jxface2.gif │ │ │ │ │ ├── neweditor-tab-bg.png │ │ │ │ │ ├── tface.gif │ │ │ │ │ ├── wface.gif │ │ │ │ │ └── yface.gif │ │ │ ├── formula │ │ │ │ ├── formula.css │ │ │ │ ├── formula.html │ │ │ │ ├── formula.js │ │ │ │ └── images │ │ │ │ │ └── formula.png │ │ │ ├── image │ │ │ │ ├── image.css │ │ │ │ ├── image.js │ │ │ │ └── images │ │ │ │ │ ├── close.png │ │ │ │ │ ├── upload1.png │ │ │ │ │ └── upload2.png │ │ │ ├── link │ │ │ │ └── link.js │ │ │ ├── map │ │ │ │ ├── map.html │ │ │ │ └── map.js │ │ │ └── video │ │ │ │ ├── images │ │ │ │ ├── center_focus.jpg │ │ │ │ ├── left_focus.jpg │ │ │ │ ├── none_focus.jpg │ │ │ │ └── right_focus.jpg │ │ │ │ ├── video.css │ │ │ │ └── video.js │ │ │ ├── index.html │ │ │ ├── lang │ │ │ ├── en │ │ │ │ ├── en.js │ │ │ │ └── images │ │ │ │ │ ├── addimage.png │ │ │ │ │ ├── alldeletebtnhoverskin.png │ │ │ │ │ ├── alldeletebtnupskin.png │ │ │ │ │ ├── background.png │ │ │ │ │ ├── button.png │ │ │ │ │ ├── copy.png │ │ │ │ │ ├── deletedisable.png │ │ │ │ │ ├── deleteenable.png │ │ │ │ │ ├── imglabel.png │ │ │ │ │ ├── listbackground.png │ │ │ │ │ ├── localimage.png │ │ │ │ │ ├── music.png │ │ │ │ │ ├── rotateleftdisable.png │ │ │ │ │ ├── rotateleftenable.png │ │ │ │ │ ├── rotaterightdisable.png │ │ │ │ │ ├── rotaterightenable.png │ │ │ │ │ └── upload.png │ │ │ └── zh-cn │ │ │ │ ├── images │ │ │ │ ├── copy.png │ │ │ │ ├── imglabel.png │ │ │ │ ├── localimage.png │ │ │ │ ├── music.png │ │ │ │ └── upload.png │ │ │ │ └── zh-cn.js │ │ │ ├── php │ │ │ ├── Uploader.class.php │ │ │ ├── getContent.php │ │ │ └── imageUp.php │ │ │ ├── themes │ │ │ └── default │ │ │ │ ├── css │ │ │ │ ├── umeditor.css │ │ │ │ └── umeditor.min.css │ │ │ │ └── images │ │ │ │ ├── caret.png │ │ │ │ ├── close.png │ │ │ │ ├── icons.gif │ │ │ │ ├── icons.png │ │ │ │ ├── ok.gif │ │ │ │ ├── pop-bg.png │ │ │ │ ├── spacer.gif │ │ │ │ └── videologo.gif │ │ │ ├── third-party │ │ │ ├── jquery.min.js │ │ │ └── mathquill │ │ │ │ ├── font │ │ │ │ ├── Symbola.eot │ │ │ │ ├── Symbola.otf │ │ │ │ ├── Symbola.svg │ │ │ │ ├── Symbola.ttf │ │ │ │ ├── Symbola.woff │ │ │ │ └── stixgeneral-bundle │ │ │ │ │ ├── STIXFontLicense2010.txt │ │ │ │ │ ├── stixgeneral-webfont.eot │ │ │ │ │ ├── stixgeneral-webfont.svg │ │ │ │ │ ├── stixgeneral-webfont.ttf │ │ │ │ │ ├── stixgeneral-webfont.woff │ │ │ │ │ ├── stixgeneralbol-webfont.eot │ │ │ │ │ ├── stixgeneralbol-webfont.svg │ │ │ │ │ ├── stixgeneralbol-webfont.ttf │ │ │ │ │ ├── stixgeneralbol-webfont.woff │ │ │ │ │ ├── stixgeneralbolita-webfont.eot │ │ │ │ │ ├── stixgeneralbolita-webfont.svg │ │ │ │ │ ├── stixgeneralbolita-webfont.ttf │ │ │ │ │ ├── stixgeneralbolita-webfont.woff │ │ │ │ │ ├── stixgeneralitalic-webfont.eot │ │ │ │ │ ├── stixgeneralitalic-webfont.svg │ │ │ │ │ ├── stixgeneralitalic-webfont.ttf │ │ │ │ │ └── stixgeneralitalic-webfont.woff │ │ │ │ ├── mathquill.css │ │ │ │ ├── mathquill.js │ │ │ │ └── mathquill.min.js │ │ │ ├── umeditor.config.js │ │ │ ├── umeditor.js │ │ │ └── umeditor.min.js │ ├── lib │ │ ├── clean.js │ │ └── readability.js │ ├── link.js │ └── server.conf └── server │ ├── ajax.html │ ├── bookmark.html │ └── index.php ├── readme.md └── src ├── client ├── bookmark.js ├── chrome-plugin.user.js ├── clean-rules │ ├── cnblogs_code.js │ ├── crayon-syntax.js │ ├── dp-highlighter.js │ ├── prettyprint.js │ └── syntaxhighlighter.js ├── client.conf ├── editor │ ├── editor.css │ ├── index.html │ └── umeditor │ │ ├── bak.html │ │ ├── dialogs │ │ ├── emotion │ │ │ ├── emotion.css │ │ │ ├── emotion.js │ │ │ └── images │ │ │ │ ├── 0.gif │ │ │ │ ├── bface.gif │ │ │ │ ├── cface.gif │ │ │ │ ├── fface.gif │ │ │ │ ├── jxface2.gif │ │ │ │ ├── neweditor-tab-bg.png │ │ │ │ ├── tface.gif │ │ │ │ ├── wface.gif │ │ │ │ └── yface.gif │ │ ├── formula │ │ │ ├── formula.css │ │ │ ├── formula.html │ │ │ ├── formula.js │ │ │ └── images │ │ │ │ └── formula.png │ │ ├── image │ │ │ ├── image.css │ │ │ ├── image.js │ │ │ └── images │ │ │ │ ├── close.png │ │ │ │ ├── upload1.png │ │ │ │ └── upload2.png │ │ ├── link │ │ │ └── link.js │ │ ├── map │ │ │ ├── map.html │ │ │ └── map.js │ │ └── video │ │ │ ├── images │ │ │ ├── center_focus.jpg │ │ │ ├── left_focus.jpg │ │ │ ├── none_focus.jpg │ │ │ └── right_focus.jpg │ │ │ ├── video.css │ │ │ └── video.js │ │ ├── index.html │ │ ├── lang │ │ ├── en │ │ │ ├── en.js │ │ │ └── images │ │ │ │ ├── addimage.png │ │ │ │ ├── alldeletebtnhoverskin.png │ │ │ │ ├── alldeletebtnupskin.png │ │ │ │ ├── background.png │ │ │ │ ├── button.png │ │ │ │ ├── copy.png │ │ │ │ ├── deletedisable.png │ │ │ │ ├── deleteenable.png │ │ │ │ ├── imglabel.png │ │ │ │ ├── listbackground.png │ │ │ │ ├── localimage.png │ │ │ │ ├── music.png │ │ │ │ ├── rotateleftdisable.png │ │ │ │ ├── rotateleftenable.png │ │ │ │ ├── rotaterightdisable.png │ │ │ │ ├── rotaterightenable.png │ │ │ │ └── upload.png │ │ └── zh-cn │ │ │ ├── images │ │ │ ├── copy.png │ │ │ ├── imglabel.png │ │ │ ├── localimage.png │ │ │ ├── music.png │ │ │ └── upload.png │ │ │ └── zh-cn.js │ │ ├── php │ │ ├── Uploader.class.php │ │ ├── getContent.php │ │ └── imageUp.php │ │ ├── themes │ │ └── default │ │ │ ├── css │ │ │ ├── umeditor.css │ │ │ └── umeditor.min.css │ │ │ └── images │ │ │ ├── caret.png │ │ │ ├── close.png │ │ │ ├── icons.gif │ │ │ ├── icons.png │ │ │ ├── ok.gif │ │ │ ├── pop-bg.png │ │ │ ├── spacer.gif │ │ │ └── videologo.gif │ │ ├── third-party │ │ ├── jquery.min.js │ │ └── mathquill │ │ │ ├── font │ │ │ ├── Symbola.eot │ │ │ ├── Symbola.otf │ │ │ ├── Symbola.svg │ │ │ ├── Symbola.ttf │ │ │ ├── Symbola.woff │ │ │ └── stixgeneral-bundle │ │ │ │ ├── STIXFontLicense2010.txt │ │ │ │ ├── stixgeneral-webfont.eot │ │ │ │ ├── stixgeneral-webfont.svg │ │ │ │ ├── stixgeneral-webfont.ttf │ │ │ │ ├── stixgeneral-webfont.woff │ │ │ │ ├── stixgeneralbol-webfont.eot │ │ │ │ ├── stixgeneralbol-webfont.svg │ │ │ │ ├── stixgeneralbol-webfont.ttf │ │ │ │ ├── stixgeneralbol-webfont.woff │ │ │ │ ├── stixgeneralbolita-webfont.eot │ │ │ │ ├── stixgeneralbolita-webfont.svg │ │ │ │ ├── stixgeneralbolita-webfont.ttf │ │ │ │ ├── stixgeneralbolita-webfont.woff │ │ │ │ ├── stixgeneralitalic-webfont.eot │ │ │ │ ├── stixgeneralitalic-webfont.svg │ │ │ │ ├── stixgeneralitalic-webfont.ttf │ │ │ │ └── stixgeneralitalic-webfont.woff │ │ │ ├── mathquill.css │ │ │ ├── mathquill.js │ │ │ └── mathquill.min.js │ │ ├── umeditor.config.js │ │ ├── umeditor.js │ │ └── umeditor.min.js ├── lib │ ├── clean.js │ └── readability.js ├── link.js └── server.conf ├── fis-conf.js └── server ├── ajax.html ├── bookmark.html └── index.php /.gitignore: -------------------------------------------------------------------------------- 1 | *.exvim 2 | .exvim.w 3 | -------------------------------------------------------------------------------- /dist/client/bookmark.js: -------------------------------------------------------------------------------- 1 | !function(){if(window.__clipper)window.__clipper.toggle();else{var e=document.createElement("script");e.src="//lwdgit.github.io/web-clipper/dist/client/link.js?debug",document.getElementsByTagName("body")[0].appendChild(e)}}(); -------------------------------------------------------------------------------- /dist/client/chrome-plugin.user.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // 请将本文件拖至chrome拓展管理器中安装 3 | // @name web clipper 4 | // @namespace https://lwdgit.github.io/web-clipper/ 5 | // @version 0.1.0 6 | // @description web clipper 7 | // @author lwdgit 8 | // @grant none 9 | // ==/UserScript== 10 | 11 | (function() { 12 | function load() { 13 | if (!top.__clipper) { 14 | var s = document.createElement('script'); 15 | s.src = "//lwdgit.github.io/web-clipper/dist/client/" + 'link.js?debug'; 16 | document.getElementsByTagName('body')[0].appendChild(s); 17 | } else { 18 | top.__clipper.toggle(); 19 | } 20 | } 21 | 22 | window.addEventListener('keyup', function(e) { 23 | if (e.keyCode === 90 && e.shiftKey && e.ctrlKey) { //ctrl + shift + z 24 | load(); 25 | } 26 | }, false); 27 | }()); 28 | -------------------------------------------------------------------------------- /dist/client/clean-rules/cnblogs_code.js: -------------------------------------------------------------------------------- 1 | 2 | _cmd_define('/client/clean-rules/cnblogs_code.js', function(_cmd_require, exports, module) { 3 | module.exports = function(code) { 4 | code = code.replace(/<\/?(code|div|a|p|span|i|em)[^>]*>/gi, ''); 5 | return '
' + code.replace(/^\s*[\n\r]+/, '').replace(/[\r\n]+\s*$/, '') + '
'; 6 | }; 7 | }); 8 | -------------------------------------------------------------------------------- /dist/client/clean-rules/crayon-syntax.js: -------------------------------------------------------------------------------- 1 | 2 | _cmd_define('/client/clean-rules/crayon-syntax.js', function(_cmd_require, exports, module) { 3 | module.exports = function(code) { 4 | var tmp; 5 | if (tmp = code.match(/.*?<\/td>/mi)) { 6 | code = tmp[0]; 7 | } 8 | code = code.replace(/<\/?(code|p|span|table|thead|tbody|td|tr)[^>]*>/mgi, ''); 9 | code = code.replace(/<\/?(div)[^>]*>/mgi, function(match) { 10 | if (match.indexOf('crayon-line') > -1) { 11 | return '\n'; 12 | } else { 13 | return ''; 14 | } 15 | }); 16 | return '
' + code.replace(/^\s*[\n\r]+/, '').replace(/[\r\n]+\s*$/, '') + '
'; 17 | }; 18 | 19 | }); 20 | -------------------------------------------------------------------------------- /dist/client/clean-rules/dp-highlighter.js: -------------------------------------------------------------------------------- 1 | 2 | _cmd_define('/client/clean-rules/dp-highlighter.js', function(_cmd_require, exports, module) { 3 | module.exports = function(code) { 4 | return ''; 5 | }; 6 | }); 7 | -------------------------------------------------------------------------------- /dist/client/clean-rules/prettyprint.js: -------------------------------------------------------------------------------- 1 | 2 | _cmd_define('/client/clean-rules/prettyprint.js', function(_cmd_require, exports, module) { 3 | module.exports = function(code) { 4 | code = code.replace(/