Chrome拡張機能「Redirector」を使用して「x.com」を「twitter.com」にする設定

x.comにリダイレクトされるTwitter(現X)を、twitter.comに戻すオプション「?mx=1」を拡張機能で自動付加する設定。

※2024/05/21JST時点での仕様に基づいており、Twitter(現X)の仕様が変更される可能性には留意されたし。

前提

Chrome拡張機能の「Redirector」を使用する。

Redirector
Automatically redirect content based on user-defined rules.

設定内容

設定0a,0b

まずは、他サイトの共有ボタンからツイートする場合の設定。
これが抜けると、共有ボタンからツイートする画面を開く際にエラーが発生する。

Description:    share tweet 1
Redirect:       https://x.com/intent/*
to:             https://twitter.com/intent/$1&mx=1
excluding:      https://twitter.com/intent/.*mx=1
Example:        https://x.com/intent/tweet?url=https%3A%2F%2Fyoutu.be%2FGf0E06Dd3hU%3Fsi%3DYf-fMS84aswo9-Kb&text=%5BWoWS+CBT%5D+Destroyer+and+Destroyed+Turrets&via=YouTube&related=YouTube%2CYouTubeTrends%2CYTCreators → https://twitter.com/intent/tweet?url=https%3A%2F%2Fyoutu.be%2FGf0E06Dd3hU%3Fsi%3DYf-fMS84aswo9-Kb&text=%5BWoWS+CBT%5D+Destroyer+and+Destroyed+Turrets&via=YouTube&related=YouTube%2CYouTubeTrends%2CYTCreators&mx=1
Applies to:     Main window (address bar)
Description:    share tweet 2
Redirect:       https://x.com/share*
to:             https://twitter.com/share$1&mx=1
excluding:      https://twitter.com/share.*mx=1
Example:        https://x.com/share/text?url=+&text=WoT_YC%0Ahttps%3A%2F%2Fwww.nicovideo.jp%2Fmylist%2F33497492%3Fref%3Dpc_mypage_mylist_tw%0A%0A%23%E3%83%8B%E3%82%B3%E3%83%8B%E3%82%B3%E5%8B%95%E7%94%BB → https://twitter.com/share/text?url=+&text=WoT_YC%0Ahttps%3A%2F%2Fwww.nicovideo.jp%2Fmylist%2F33497492%3Fref%3Dpc_mypage_mylist_tw%0A%0A%23%E3%83%8B%E3%82%B3%E3%83%8B%E3%82%B3%E5%8B%95%E7%94%BB&mx=1
Applies to:	Main window (address bar)

設定1

次に、x.comをtwitter.comに戻す設定。

Description: Remember "twitter"
Redirect:    https://x.com/*
to:          https://twitter.com/$1?mx=1
excluding:   https://twitter.com/.*mx=1
Example:     https://x.com/aaa → https://twitter.com/aaa?mx=1
Applies to:  Main window (address bar), IFrames

設定2

最後に、twitter.comをtwitter.comのままにする設定。

Description: Never Forget "twitter"
Redirect:    https://twitter.com/*
to:          https://twitter.com/$1?mx=1
excluding:   https://twitter.com/.*mx=1
Example:     https://twitter.com/aaa → https://twitter.com/aaa?mx=1
Applies to:  Main window (address bar), IFrames

インポート用json

次のjsonをダウンロードしてインポートしてもok。

redirector_remember_twitter.json
タイトルとURLをコピーしました