Twitterを少し便利に。

私の作ったスクリプトをまとめたもの。と追加要素。

Author
ゆにてぃー
Daily installs
40
Total installs
378
Ratings
5 1 1
Version
1.0.1.24
Created
2023-10-25
Updated
2024-05-17
License
MIT
Applies to

Twitterのドメインがtwitter.comからx.comになってしまったことについて。

2024/05/17 にてTwitterのデフォルトのドメインが変更されてしまい、それに伴いスクリプトの設定がリセットされてしまった方がいると思います。
ドメインが変わるとどうしてもブラウザのセキュリティ上の問題で設定を引き継げないのでご迷惑をおかけしますが、もう一度設定を行うか、twitter.comの方にアクセスし、このスクリプトの設定画面から設定をエクスポートすることで以前と同じように使うことができると思います。

Change of Twitter's default domain from twitter.com to x.com.

As of 2024/05/17, Twitter's default domain has been changed, which may have reset the settings for some users' scripts.
Due to browser security issues that inevitably arise with domain changes, we apologize for the inconvenience, but you will need to reconfigure your settings or access twitter.com and export your settings from the script's settings page to continue using it as before.

Twitterを少し便利に。


このスクリプトは私がTwitter用に作成したスクリプトをまとめたものです。
過去に制作したスクリプト以外の機能強化版です。
新しい機能もあります。
設定画面から機能を有効にしなければなにも起こりません。


機能紹介(機能名をクリックすると展開されます)


あなたのツイートはどこから?

「あなたのツイートはどこから?」についてです。
  • ツイートの作成クライアントの表示
  • どのクライアントからツイートされたかを表示します。

    例としては「Twitter Web App」、「Twitter for Android」などです。
  • 動画のURLの表示
  • Twitterの動画は通常直リンを取得することができませんが、添付されている動画の最も画質の良いmp4ファイルへのリンクを表示します。

    それにより動画のダウンロードも可能になります。

    参考スクリーンショット





長いツイートをTLで展開
「長いツイートをTLで展開」についてです。
Twitterに課金することで通常よりも長い文面のツイート(Note Tweet)ができるようになります。
しかし、通常それはツイートをクリックして詳細表示しなければ全文読むことができないのでそれを解消する機能です。
  • TLにあるツイートを展開

  • 参考スクリーンショット

    Before

    Before



    After

    After
  • 引用されたツイートも展開できます

  • 参考スクリーンショット

    Before

    Before



    After

    After




PixivのリンクをTweetに添えて

「PixivのリンクをTweetに添えて」についてです。
画像などがあるツイートの下側にその人のプロフィール欄にあるリンクから探し出したPixivのリンクを表示します。
Fanboxなどのファンサイトの中や、litlinkのようなサービスからも探します。
  • 画像などがあるツイートの下側に表示

  • 参考スクリーンショット

  • プロフィール欄の下に表示

  • 参考スクリーンショット





返ってこい!リツイート欄!

「返ってこい!リツイート欄!」についてです。
詳細表示したツイートの引用などの一覧画面を簡単に表示できなくなったのでそれを解消する機能です。
  • 詳細表示したツイートの下側に表示します

  • 参考スクリーンショット





こっそりいいね

「こっそりいいね 」についてです。
誰かがリツイートしたツイートがTLに流れてきたとき、それを「いいね」するとリツイートした人にも通知が行ってしまうので、それを回避するためのボタンを作る機能です。
この機能でいいねしたあと、ツイートが画面外に消えると再びそのツイートを表示したとき見かけ上いいねができてないように表示されますが実際にはできているので安心してください。
  • リツイートされたツイートのいいね欄の右側にボタンを表示します

  • 参考スクリーンショット





WebhookがTweetを連れてくるわ今日も

「WebhookがTweetを連れてくるわ今日も」についてです。
この機能はツイートをDiscordにWebhookを使い、送信します。
自身のAPIを使うため、送信するツイートが鍵垢のツイートでも送ることができます。
画像などメディアをダウンロードして送信し直すので保存用や魚拓としても利用できます。
  • ツイートの下部に送信するためのプルダウンやボタンを表示します

  • 参考スクリーンショット

  • 送信してみた例

  • 参考スクリーンショット


    左の方のプルダウンリストを「true」にすると引用ツイートも送信できる。
    右の方のプルダウンリストを「true」にすると長いツイート(Note Tweet)も送信できる。

    参考スクリーンショット





フォロワーを直接表示

「フォロワーを直接表示」についてです。
現在Twitterではプロフィール欄などからフォロワーをクリックして表示すると、「認証済みのフォロワー」というタブが開きますが通常のフォロワー欄を最初から開くようにする機能です。


アナリティクスを非表示にする

「アナリティクスを非表示にする」についてです。
ツイートに表示されてるツイートを表示した回数を隠すための機能です。


