0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WEB版Twitterの右カラムがうざいのでChrome拡張で消す

Posted at

WEB版twitterの右カラムにはトレンドとともに、見たくない(既にブロック・ミュート済)メディアの記事も登場する。見るのもしんどい上、目につくのも嫌なので全部消してやることにした。

準備するもの

基本的に拡張機能用のフォルダを作り、
manifest.json
と実働ファイル
script.js
を空のファイルで配置しておく。

手間をかけたくないのでJqueryを使うので、予めダウンロードしておく。

manifest.json
{
    "manifest_version": 2,
    "name": "HideTwitterSidebar",
    "version": "1",
    "content_scripts": [
        {
            "matches": ["https://twitter.com/*"],
            "js": ["jquery-3.min.js","script.js"]
        }
    ]
}

長々書くのは面倒なのでシンプルに行こう。

script.js
$('.r-1hycxz').hide();

あとはChromeの拡張機能管理から「パッケージ化されていない拡張機能を読み込む」でフォルダを選択しておしまい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?