diff options
author | Jon Higgs <jhiggs@eml.cc> | 2022-10-08 12:44:01 +1100 |
---|---|---|
committer | Jon Higgs <jhiggs@eml.cc> | 2022-10-08 12:44:01 +1100 |
commit | 5a880944352da582bd2e1bb3fcbbcc8999e9799e (patch) | |
tree | 2b3080c21acf8c2c061406eb04ee20446af49b79 | |
parent | 208be25da4a0752be27eb80767f93168f44fc73f (diff) | |
download | qutebrowser-5a880944352da582bd2e1bb3fcbbcc8999e9799e.tar.gz qutebrowser-5a880944352da582bd2e1bb3fcbbcc8999e9799e.zip |
Send source URL to Breadability
Used to construct fully-qualified URLs from relative links. Without it
you get broken images and links.
-rwxr-xr-x | misc/userscripts/readability | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/userscripts/readability b/misc/userscripts/readability index 19b687939..07095a5b8 100755 --- a/misc/userscripts/readability +++ b/misc/userscripts/readability @@ -47,7 +47,7 @@ with codecs.open(os.environ['QUTE_HTML'], 'r', 'utf-8') as source: try: from breadability.readable import Article as reader - doc = reader(data) + doc = reader(data, os.environ['QUTE_URL']) title = doc._original_document.title content = HEADER % title + doc.readable + "</html>" except ImportError: |