Commit Graph

35 Commits

Author SHA1 Message Date
Rijnder Wever 12fcff9fe8
Remove superfluous css
It makes no sense to force text to be white, especially for users that already use a white background. I probably included this line by mistake.
2022-06-03 16:46:05 +02:00
Rijnder Wever a0ac31e0eb
Add reference to AUR package
I just added the readability package to the [AUR](https://aur.archlinux.org/packages/nodejs-readability-git/).

Not much of a difference from using npm directly, but, personally,  (i) I prefer to manage all my (important) packages using yay, and (ii) like to perform all system upgrades from one place (i.e. yay --devel).
2021-05-30 00:36:41 +02:00
Rijnder Wever 173a05944c
Output valid HTML
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2021-03-23 20:05:29 +01:00
rien333 41dbe04fe3 [readability-js] Add article metadata on top of the page 2021-03-11 19:24:27 +01:00
Florian Bruhin f54b76b0a4 Merge remote-tracking branch 'origin/pr/6241' 2021-03-11 17:14:39 +01:00
rien333 e6f470105f Use HTML5 meta tag 2021-03-08 23:16:22 +01:00
rnhmjoj 2abc3c585c
userscripts/readability-js: fixup of 55fdae8
The mozilla/readability library doesn't output a body by default.
So, let's add one in the header and plug the result in.
2021-03-08 22:05:26 +01:00
rnhmjoj 55fdae8eed
userscripts/readability: add unique body class
Until per-domains stylesheets are implemented, there is no way to
apply style to the readability page only. With this patch, you can
just use the global setting `content.user_stylesheets` by writing
a more specific CSS selector. For example:

    body.qute-readability {
      font-family: Libertinus;
      font-size: 1.2em;
      text-align: justify;
    }

will change the font and text alignment of the readability page,
without altering the style of other websites.
2021-03-08 17:55:48 +01:00
Rijnder Wever 9d5c7b5ed8
Make clear how to set qt.environ 2021-02-26 23:52:25 +01:00
rien333 05b0fd7c32 [readability-js] Improve install instructions 2021-02-26 13:05:14 +01:00
rien333 4cc61c5182 [readability-js] horizontally align codeblock contents
Before, the first line of a `code` element within a `pre` element had indentation/padding applied to it, creating the illusion that the line started with a space. Now, all the lines in `code` elements horizontally align.
2021-01-05 14:12:14 +01:00
rien333 2eb6db1a75 sync 2021-01-05 14:10:56 +01:00
rien333 851474efc7 [readability-js] horizontally align codeblock contents
Before, the first line of a `code` element within a `pre` element had indentation/padding applied to it, creating the illusion that the line started with a space. Now, all the lines in `code` elements horizontally align.
2021-01-05 14:05:11 +01:00
rien333 872e439cd9 Increase visibility of certain elements under darkmode 2020-11-25 23:56:58 +01:00
rien333 7af9b81a06 Remove unnecessary definition 2020-10-01 23:32:59 +02:00
rien333 5616db64ee Define variables using let instead of var 2020-10-01 23:15:52 +02:00
rien333 2ec17db260 [readability-js] When hinting, use the URL selected via hints
Previously, this userscript always assumed the user wanted to parse
the current page. However, this meant that something like `:hint all
userscript readability-js` wouldn't work. To fix this, the script now
checks if qutebrowser is in hinting mode, and sets the page to be
processed accordingly.

An alternative solution would be to rewrite this script to rely on
`QUTE_URL`+`JSDOM.fromURL` accross the board. However, using `QUTE_HTML`
when the target page is already loaded seems faster, uses less data, and works offline.
2020-10-01 22:33:29 +02:00
Rijnder Wever c8bae7ac5f
remove extraneous pound sign
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2020-09-23 16:13:06 +02:00
rien333 7bbaccacf8 [readability-js] Add css styling to blockquote elements 2020-09-23 14:36:02 +02:00
rien333 a2b65b0e19 [readability-js] Add css styling to more html elements 2020-09-23 14:26:55 +02:00
rien333 4617f42415 Apply Mozilla's css-styling to images 2020-09-17 12:34:32 +02:00
rien333 70ce48d343 whitespace 2020-08-06 20:13:48 +02:00
rien333 50ac520765 Rely on npm's version of the readability library 2020-08-06 20:08:51 +02:00
rien333 c028b7390b Add license information 2020-04-23 13:56:57 +02:00
rien333 31d32a206d readability favicon 2020-04-22 15:50:35 +02:00
rien333 bcd44cff05 Open readability page next to original tab 2020-04-22 13:13:55 +02:00
rien333 f96744509c Encode input as UTF8 2019-10-07 00:14:05 +02:00
Florian Bruhin 2b3a848352 Improve readability-js docs
See #5032
2019-09-24 19:06:55 +02:00
rien333 c203a7e2d1 typo 2019-09-15 00:54:48 +02:00
rien333 2815626f3c qoute error messages 2019-09-14 23:33:29 +02:00
rien333 a42e840c2d Check if userscripts dir exists 2019-09-14 23:32:34 +02:00
rien333 613564280a add jsdom dependency 2019-09-14 23:02:52 +02:00
rien333 5913c4c0dc use fromFile instead of fromURL 2019-09-13 23:51:48 +02:00
rien333 8e83b679fe use qutejs' bound commands 2019-09-10 13:39:43 +02:00
rien333 0254ee4081 readability userscript based on Mozilla's readility library 2019-09-10 02:03:18 +02:00