From 8859a701c51cb8172e6e58f66cd7140f3aa9a708 Mon Sep 17 00:00:00 2001 From: "shashishekhar@chromium.org" Date: Mon, 17 Feb 2014 11:02:53 +0000 Subject: Support for distilling prior pages in an article. If distillation is triggered on a page other than the first page, the distiller only distills the subsequent pages in the article. Add support for distilling prior pages. This only adds support to the C++ side, the javascript is still missing the heuristic to figure out previous pages. BUG=288015 TEST=Included. Review URL: https://codereview.chromium.org/167963003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251654 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/readability/js/readability.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'third_party') diff --git a/third_party/readability/js/readability.js b/third_party/readability/js/readability.js index 9cdbb30..130ea29 100644 --- a/third_party/readability/js/readability.js +++ b/third_party/readability/js/readability.js @@ -1744,10 +1744,12 @@ var readability = { // corresponds to a URL listed at index k in the array returned. (function () { readability.init(); - var result = new Array(3); + var result = new Array(4); result[0] = readability.getArticleTitle(); result[1] = readability.getDistilledArticleHTML(); result[2] = readability.getNextPageLink(); + // TODO(shashishekhar): Add actual previous page link here. + result[3] = ''; return result.concat(readability.getImages()); }()) -- cgit v1.1