Skip to content

Instantly share code, notes, and snippets.

View yusukesaitoh's full-sized avatar

Yusuke Saitoh yusukesaitoh

View GitHub Profile
@yusukesaitoh
yusukesaitoh / calm-bluesky.css
Last active February 7, 2024 15:28
おだやかBluesky - Blueskyのタイムラインでリプライ数、リポスト数、いいね数を非表示にするCSS
/* 一覧でリプライ数を非表示 */
button[data-testid="replyBtn"] > div {
display: none;
}
/* 一覧でリポスト数を非表示 */
div[data-testid="repostCount"] {
display: none;
}
/* 一覧でいいね数を非表示 */
button[data-testid="likeBtn"] > div {
@yusukesaitoh
yusukesaitoh / hide-for-you-tab.css
Created May 15, 2023 13:10
StylusにコピペするとTwitterのおすすめタブが隠れるCSS
@-moz-document url-prefix(https://twitter.com/home) {
div[data-testid^="ScrollSnap-List"] > div:first-child {
width: 0px;
flex-grow: 0;
visibility: hidden;
}
}
@yusukesaitoh
yusukesaitoh / !anonymous-twitter.md
Last active June 4, 2024 06:14
Twitterから名前と画像を隠すCSS
@yusukesaitoh
yusukesaitoh / modest-trend.css
Created May 27, 2020 16:43
Twitterのトレンドを見たくない、でも全く見ないとちょっと不安という時、右カラムのトレンドを控えめなトーンに調整するCSSです。各項目にコメントを付けているので、自分に必要なものを選んでコピペするとよさそう。
/* 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;
}
@yusukesaitoh
yusukesaitoh / mute_replies.py
Last active April 27, 2020 09:54
指定ツイートにリプライしたユーザーを一括ミュートするスクリプト
import twitter
import sys
import time
# Twitterに開発者登録、Appsを作成して必要な情報を取得
ACCESS_TOKEN = ""
ACCESS_TOKEN_SECRET = ""
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
@yusukesaitoh
yusukesaitoh / odayaka-twitter.css
Last active April 23, 2023 06:05
穏やかな気持ちでTwitterを使いたいのでブラウザのユーザースタイルシートに追記した内容(Update: 2020.05.24)
/* 右カラムからキーワード検索とフッター以外を非表示 */
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
}
@yusukesaitoh
yusukesaitoh / ViewController.m
Last active August 29, 2015 14:07
iOS8でNSFileManagerのcreateFileAtPath:が失敗する
#import "ViewController.h"
@implementation ViewController
- (void)viewDidLoad
{
/*
on iOS8 NSFileManager, -createFileAtPath: is not work after -changeCurrentDirectoryPath: correctly.
-contentsAtPath: and -removeItemAtPath: work fine.