Commit Graph

12 Commits

Author SHA1 Message Date
Florian Bruhin 0a2940622c Fix some userscript syntax issues
Thanks to (a hacked) pyupgrade
2022-04-03 21:04:33 +02: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
Florian Bruhin 8f9d07674c Use and enforce python3 shebangs in userscripts
See #6080
2021-01-28 16:11:13 +01:00
rien333 c2df7e8bf4 Whitespace 2019-08-22 09:49:19 +02:00
rien333 9516e36b78 Proper html header, consistent between both readability libraries 2019-08-22 01:53:19 +02:00
rien333 de71bc5890 Add CSS styling to output of readability userscript.
Closes #4951. Produces dynamically resizable page margins and
increases line heights in order to enhance readability (based on
'desgin principles' from http://bettermotherfuckingwebsite.com/)
2019-08-08 18:21:13 +02:00
Jay Kamat 84907d5a2e
Simplify readability logic using get defaults
:D
2018-02-18 14:49:09 -05:00
Jay Kamat c844023077
Use QUTE_DATA_DIR in readability userscript 2018-02-18 14:28:46 -05:00
Florian Bruhin dca962ca03 Make userscripts work on both Python 2 and 3 2017-09-29 13:38:38 +02:00
Noor Christensen a4e644c285 Add support for breadability module in readability userscript 2017-07-20 16:21:47 +02:00
Noor Christensen 5939bc990a Clarify dependecies for readability userscript 2017-07-20 14:36:27 +02:00
rsteube 08691dc020 Added readability userscript 2016-09-22 01:18:13 +02:00