ツイートを共有ボタンを復活させる(モバイル用)

「ツイートを共有ボタンを復活させる(モバイル用) 」についてです。
最近の改変でモバイル版のTwitter Web Appの共有ボタンがTLで表示されなくなってしまいました。
この機能では共有ボタンを追加し、クリックするだけでそのツイートのリンクをコピーできるようにします。

参考スクリーンショット

Before

Before

→   

After

After



設定


設定の開き方
  1. ブラウザの拡張機能の拡張機能の一覧からTampermonkeyをクリックする
  2. このスクリプトの名前の下にある「script settings」をクリックする

  3. 参考スクリーンショット




設定項目


    全体の設定

    「全体」というタブの設定についてです。

    • 機能の有効化
    • 先程の設定画面の「全体」タブのトグルボタンをクリックし、「Save」ボタンを押す。
    • 言語設定
    • 「Language」の右のプルダウンリストから変えたい言語にする。


    機能ごとの設定
    機能ごとの設定についてです。
    • リスト1
    • リスト2
    • リスト3





Make Twitter a bit more convenient.


This script is a compilation of scripts I created for Twitter.
It's an enhanced version with features beyond those I've made in the past.
New features are also included.
Nothing will happen unless you enable the functions from the settings screen.


Feature Introduction (Click the feature name to expand)


Hello tweet where are you from

About 'Hello tweet where are you from':
  • Display of the tweet creation client
  • It shows from which client the tweet was posted, such as "Twitter Web App", "Twitter for Android", etc.
  • Display of video URLs
  • Normally, it's not possible to obtain direct links to Twitter videos, but this feature displays a link to the highest quality mp4 file of the attached video.

    This allows for the video to be downloaded as well.

    Reference Screenshot





Note Tweet expander
About 'Note Tweet expander':
By subscribing to Twitter, you can tweet longer text (Note Tweet) than usual.
However, normally you cannot read the full text without clicking on the tweet to view it in detail, so this feature solves that problem.
  • Expands tweets in the TL

  • Reference Screenshot

    Before

    Before



    After

    After
  • Quoted tweets can also be expanded

  • Reference Screenshot

    Before

    Before



    After

    After




Show me your Pixiv

About 'Show me your Pixiv':
Tweets with images will display a link to the Pixiv profile found in the user's profile section.
It also searches from fan sites like Fanbox or services like litlink.
  • Displayed under tweets with images

  • Reference Screenshot

  • Displayed under the profile section

  • Reference Screenshot





Engagement Restorer

About 'Engagement Restorer':
It has become difficult to easily display the overview screen of quotes and such for tweets viewed in detail, so this feature solves that problem.
  • Displayed under the detailed view of tweets

  • Reference Screenshot





sneakilyFavorite

About 'sneakilyFavorite':
When a tweet retweeted by someone appears in your TL, and you 'like' it, the person who retweeted it also receives a notification. This feature creates a button to avoid that.
Even after you 'like' a tweet using this feature and the tweet disappears off-screen, when it reappears it may look as if it hasn't been 'liked', but rest assured it has been.
  • A button is displayed to the right of the 'like' section of the retweeted tweet

  • Reference Screenshot





webhook brings tweets to discord

About 'webhook brings tweets to discord':
This feature sends tweets to Discord using a webhook.
Since it uses your own API, you can send tweets even if they are from private accounts.
It downloads and resends media such as images, so it can be used for saving or as a web archive.
  • A dropdown and button for sending are displayed under the tweet

  • Reference Screenshot

  • An example of a sent tweet

  • Reference Screenshot


    If you set the left dropdown to 'true', you can also send quoted tweets.
    If you set the right dropdown to 'true', you can also send long tweets (Note Tweet).

    Reference Screenshot





showFollowers

About 'showFollowers':
Currently on Twitter, when you click on followers from the profile section, a tab for 'Verified followers' opens, but this feature makes it so that the regular followers section opens right away.


hideAnalytics

About 'hideAnalytics':
This function hides the number of times a tweet has been viewed that is displayed on the tweet.


shareTweet Restorer for mobile

About 'shareTweet Restorer for mobile':
The share button on the mobile version of the Twitter Web App has recently disappeared from the TL.
This function adds a share button, and with a single click, you can copy the link to that tweet.

Reference Screenshot

Before

Before

→   

After

After


Settings


How to open settings
  1. Click on Tampermonkey from the list of browser extensions
  2. Click on 'script settings' under the name of this script

  3. Reference Screenshot




Settings items


    General settings

    About the 'General' tab settings:

    • Enabling features
    • Click the toggle button in the 'General' tab of the settings screen and press the 'Save' button.
    • Language settings
    • Change to the desired language from the dropdown list to the right of 'Language'.


    Individual feature settings
    About individual feature settings:
    • List 1
    • List 2
    • List 3