Add button to copy toot's url

Add button to copy toot's url for quote toot on Mastodon's deck UI

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
eniehack
Daily installs
0
Total installs
5
Ratings
0 0 0
Version
0.2.1
Created
2024-05-26
Updated
2024-05-28
Size
4.9 KB
License
MIT
Applies to

概要

Mastodonのトゥート画面には、返信、ブーストやお気に入りボタンはあるものの、Twitterのような引用ボタンがありません。

このユーザスクリプトはMastodonのDeck UI(上級者向けUIともいいます)に表示されるトゥートに引用ボタンを作成します。

引用ボタンを押した際には、引用する際に必要な文字列を生成し、クリップボードにコピーします。

インストール・初期設定

  1. 他のユーザスクリプト同様、インストールします。
  2. (fedibird.com、best-friend.chat、pawoo.net、mstdn.jp以外のユーザは必須設定)@matchを追記します。具体的には自分の使っているインスタンスのurlを記述します。例えば、mstdn.sublimer.meを使っているユーザは https://mstdn.sublimer.me/deck/* を追加してください。
  3. (任意設定)ボタンを押したさいにどのようなフォーマットでコピーされるかを指定できます。ユーザスクリプトエンジン(Tampermonkeyやvioletmonkeyなど)の設定からこのユーザスクリプトの設定を開き、"template"に値をセットしてください。Violetmonkeyではこのユーザスクリプトの設定を開いて、「値」タブを開いてください。そして、{"template": "QT: {{url}}"}をペーストするとボタンを押したときに「QT: https://mstdn.sublimer.me/@eniehack/112508686546674928」がコピーされるようになります。

使い方

  1. 引用したい投稿をみつけます
  2. 丸のついたボタンをクリックします(画像1枚目)
  3. トゥート入力欄へ貼り付けます(画像2枚目。画像は貼り付けた後のトゥート入力欄)

実装予定の機能

今のところ特になし

既知のバグ

  • ときたまエラーが出て実行が止まる

ライセンス等

このユーザスクリプトはMIT/X11 Licenseでライセンスされます。

また、ソースコードはGitHubにも公開されています。