about summary refs log tree commit diff stats
path: root/bonus/config.toml
diff options
context:
space:
mode:
Diffstat (limited to 'bonus/config.toml')
-rw-r--r--bonus/config.toml15
1 files changed, 15 insertions, 0 deletions
diff --git a/bonus/config.toml b/bonus/config.toml
new file mode 100644
index 00000000..39e6dc52
--- /dev/null
+++ b/bonus/config.toml
@@ -0,0 +1,15 @@
+[[omnirule]]
+match = '^ddg:'
+substitute-url = '(x) => "https://lite.duckduckgo.com/lite/?kp=-1&kd=-1&q=" + x.substring(4)'
+
+[[omnirule]]
+match = '^wk:'
+substitute-url = '(x) => "https://en.wikipedia.org/wiki/Special:Search?search=" + x.substring(4)'
+
+[[siteconf]]
+url = '/^https?:\/\/(www\.)?npr\.org/'
+rewrite-url = '(x) => x.pathname = x.pathname.replace(/(.*)\/.*/, "$1").replace(/.*\//, "")'
+
+[[siteconf]]
+url = "^https://news.ycombinator.com.*"
+cookie = true