Skip to content

Instantly share code, notes, and snippets.

@roflsunriz
roflsunriz / twitter_mute_retweets.user.js
Last active May 24, 2025 07:03
twitter_mute_retweets : 閲覧中のユーザがつぶやいていないツイートを非表示にする
// ==UserScript==
// @name Hide retweets
// @name:ja リツイート非表示
// @namespace twitter_mute_retweets
// @version 1.1
// @description Hide tweets not belonging to currently shown user
// @description:ja 閲覧中のユーザがつぶやいていないツイートを非表示にする
// @author roflsunriz
// @license MIT
// @match https://x.com/*
@roflsunriz
roflsunriz / twitter_mute_filter.user.js
Last active May 24, 2025 07:12
twitter_mute_filter : 公式ミュート機能は単語(とTwitterが認識した語句)にしか効きません。ブラウザ版Twitterでこれを解決します。正規表現対応、設定メニュー付き。
// ==UserScript==
// @name Twitter文章完全ミュート
// @namespace twitter_mute_filter
// @version 1.2
// @description 公式ミュート機能は単語(とTwitterが認識した語句)にしか効きません。ブラウザ版Twitterでこれを解決します。正規表現対応、設定メニュー付き。シャドウDOM対応でページスタイルと衝突しません。
// @author roflsunriz
// @match https://twitter.com/*
// @match https://x.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant GM_getValue
@roflsunriz
roflsunriz / twitter_media_filter.user.js
Last active May 24, 2025 07:19
twitter_media_filter : タイムライン/リスト/詳細ページで画像/動画を含まないツイートを非表示にする
// ==UserScript==
// @name Twitter/X Media Filter
// @namespace TwitterMediaFilter
// @version 1.2
// @description タイムライン/リスト/詳細ページで画像/動画を含まないツイートを非表示にする
// @author roflsunriz
// @match https://twitter.com/*
// @match https://x.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant GM_getValue
@roflsunriz
roflsunriz / player_jiggle.pyw
Created May 10, 2025 12:04
player_jiggle : Jiggle software for player
import tkinter as tk
from tkinter import ttk
import threading
import time
import importlib
import subprocess
import sys
# 必要なパッケージの自動インストール
def install_package(package):
@roflsunriz
roflsunriz / chatgpt-copy-summary.user.js
Last active May 24, 2025 07:56
chatgpt-copy-summary : ChatGPTのサマリーを「Q.[ユーザーの入力] A.[ChatGPTの応答先頭300文字]... [URL]」形式でコピーします
// ==UserScript==
// @name ChatGPT サマリーコピー
// @namespace chatgpt-copy-summary
// @version 1.1
// @description ChatGPTのサマリーを「Q.[ユーザーの入力] A.[ChatGPTの応答先頭300文字]... [URL]」形式でコピーします
// @author roflsunriz
// @match https://chatgpt.com/*
// @match https://chat.openai.com/*
// @match https://chat.com/*
// @icon https://chat.openai.com/favicon.ico
@roflsunriz
roflsunriz / chatgpt-generation-complete.user.js
Last active May 24, 2025 07:57
chatgpt-generation-complete : ChatGPT の回答生成が完了したらプッシュ通知でお知らせ
// ==UserScript==
// @name ChatGPT 生成完了通知
// @namespace chatgpt-generation-complete
// @version 1.2
// @description ChatGPT の回答生成が完了したらプッシュ通知でお知らせ
// @author roflsunriz
// @match https://chatgpt.com/*
// @match https://chat.openai.com/*
// @match https://chat.com/*
// @icon https://chat.openai.com/favicon.ico
@roflsunriz
roflsunriz / twitter_thread_copier.user.js
Last active May 30, 2025 21:14
twitter_thread_copier : Copy tweets and replies from a Twitter/X thread with formatting
// ==UserScript==
// @name Twitter Thread Copier
// @namespace twitterThreadCopier
// @version 4.1
// @description Copy tweets and replies from a Twitter/X thread with formatting, supports auto-expanding "Show more" texts, fixing shortened URLs and including quoted tweets
// @author roflsunriz
// @match https://twitter.com/*
// @match https://x.com/*
// @connect translate.googleapis.com
// @connect *.googleapis.com
@roflsunriz
roflsunriz / VOICEVOX_SETUP.md
Last active May 8, 2025 13:26
training_app : 自分専用筋トレアプリ

ずんだもん音声でのトレーニングアプリのセットアップ

VoiceVoxのセットアップ

筋トレアプリで「ずんだもん」の声を使用するには、VoiceVoxという音声合成ソフトウェアを別途インストールして実行する必要があります。

1. VoiceVoxのダウンロードとインストール

  1. VoiceVoxの公式サイトからソフトウェアをダウンロードします:
@roflsunriz
roflsunriz / llm_context_compression.pyw
Created April 23, 2025 13:54
LLM context compression GUI : This program provides a GUI interface for compressing text using LZMA2 compression. It displays compression ratios and provides the compressed result with decompression instructions for LLMs.
#!/usr/bin/env python3
"""
LLM context compression GUI
This program provides a GUI interface for compressing text using LZMA2 compression.
It displays compression ratios and provides the compressed result with decompression
instructions for LLMs.
"""
import lzma
import base64
@roflsunriz
roflsunriz / mangaViewer.user.js
Last active May 25, 2025 02:58
mangaViewer : ブック風マンガビューア
// ==UserScript==
// @name ブック風マンガビューア
// @namespace bookStyleMangaViewer
// @version 7.3
// @description ウェブページの画像を見開き形式で表示するビューア(シャドウDOM対応)
// @author roflsunriz
// @match *://*/*
// @grant GM_registerMenuCommand
// @require https://unpkg.com/react@18/umd/react.production.min.js
// @require https://unpkg.com/react-dom@18/umd/react-dom.production.min.js