Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: third_party/readability/js/readability.js

Issue 176083002: Use boilerpipe-based dom-distiller-js (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/readability/js/readability.js
diff --git a/third_party/readability/js/readability.js b/third_party/readability/js/readability.js
index 130ea29b04c2a95fdf2a9fe4781cbe4e3b2333a6..4308093edbb2e69e5f1464f72091a85180c140ff 100644
--- a/third_party/readability/js/readability.js
+++ b/third_party/readability/js/readability.js
@@ -1736,20 +1736,3 @@ var readability = {
return readability.nextPageLink;
}
};
-
-// Extracts long-form content from a page and returns and array where the first
-// element is the article title, the second element is HTML containing the
-// long-form content, and remaining elements are URLs for images referenced by
-// that HTML. Each <img> tag in the HTML has an id field set to k - 2, which
-// corresponds to a URL listed at index k in the array returned.
-(function () {
- readability.init();
- 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());
-}())
-

Powered by Google App Engine
This is Rietveld 408576698