summaryrefslogtreecommitdiff
path: root/misc/userscripts/readability-js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/userscripts/readability-js')
-rwxr-xr-xmisc/userscripts/readability-js3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/userscripts/readability-js b/misc/userscripts/readability-js
index 2f24e065d..532df51c6 100755
--- a/misc/userscripts/readability-js
+++ b/misc/userscripts/readability-js
@@ -131,6 +131,9 @@ getDOM(target, domOpts).then(dom => {
let article = reader.parse();
let content = util.format(HEADER, article.title) + article.content;
+ // add a class to make styling the page easier
+ content = content.replace('<body>', '<body class="qute-readability">')
+
fs.writeFile(tmpFile, content, (err) => {
if (err) {
qute.messageError([`"${err}"`])