readme highlighting

This commit is contained in:
tastytea 2018-06-04 00:59:28 +02:00
parent 5d34c938e1
commit 6463f8ef1f
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
1 changed files with 24 additions and 20 deletions

View File

@ -58,24 +58,26 @@ If no config file is found, you will be asked to provide your account address
and an access token is generated. The config file can be found in and an access token is generated. The config file can be found in
`${HOME}/.config/expandurl-mastodon.json` and looks like this: `${HOME}/.config/expandurl-mastodon.json` and looks like this:
```JSON
{
"account": "expandurl@example.social",
"access_token": "abc123",
"proxy":
{ {
"account": "expandurl@example.social", "url": "socks5h://[::1]:1080/",
"access_token": "abc123", "user": "user23",
"proxy": "password": "supersecure"
{ },
"url": "socks5h://[::1]:1080/", "replace" :
"user": "user23", {
"password": "supersecure" "//amp\\." : "//",
}, "[\\?&]__twitter_impression=[^&]+" : "",
"replace" : "[\\?&]utm_[^&]+" : "",
{ "[\\?&]wt_zmc=[^&]+" : "",
"//amp\\." : "//", "[\\?&]wtmc=[^&]+" : ""
"[\\?&]__twitter_impression=[^&]+" : "",
"[\\?&]utm_[^&]+" : "",
"[\\?&]wt_zmc=[^&]+" : "",
"[\\?&]wtmc=[^&]+" : ""
}
} }
}
```
If you want to use a proxy or define your own replacements, you have to edit the If you want to use a proxy or define your own replacements, you have to edit the
configuration file manually. After the configuration file is generated, you can configuration file manually. After the configuration file is generated, you can
@ -84,7 +86,9 @@ daemon.
# Copyright # Copyright
Copyright © 2018 tastytea <tastytea@tastytea.de>. ```
License GPLv3: GNU GPL version 3 <https://www.gnu.org/licenses/gpl-3.0.html>. Copyright © 2018 tastytea <tastytea@tastytea.de>.
This program comes with ABSOLUTELY NO WARRANTY. This is free software, License GPLv3: GNU GPL version 3 <https://www.gnu.org/licenses/gpl-3.0.html>.
and you are welcome to redistribute it under certain conditions. This program comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
```