| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <?php
- declare(strict_types=1);
- /*
- * 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:
- * - 'deprecated' (optional) is a boolean. Default: 'false'.
- * 'true', if the sharing service is planned to remove in the future.
- * Add more information into the documentation center.
- * - 'HTMLtag' (optional). If it is 'button' then an HTML <button> is used,
- * else an <a href=""> is used. Add a click event in main.js additionally.
- * - 'url' is a mandatory option. It is a string representing the share URL. It
- * supports 4 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. The
- * ~ID~ placeholder represents the id of the shared article (only useful
- * for internal use)
- * - 'transform' is an array of transformation to apply on links and titles
- * - 'help' is a URL to a help page (mandatory for form = 'advanced')
- * - '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 [
- 'archiveORG' => [
- 'url' => 'https://web.archive.org/save/~LINK~',
- 'transform' => [],
- 'help' => 'https://web.archive.org',
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'archiveIS' => [
- 'url' => 'https://archive.is/submit/?url=~LINK~',
- 'transform' => [],
- 'help' => 'https://archive.is/',
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'archivePH' => [
- 'url' => 'https://archive.ph/submit/?url=~LINK~',
- 'transform' => [],
- 'help' => 'https://archive.ph/',
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'bluesky' => [
- 'url' => 'https://bsky.app/intent/compose?text=~LINK~',
- 'transform' => ['urlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'buffer' => [
- 'url' => 'https://publish.buffer.com/compose?url=~LINK~&text=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://support.buffer.com/hc/en-us/articles/360035587394-Scheduling-posts',
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'clipboard' => [
- 'HTMLtag' => 'button',
- 'url' => '~LINK~',
- 'transform' => [],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'diaspora' => [
- 'url' => '~URL~/bookmarklet?url=~LINK~&title=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://diasporafoundation.org/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'email' => [
- 'url' => 'mailto:?subject=~TITLE~&body=~LINK~',
- 'transform' => ['rawurlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'email-webmail-firefox-fix' => [ // see https://github.com/FreshRSS/FreshRSS/issues/2666
- 'url' => 'mailto:?subject=~TITLE~&body=~LINK~',
- 'transform' => ['rawurlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'facebook' => [
- 'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&t=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'gnusocial' => [
- 'url' => '~URL~/notice/new?content=~TITLE~%20~LINK~',
- 'transform' => ['urlencode'],
- 'help' => 'https://gnu.io/social/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'jdh' => [
- 'url' => 'https://www.journalduhacker.net/stories/new?url=~LINK~&title=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'Known' => [
- 'url' => '~URL~/share?share_url=~LINK~&share_title=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://withknown.com/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'lemmy' => [
- 'url' => '~URL~/create_post?url=~LINK~&title=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://join-lemmy.org/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'linkding' => [
- 'url' => '~URL~/bookmarks/new?url=~LINK~&title=~TITLE~&auto_close',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://github.com/sissbruecker/linkding/blob/master/docs/how-to.md',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'linkedin' => [
- 'url' => 'https://www.linkedin.com/shareArticle?url=~LINK~&title=~TITLE~&source=FreshRSS',
- 'transform' => ['rawurlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'mastodon' => [
- 'url' => '~URL~/share?title=~TITLE~&url=~LINK~',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://joinmastodon.org/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'movim' => [
- 'url' => '~URL~/?share/~LINK~',
- 'transform' => ['urlencode'],
- 'help' => 'https://movim.eu/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'omnivore' => [
- 'url' => '~URL~/api/save?url=~LINK~',
- 'transform' => ['urlencode'],
- 'help' => 'https://omnivore.app/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'pinboard' => [
- 'url' => 'https://pinboard.in/add?next=same&url=~LINK~&title=~TITLE~',
- 'transform' => ['urlencode'],
- 'help' => 'https://pinboard.in/api/',
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'pinterest' => [
- 'url' => 'https://pinterest.com/pin/create/button/?url=~LINK~',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://pinterest.com/',
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'pocket' => [
- 'url' => 'https://getpocket.com/save?url=~LINK~&title=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'print' => [
- 'HTMLtag' => 'button',
- 'url' => '#',
- 'transform' => [],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'raindrop' => [
- 'url' => 'https://app.raindrop.io/add?link=~LINK~&title=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'reddit' => [
- 'url' => 'https://www.reddit.com/submit?url=~LINK~',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://www.reddit.com/wiki/submitting?v=c2ae883a-04b9-11e4-a68c-12313b01a1fc',
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'shaarli' => [
- 'url' => '~URL~?post=~LINK~&title=~TITLE~&source=FreshRSS',
- 'transform' => ['rawurlencode'],
- 'help' => 'http://sebsauvage.net/wiki/doku.php?id=php:shaarli',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'telegram' => [
- 'url' => 'https://t.me/share/url?url=~LINK~&text=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'twitter' => [
- 'url' => 'https://twitter.com/share?url=~LINK~&text=~TITLE~',
- 'transform' => ['rawurlencode'],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'wallabag' => [
- 'url' => '~URL~?action=add&url=~LINK~',
- 'transform' => ['rawurlencode'],
- 'help' => 'http://www.wallabag.org/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'wallabagv2' => [
- 'url' => '~URL~/bookmarklet?url=~LINK~',
- 'transform' => ['rawurlencode'],
- 'help' => 'http://www.wallabag.org/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ],
- 'web-sharing-api' => [
- 'HTMLtag' => 'button',
- 'url' => '~LINK~',
- 'transform' => [],
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'whatsapp' => [
- 'url' => 'https://wa.me/?text=~TITLE~ | ~LINK~',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://faq.whatsapp.com/iphone/how-to-link-to-whatsapp-from-a-different-app/?lang=en',
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- 'xing' => [
- 'url' => 'https://www.xing.com/spi/shares/new?url=~LINK~',
- 'transform' => ['rawurlencode'],
- 'help' => 'https://dev.xing.com/plugins/share_button/docs',
- 'form' => 'simple',
- 'method' => 'GET',
- ],
- ];
|