1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
<?php
/*
* This is a configuration file. You shouldn't modify it unless you know what
* you are doing. If you want to add a share type, this is where you need to do
* it.
*
* For each share there is different configuration options. Here is the description
* of those options:
* - url is a mandatory option. It is a string representing the share URL. It
* supports 3 different placeholders for custom data. The ~URL~ placeholder
* represents the URL of the system used to share, it is configured by the
* user. The ~LINK~ placeholder represents the link of the shared article.
* The ~TITLE~ placeholder represents the title of the shared article.
* - transform is an array of transformation to apply on links and titles
* - help is a URL to a help page
* - form is the type of form to display during configuration. It's either
* 'simple' or 'advanced'. 'simple' is used when only the name is configurable,
* 'advanced' is used when the name and the location are configurable.
* - method is the HTTP method (POST or GET) used to share a link.
*/
return array(
'shaarli' => array(
'url' => '~URL~?post=~LINK~&title=~TITLE~&source=FreshRSS',
'transform' => array('rawurlencode'),
'help' => 'http://sebsauvage.net/wiki/doku.php?id=php:shaarli',
'form' => 'advanced',
'method' => 'GET',
),
'blogotext' => array(
'url' => '~URL~/admin/links.php?url=~LINK~',
'transform' => array(),
'help' => 'http://lehollandaisvolant.net/blogotext/fr/',
'form' => 'advanced',
'method' => 'GET',
),
'wallabag' => array(
'url' => '~URL~?action=add&url=~LINK~',
'transform' => array(
'link' => array('base64_encode'),
'title' => array(),
),
'help' => 'http://www.wallabag.org/',
'form' => 'advanced',
'method' => 'GET',
),
'wallabagv2' => array(
'url' => '~URL~/bookmarklet?url=~LINK~',
'transform' => array(
'link' => array('rawurlencode'),
'title' => array(),
),
'help' => 'http://www.wallabag.org/',
'form' => 'advanced',
'method' => 'GET',
),
'diaspora' => array(
'url' => '~URL~/bookmarklet?url=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'help' => 'https://diasporafoundation.org/',
'form' => 'advanced',
'method' => 'GET',
),
'movim' => array(
'url' => '~URL~/?share/~LINK~',
'transform' => array('rawurlencode', 'urlencode'),
'help' => 'https://github.com/edhelas/movim',
'form' => 'advanced',
'method' => 'GET',
),
'twitter' => array(
'url' => 'https://twitter.com/share?url=~LINK~&text=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'g+' => array(
'url' => 'https://plus.google.com/share?url=~LINK~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'facebook' => array(
'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&t=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'email' => array(
'url' => 'mailto:?subject=~TITLE~&body=~LINK~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'print' => array(
'url' => '#',
'transform' => array(),
'form' => 'simple',
'method' => 'GET',
),
'jdh' => array(
'url' => 'https://www.journalduhacker.net/stories/new?url=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'Known' => array(
'url' => '~URL~/share?share_url=~LINK~&share_title=~TITLE~',
'transform' => array('rawurlencode'),
'help' => 'https://withknown.com/',
'form' => 'advanced',
'method' => 'GET',
),
'gnusocial' => array(
'url' => '~URL~/notice/new?content=~TITLE~%20~LINK~',
'transform' => array('urlencode'),
'help' => 'https://gnu.io/social/',
'form' => 'advanced',
'method' => 'GET',
),
'mastodon' => array(
'url' => '~URL~/api/v1/statuses',
'transform' => array(),
'form' => 'advanced',
'method' => 'POST',
'field' => 'status',
),
);
|