diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-13 00:04:50 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-13 00:04:50 +0100 |
commit | d9e430c8147c8c2d81b4ca5405786269b2cfc94d (patch) | |
tree | 91ddb6edbedc6e8310fedc13106b8b3bdcec2cdc /bonus | |
parent | 7a3fb32bff44a581d6926bfaf5f070f8ef062338 (diff) | |
download | chawan-d9e430c8147c8c2d81b4ca5405786269b2cfc94d.tar.gz |
Add all sorts of config options and cookies
Diffstat (limited to 'bonus')
-rw-r--r-- | bonus/config.toml | 15 |
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 |