Skip to content

Instantly share code, notes, and snippets.

@khlizard
khlizard / X_hide_unfollow.user.js
Last active October 7, 2026 00:56
Removes negative actions (Unfollow / Mute / Block / Report / Request Community Note) from the post "..." menu to prevent accidental taps. Profile page follow buttons and menus are left untouched.
// ==UserScript==
// @name X Hide Unfollow in Post Menu
// @name:ja X ポストメニューの「フォローを解除」を非表示
// @namespace https://gist.github.com/khlizard
// @version 1.1.0
// @description Removes negative actions (Unfollow / Mute / Block / Report / Request Community Note) from the post "..." menu to prevent accidental taps. Profile page follow buttons and menus are left untouched.
// @description:ja ポスト右上「…」メニューから、フォロー解除・ミュート・ブロック・報告・コミュニティノートのリクエストを非表示にし、誤操作を防ぐ。プロフィールページのフォローボタンやメニューには影響しない
// @author tokage
// @license MIT
// @match https://x.com/*
@khlizard
khlizard / x-media-only-filter.user.js
Last active October 2, 2026 04:20
Show only posts with media (images/videos/GIFs) on the timeline. Hides reposts and quote posts without their own media.
// ==UserScript==
// @name X Media-Only Timeline
// @name:ja X メディアポストのみ表示
// @namespace https://gist.github.com/khlizard
// @version 1.1.0
// @description Show only posts with media (images/videos/GIFs) on the timeline. Hides reposts and quote posts without their own media.
// @description:ja タイムラインをメディア(画像・動画・GIF)付きポストのみに絞り込むトグル。リポストと、自身にメディアのない引用リポストは非表示
// @author tokage
// @license MIT
// @match https://x.com/*
@khlizard
khlizard / x-oneway-follow-filter.user.js
Last active October 2, 2026 04:22
Show only accounts you follow that don't follow you back, on your own Following page.
// ==UserScript==
// @name X One-way Follow Filter
// @name:ja X 片思いフォロー抽出
// @namespace https://gist.github.com/khlizard
// @version 1.0.1
// @description Show only accounts you follow that don't follow you back, on your own Following page.
// @description:ja 自分の「フォロー中」ページで、相手からフォローされていない(片思い)ユーザーだけを表示するトグル
// @author tokage
// @license MIT
// @match https://x.com/*
@khlizard
khlizard / booth_image_keyboard.user.js
Last active June 30, 2026 11:45
Boothの画像スライダーをキーボード操作します
// ==UserScript==
// @name Booth 画像スライダー キーボード操作
// @namespace https://github.com/khlizard
// @version 1.2.1
// @description Booth商品ページで左右矢印キーで画像を切り替え、ESCでモーダルを閉じる
// @author tokage
// @match https://booth.pm/*/items/*
// @match https://*.booth.pm/items/*
// @downloadURL https://gist.github.com/khlizard/cefebf4996c67ec9fe4490e2116ab34b/raw/booth_image_keyboard.user.js
// @updateURL https://gist.github.com/khlizard/cefebf4996c67ec9fe4490e2116ab34b/raw/booth_image_keyboard.user.js
@khlizard
khlizard / disable-ppl-ctrl-i-shortcut.user.js
Last active September 25, 2026 05:44
Perplexity: Disable Ctrl+I Shortcut
// ==UserScript==
// @name Perplexity: Disable Ctrl+I Shortcut
// @name:ja Perplexity Ctrl+I ショートカット無効化
// @namespace https://gist.github.com/khlizard
// @version 1.2.0
// @description Completely disables the Ctrl+I (Cmd+I) shortcut on Perplexity, including while an IME is composing.
// @description:ja Perplexityのページ上でのCtrl+I(Cmd+I)ショートカットを、日本語入力中も含めて完全に無効化します。
// @author tokage
// @license MIT
// @match https://www.perplexity.ai/*
@khlizard
khlizard / github-default-private.user.js
Last active May 22, 2026 01:50
[Tampermonkey] Automatically selects "Private" when creating a new GitHub repository. / GitHubの新規リポジトリ作成時に自動で「Private」を選択
// ==UserScript==
// @name GitHub Default Private
// @namespace http://tampermonkey.net
// @version 1.7
// @description GitHubの新規リポジトリ作成時に自動でPrivateを選択し、メニューを閉じる
// @author You
// @match https://github.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
@khlizard
khlizard / img2vrcsticker.cmd
Created January 26, 2025 07:12
画像をVRCのステッカー用にするバッチファイル Imagemagick使用
@echo off
cd /d %~dp0
setlocal EnableDelayedExpansion
@REM ImageMagickのパスを環境に合わせて各自設定
set PATH=%PATH%;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI
if "%~1" == "" (
echo 画像ファイルをドラッグ&ドロップしてください。
pause
@khlizard
khlizard / img2pdf.cmd
Last active August 7, 2024 01:10
Image to PDF. It is recommended to put it in SendTo.
@echo off
cd %~dp0
python img2pdf.py %*
echo.
@REM pause
timeout /t 3
=begin
## 概要
iTunesでAAC形式のファイル(.m4a)を、ffmpegで再エンコードするスクリプトです
Windows 11 22H2 以降 + Rekordboxで発生する音量バグ対策として作成しました
参考:https://twitter.com/vrctokage/status/1733199629989347811 https://note.com/khlizard/n/n56dd6650f1e5
実行にはRubyとffmpegが必要です
## 設定項目
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
public class TopazChatVRCDN : UdonSharpBehaviour
{
[Header("PlayerとAnimator (両方VideoPlayer自身)")]