1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
# Embedded readability mode based on Readability.js
This directory contains an official readability.js release version, distributed at: https://github.com/mozilla/readability
## Update process
$ wget https://raw.githubusercontent.com/mozilla/readability/master/Readability.js
$ wget https://raw.githubusercontent.com/mozilla/readability/master/Readability-readerable.js
Copy Readability.js and Readability-readerable.js to <epiphany-source>/third-party/readability/
# Added the following to the bottom of the Readability.js file:
// Added for Epiphany
var documentClone = document.cloneNode(true);
reader = new Readability(documentClone);
reader.parse();
# Added the following to the bottom of the Readability-readerable.js file:
// Added for Epiphany
isProbablyReaderable(document, false);
# Documentation created by Jan-Michael Brummer <jan.brummer@tabos.org>
|