Back Quotation

技術系のネタとかメモとかテキトーに書いていく

インプレゾンビに効率的に効果的にダメージを与えたい

効果的にダメージ与えるなら、

  1. サブスクに入っているインプレゾンビ
    認証済みアカウントのインプレゾンビを優先的にスパム報告&ブロック
  2. 怪しいフォロワー(ナイト系,社長,副業,投資)をブロック

この拡張機能を入れて

forest.watch.impress.co.jp

usercss拡張機能入れて 認証済みアカウントを、より目立たせる

[data-testid="User-Name"]:has([aria-label="認証済みアカウント"]) {
  background-color: #333399;
}

YouTubeライブチャットをポップアウトするブックマークレット

Youtube chat popup ← これをブックマーク

動画再生中に実行するとチャットをポップアウトする

YouTubeチャンネルのRSS取得するブックマークレット

Youtube Channel Feed ← これをブックマーク

チャンネルのページ https://www.youtube.com/@userName
動画再生中 https://www.youtube.com/watch?
で実行したら alert でRSSのURLを表示

Blueskyのモデレーションリスト

とりま、使ってるやつ(自分で作ったのも含む)

feedのノイズ除去0 (bot/なりすまし/非公式 他)
feedのノイズ除去1 (osmjp関連)
feedのノイズ除去2 (BlossomsArchive)
feedのノイズ除去3 (お金/インプレ稼ぎ目的)
名前を呼んではいけないあの人
AI生成、なりすまし
フォロバ100系

ミュートワード、ミュートタグ機能が追加されたので
「フォロバ100」
はワード&タグでブロックするようにした

ターミナルプロンプトの書き換え

前提

フォントは CaskaydiaCove NF Mono を使用。
使用したい記号とかを検索するなら Nerd Fonts から検索できる

どちらも、Gitがインストール済みであることを前提としている

Bash

Bash環境に適用した結果
.bashrcに追記

if [ -f ~/.git-completion.sh ]; then
    source ~/.git-completion.sh
fi
if [ -f ~/.git-prompt.sh ]; then
    source ~/.git-prompt.sh
fi
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
GIT_PS1_SHOWSTASHSTATE=true
GIT_PS1_SHOWUPSTREAM=auto

PS1='\[\e[44m\]  \u \[\e[34;49m\]\[\e[37;49m\]\[\e[30;47m\] \t \[\e[0;37m\]\[\e[36m\]\[\e[30;46m\] \w \[\e[0;36m\] \[\e[0m\]$(__git_ps1 "\[\e[33;49m\]\[\e[30;43m\]  %s \[\e[33;49m\]")\[\033[00m\]\n '

PowerShell

PowerShellに適用した結果

$profile に追記

function prompt {
    $promptSymbol = "$("") "
    $user = $env:UserName
    $time = Get-Date -Format "HH:mm"
    $workingDirectory = Get-Location
    $gitBranch = ""
    $gitStatus = ""

    if (Test-Path ".git") {
        $gitBranch = & git rev-parse --abbrev-ref HEAD
        $gitStatus = & git status --porcelain --untracked-files=no | Measure-Object | Select-Object -ExpandProperty Count
    }

    if ($gitStatus -eq 0) {
        $gitStatusSymbol = " $gitBranch"
    } else {
        $gitStatusSymbol = " $gitBranch +$gitStatus"
    }

    Write-Host -NoNewline -ForegroundColor White -BackgroundColor Blue "  $user"
    Write-Host -NoNewline -ForegroundColor Blue ""
    Write-Host -NoNewline -ForegroundColor White ""
    Write-Host -NoNewline -ForegroundColor Black -BackgroundColor White "$time"
    Write-Host -NoNewline -ForegroundColor White ""
    Write-Host -NoNewline -ForegroundColor Cyan ""
    Write-Host -NoNewline -ForegroundColor Black -BackgroundColor Cyan "$workingDirectory"
    Write-Host -NoNewline -ForegroundColor Cyan ""
    if (Test-Path ".git") {
        Write-Host -NoNewline -ForegroundColor Yellow " "
        Write-Host -NoNewline -ForegroundColor Black -BackgroundColor Yellow " $gitStatusSymbol "
        Write-Host -NoNewline -ForegroundColor Yellow ""
    }
    Write-Host " "
    " "
}

Linux 環境メモ

arch

新規ユーザ用 テンプレ

su 
cd /etc/skel

curl -o .git-prompt.sh     https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
curl -o .git-completion.sh     https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash

/etc/skel/.bashrc に追加

alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias libup='pacman -Syu'

if [ -f ~/.git-completion.sh ]; then
    source ~/.git-completion.sh
fi
if [ -f ~/.git-prompt.sh ]; then
    source ~/.git-prompt.sh
fi
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
GIT_PS1_SHOWSTASHSTATE=true
GIT_PS1_SHOWUPSTREAM=auto

PS1='\[\e[44m\]  \u \[\e[34;49m\]\[\e[37;49m\]\[\e[30;47m\] \t \[\e[0;37m\]\[\e[36m\]\[\e[30;46m\] \w \[\e[0;36m\] \[\e[0m\]$(__git_ps1 "\[\e[33;49m\]\[\e[30;43m\]  %s \[\e[33;49m\]")\[\033[00m\]\n '

font: CaskaydiaCove NF Mono

YouTube Liveのチャット欄のカスタマイズ

YouTube Liveのチャット欄がちょいちょい使いづらくなってきていたのでカスタマイズしてみた。 あとでいろいろ調整する。

使用しているアドオンは stylebot

https://www.youtube.com/live_chat

/* emoji一覧の表示範囲を広げる */
yt-emoji-picker-renderer.yt-live-chat-message-input-renderer {
  height: 400px !important;
  min-height: 0 !important;
  max-height: 400px !important;
}

/* アプデでsuper stickerが先頭にきていて邪魔だったからそれを消す */
yt-emoji-picker-super-sticker-category-renderer {
  display: none !important;
}

/* emoji、メンバーバッジのサイズを変更 */
div#emoji > img,
.yt-live-chat-author-badge-renderer,
.emoji.yt-formatted-string.style-scope.yt-live-chat-text-message-renderer {
  --icon-size: 32px !important;
    width: var(--icon-size);
    height: var(--icon-size);
}

https://www.youtube.com

/* チャット表示枠を広げる */
ytd-live-chat-frame.style-scope.ytd-watch-flexy {
  height: 90vh;
}
.emoji.yt-formatted-string.style-scope.yt-live-chat-text-message-renderer {
    width: 32px!important;
    height: 32px!important;
}