- アカウントを隠して純粋にツイートの内容を読む
下記のCSSをブラウザ拡張(Stylusなど)でTwitter用にコピペ
| #import "ViewController.h" | |
| @implementation ViewController | |
| - (void)viewDidLoad | |
| { | |
| /* | |
| on iOS8 NSFileManager, -createFileAtPath: is not work after -changeCurrentDirectoryPath: correctly. | |
| -contentsAtPath: and -removeItemAtPath: work fine. | |
| /* 右カラムからキーワード検索とフッター以外を非表示 */ | |
| div[data-testid=sidebarColumn]>div>div>div>div>div.css-1dbjc4n>div:not(:first-child):not(:last-child):not(.r-1tlfku8):not(.r-18bvks7):not(.r-1kqtdi0):not(.r-195d4m8):not(.r-ahm1il):not(.r-1h3ijdo):not(.r-1mwlp6a):not(.r-1ninfw3) { | |
| display: none !important | |
| } | |
| /* 左カラムから「話題を検索」を非表示 */ | |
| a[data-testid=AppTabBar_Explore_Link] { | |
| display: none !important | |
| } |
| import twitter | |
| import sys | |
| import time | |
| # Twitterに開発者登録、Appsを作成して必要な情報を取得 | |
| ACCESS_TOKEN = "" | |
| ACCESS_TOKEN_SECRET = "" | |
| CONSUMER_KEY = "" | |
| CONSUMER_SECRET = "" |
| /* Macでフォントがメイリオになるのを回避する */ | |
| .r-1tl8opc { | |
| font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif; | |
| } | |
| /* サイドバーのブロック見出しfontを控えめに */ | |
| div[data-testid=sidebarColumn] div.r-1vr29t4 { | |
| font-size: 1rem; | |
| font-weight: 400; | |
| } |
下記のCSSをブラウザ拡張(Stylusなど)でTwitter用にコピペ
| @-moz-document url-prefix(https://twitter.com/home) { | |
| div[data-testid^="ScrollSnap-List"] > div:first-child { | |
| width: 0px; | |
| flex-grow: 0; | |
| visibility: hidden; | |
| } | |
| } |
| /* 一覧でリプライ数を非表示 */ | |
| button[data-testid="replyBtn"] > div { | |
| display: none; | |
| } | |
| /* 一覧でリポスト数を非表示 */ | |
| div[data-testid="repostCount"] { | |
| display: none; | |
| } | |
| /* 一覧でいいね数を非表示 */ | |
| button[data-testid="likeBtn"] > div { |