summaryrefslogtreecommitdiff
path: root/Pancake/Configuration.hs
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-12-28 05:03:26 +0300
committerdefanor <defanor@uberspace.net>2017-12-28 06:39:17 +0300
commitb11b05385b5615aaf08bd245af53e8df03a193b3 (patch)
tree99304984295784f70f8f4c3e3cbc8488bf16e0a6 /Pancake/Configuration.hs
parentc27c14e866dfb4a3c6c85393ffd0522933c67651 (diff)
Install and enable a few uncluttering XSLTs by default
Diffstat (limited to 'Pancake/Configuration.hs')
-rw-r--r--Pancake/Configuration.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Pancake/Configuration.hs b/Pancake/Configuration.hs
index bfac392..c01ad96 100644
--- a/Pancake/Configuration.hs
+++ b/Pancake/Configuration.hs
@@ -109,7 +109,13 @@ instance Default Config where
, historyDepth = 100
, referenceDigits = "0123456789"
, indentDivs = False
- , unclutter = M.empty
+ , unclutter = M.fromList
+ [ ("duckduckgo", "^https://duckduckgo\\.com/lite/\\?q=")
+ , ("lobsters", "^https://lobste\\.rs/((page|recent|newest).*)?$")
+ , ("hacker-news",
+ "^https://news\\.ycombinator\\.com/((news|show|ask).*)?$")
+ , ("mediawiki", "^https://en\\.(m.)?(wiktionary|wikipedia)\\.org/wiki/")
+ , ("github", "^https://github\\.com/")]
}
where
curl = "curl --compressed -4 -L " ++