File: README.epiphany

package info (click to toggle)
epiphany-browser 48.3-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 25,384 kB
  • sloc: ansic: 75,426; javascript: 7,337; xml: 686; python: 177; sh: 77; makefile: 12
file content (24 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (4)
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>