├── Mona Press Kit.zip ├── README.md ├── URL Schemes 中文.md ├── URL Schemes.md └── URLSchemesChinese.md /Mona Press Kit.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunyuKuang/Spring-for-Twitter/84038928a12d3ef0864f191f3ab292ecb017766f/Mona Press Kit.zip -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Spring [@theSpringApp](https://twitter.com/theSpringApp) 2 | ### Spring Twitter client 3 | 4 | [App Store](https://geo.itunes.apple.com/app/id1508706541) 5 | 6 | #### Minimum OS requirements: 7 | 8 | macOS 10.15 Catalina 9 | 10 | iOS/iPadOS 13.0 11 | -------------------------------------------------------------------------------- /URL Schemes 中文.md: -------------------------------------------------------------------------------- 1 | 2 | # URL Schemes 3 | 4 | ## 前言 5 | 6 | ### 支持的 Schemes(URL链接前缀) 7 | #### spring 8 | 可能打开一个旧版本、不支持 URL Schemes 的 Spring。 9 | 10 | #### spring2 11 | 仅当Spring已更新到支持版本后,才能被打开。 12 | 13 | #### 备注 14 | 如果您安装了多个版本的Spring,请使用 App ID 作为 Scheme: 15 | 16 | Spring 3 Beta: com.jonny.drift:// 17 | 18 | Spring: com.jonny.spring:// 19 | 20 | Spring mini: com.jonny.spring-lite:// 21 | 22 | ### 通用参数 23 | #### account 24 | 使用由您的账号名(用户@名称)作为区分的特定账号来执行任务。 account对应的内容无需区分大小写。 25 | 26 | 例如,@theSpringApp 的账号名是 “theSpringApp”。 27 | 28 | #### account-id 29 | 使用由您的 Twitter 用户编号作为区分的特定账号来执行任务。 30 | 31 | 要获取用户编号,请先打开用户页面,然后点击右上角的“动作”按钮,然后点击“拷贝”并选择“拷贝用户编号”。 32 | 33 | 除非本文档另有说明,您只需提供“account”或“account-id”参数。 34 | 35 | 推荐使用“account-id”而不是“account”,因为该ID是一个与您的Twitter账号绑定的稳定编号,而账号名可以随时在Twitter.com上更改,这意味着使用“account-id”作参数时,您不必在更改 Twitter 账号名后更新您的 URL Scheme 配置。 36 | 37 | ## 切换账号 38 | 请提供 "account" 或 "account-id" 作为参数。如果当前 app 窗口登录的账号与 URL 账号相同,Spring 不会作任何变动。 39 | 40 | #### 示例 41 | spring2://switch?account=theSpringApp 42 | 43 | spring2://switch?account-id=886626176751546368 44 | 45 | ## 打开推文编辑器 46 | 可提供两个选填的参数:text, account/account-id 47 | 48 | text参数对应的内容会被填入推文编辑器。如果未提供账号参数,Spring 会自动选取一个基于当前打开窗口的默认的账号。 49 | 50 | #### 示例 51 | spring2://post?text=hello 52 | 53 | spring2://post?text=hello&account-id=886626176751546368 54 | 55 | ## 打开搜索视图 56 | 可提供两个选填的参数:text, account/account-id 57 | 58 | text参数对应的内容会被填入搜索栏。 59 | 60 | ### 示例 61 | spring2://search?text=hello 62 | 63 | spring2://search?text=hello&account-id=886626176751546368 64 | 65 | ## 打开 Twitter 链接 66 | 目前支持推文链接 (如 https://twitter.com/thespringapp/status/1344625888449556480), 用户主页链接 (如 https://twitter.com/thespringapp), 和 Twitter 列表链接 (如 https://twitter.com/i/lists/1344918930687729664) 67 | 68 | ### 简单 69 | 将 Twitter URL 的前缀 “https” 替换为 “spring” 即可。 70 | 71 | 例如,通过默认账号打开 @theSpringApp 的用户主页: 72 | 73 | spring://twitter.com/theSpringApp 74 | 75 | ### 进阶 76 | 如果您希望一次打开多个页面,或通过特定账号打开页面,请使用 “open” URL。 77 | 78 | 支持的参数: url (必填), account/account-id (选填)。 79 | 80 | 您可指定多个 url 参数。url 参数的内容必须经过百分比编码(percent encoding)否则 Spring 可能无法识别。 81 | 82 | #### 示例 83 | 通过已登录的 @theSpringApp 账号打开 @twitter 和 @jack 的用户主页: 84 | 85 | spring://open?account=theSpringApp&url=https%3A%2F%2Ftwitter.com%2Ftwitter&url=https%3A%2F%2Ftwitter.com%2Fjack 86 | -------------------------------------------------------------------------------- /URL Schemes.md: -------------------------------------------------------------------------------- 1 | 2 | # URL Schemes 3 | 4 | ## TL;DR 5 | Replace a Twitter URL's "https" prefix with "**spring**" to open the URL in Spring. 6 | 7 | Replace a Mastodon URL's "https" prefix with "**mona**" to open the URL in Mona. 8 | 9 | For example: https://twitter.com/theSpringApp => spring://twitter.com/theSpringApp 10 | 11 | ## Preface 12 | 13 | ### Supported Schemes (URL Prefixes) 14 | #### spring 15 | Open one of these apps: Spring, Spring mini (version 4.3+), or Spring Beta. 16 | 17 | #### mona 18 | Open one of these apps: Mona, or Mona Beta. 19 | 20 | ##### Note 21 | You could also use app ID as scheme instead, if you installed multiple editions of Spring or Mona, and you want to explicitly (not randomly) open one of them. 22 | 23 | Spring Beta: com.jonny.drift:// 24 | 25 | Spring: com.jonny.spring:// 26 | 27 | Spring mini: com.jonny.spring-lite:// 28 | 29 | Mona Beta: com.jonny.monabeta:// 30 | 31 | Mona: com.jonny.mona:// 32 | 33 | ### Common Parameters 34 | #### account 35 | Perform a task with specific account identified by your Twitter handle (@username), or Mastodon user address. The value of account is case insensitive. 36 | 37 | Twitter example: @theSpringApp 38 | Mastodon example: @MonaApp@mastodon.social 39 | 40 | ## Open Links in Spring or Mona 41 | #### Twitter 42 | Supports links to tweets (e.g. https://twitter.com/thespringapp/status/1344625888449556480), user profiles (e.g. https://twitter.com/thespringapp), Twitter Lists (e.g. https://twitter.com/i/lists/1344918930687729664), Direct Message deep links (e.g. https://twitter.com/messages/123456), and Twitter Search (e.g. https://twitter.com/search?q=hello) 43 | 44 | #### Mastodon 45 | User profile: https://[any_domain]/@[username]. https://mastodon.social/@MonaApp 46 | 47 | Toot: https://[any_domain]/@[username]/[toot_id_number] https://mastodon.social/@MonaApp/109506252875971252 48 | 49 | ### Basic 50 | Replace the “https” prefix in a Twitter URL with “spring”. 51 | 52 | For example, open @theSpringApp’s user page using default account: 53 | 54 | spring://twitter.com/theSpringApp 55 | 56 | ### Advanced 57 | Use the “open” URL scheme if you want to open multiple pages at once, or open a page with specific account. 58 | 59 | The URL takes 2 parameters: url (required), and account (optional). 60 | 61 | You may include multiple url parameters. "url" parameters must be percent encoded. 62 | 63 | For example, open user page of @twitter and @jack with a signed in account called @theSpringApp would be something like this: 64 | 65 | spring://open?account=theSpringApp&url=https%3A%2F%2Ftwitter.com%2Ftwitter&url=https%3A%2F%2Ftwitter.com%2Fjack 66 | 67 | 68 | ## Switch Account 69 | Provide "account" as parameter. Nothing changed if the target account is already activated on the current app window. 70 | 71 | #### Examples: 72 | spring://switch?account=@theSpringApp 73 | 74 | mona://switch?account=@MonaApp@mastodon.social 75 | 76 | ## Open Tweet Composer 77 | You can provide 2 optional parameters: text, account 78 | 79 | The value of text parameter will be filled into the tweet composer view. If no account provided, Spring/Mona chooses a default account based on the current app window. 80 | 81 | #### Examples: 82 | spring://post?text=hello 83 | 84 | mona://post?text=hello&account=@MonaApp@mastodon.social 85 | 86 | ## Open Search View 87 | You can provide 2 optional parameters: text, account 88 | 89 | The value of text parameter will be filled into the search bar. 90 | 91 | ### Examples: 92 | spring://search?text=hello 93 | 94 | mona://search?text=hello&account=@MonaApp@mastodon.social 95 | -------------------------------------------------------------------------------- /URLSchemesChinese.md: -------------------------------------------------------------------------------- 1 | 2 | # URL Schemes 3 | 4 | ## 前言 5 | 6 | ### 支持的 Schemes(URL链接前缀) 7 | #### spring 8 | 可能打开一个旧版本、不支持 URL Schemes 的 Spring。 9 | 10 | #### spring2 11 | 仅当Spring已更新到支持版本后,才能被打开。 12 | 13 | #### 备注 14 | 如果您安装了多个版本的Spring,请使用 App ID 作为 Scheme: 15 | 16 | Spring 3 Beta: com.jonny.drift:// 17 | 18 | Spring: com.jonny.spring:// 19 | 20 | Spring mini: com.jonny.spring-lite:// 21 | 22 | ### 通用参数 23 | #### account 24 | 使用由您的账号名(用户@名称)作为区分的特定账号来执行任务。 account对应的内容无需区分大小写。 25 | 26 | 例如,@theSpringApp 的账号名是 “theSpringApp”。 27 | 28 | #### account-id 29 | 使用由您的 Twitter 用户编号作为区分的特定账号来执行任务。 30 | 31 | 要获取用户编号,请先打开用户页面,然后点击右上角的“动作”按钮,然后点击“拷贝”并选择“拷贝用户编号”。 32 | 33 | 除非本文档另有说明,您只需提供“account”或“account-id”参数。 34 | 35 | 推荐使用“account-id”而不是“account”,因为该ID是一个与您的Twitter账号绑定的稳定编号,而账号名可以随时在Twitter.com上更改,这意味着使用“account-id”作参数时,您不必在更改 Twitter 账号名后更新您的 URL Scheme 配置。 36 | 37 | ## 切换账号 38 | 请提供 "account" 或 "account-id" 作为参数。如果当前 app 窗口登录的账号与 URL 账号相同,Spring 不会作任何变动。 39 | 40 | #### 示例 41 | spring2://switch?account=theSpringApp 42 | 43 | spring2://switch?account-id=886626176751546368 44 | 45 | ## 打开推文编辑器 46 | 可提供两个选填的参数:text, account/account-id 47 | 48 | text参数对应的内容会被填入推文编辑器。如果未提供账号参数,Spring 会自动选取一个基于当前打开窗口的默认的账号。 49 | 50 | #### 示例 51 | spring2://post?text=hello 52 | 53 | spring2://post?text=hello&account-id=886626176751546368 54 | 55 | ## 打开搜索视图 56 | 可提供两个选填的参数:text, account/account-id 57 | 58 | text参数对应的内容会被填入搜索栏。 59 | 60 | ### 示例 61 | spring2://search?text=hello 62 | 63 | spring2://search?text=hello&account-id=886626176751546368 64 | 65 | ## 打开 Twitter 链接 66 | 目前支持推文链接 (如 https://twitter.com/thespringapp/status/1344625888449556480), 用户主页链接 (如 https://twitter.com/thespringapp), 和 Twitter 列表链接 (如 https://twitter.com/i/lists/1344918930687729664) 67 | 68 | ### 简单 69 | 将 Twitter URL 的前缀 “https” 替换为 “spring” 即可。 70 | 71 | 例如,通过默认账号打开 @theSpringApp 的用户主页: 72 | 73 | spring://twitter.com/theSpringApp 74 | 75 | ### 进阶 76 | 如果您希望一次打开多个页面,或通过特定账号打开页面,请使用 “open” URL。 77 | 78 | 支持的参数: url (必填), account/account-id (选填)。 79 | 80 | 您可指定多个 url 参数。url 参数的内容必须经过百分比编码(percent encoding)否则 Spring 可能无法识别。 81 | 82 | #### 示例 83 | 通过已登录的 @theSpringApp 账号打开 @twitter 和 @jack 的用户主页: 84 | 85 | spring://open?account=theSpringApp&url=https%3A%2F%2Ftwitter.com%2Ftwitter&url=https%3A%2F%2Ftwitter.com%2Fjack 86 | --------------------------------------------------------------------------------