summaryrefslogtreecommitdiff
path: root/misc/userscripts
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-02-28 22:19:35 +0100
committerGitHub <noreply@github.com>2021-02-28 22:19:35 +0100
commit15f476b30d7c9e50f2092be076e3df5cf224e3d6 (patch)
tree6339e37b4722015ffeae8e213d17854276bae401 /misc/userscripts
parentc586dc272f999898833cf58681ece358fc7b438d (diff)
parent9d5c7b5ed82bfa2d2b0be0910487522abfe4381f (diff)
downloadqutebrowser-15f476b30d7c9e50f2092be076e3df5cf224e3d6.tar.gz
qutebrowser-15f476b30d7c9e50f2092be076e3df5cf224e3d6.zip
Merge pull request #6214 from rien333/master
[readability-js] Improve install instructions
Diffstat (limited to 'misc/userscripts')
-rwxr-xr-xmisc/userscripts/readability-js18
1 files changed, 13 insertions, 5 deletions
diff --git a/misc/userscripts/readability-js b/misc/userscripts/readability-js
index 5f5c85a78..2f24e065d 100755
--- a/misc/userscripts/readability-js
+++ b/misc/userscripts/readability-js
@@ -7,11 +7,19 @@
//
// # Prerequisites
//
-// - Setting NODE_PATH might be required to point qutebrowser to your global node libraries:
-// export NODE_PATH=$NODE_PATH:$(npm root -g)
-// - Mozilla's readability library (npm install -g @mozilla/readability)
-// - jsdom (npm install -g jsdom)
-// - qutejs (npm install -g qutejs)
+// - Mozilla's readability library (npm install -g @mozilla/readability)
+// - jsdom (npm install -g jsdom)
+// - qutejs (npm install -g qutejs)
+//
+// - Ensure that node knows where to find your globally installed modules by adding
+// the following to ~/.profile or /etc/profile:
+//
+// export NODE_PATH=$NODE_PATH:$(npm root -g)
+//
+// *Note*: On some Linux distros and macOS, it may be easier to set NODE_PATH using qutebrowser's
+// qt.environ setting. For instance, if 'npm root -g' returns /usr/lib/node_modules, then run:
+//
+// :set qt.environ '{"NODE_PATH": "/usr/lib/node_modules"}'
//
// # Usage
//