Skip to content

Instantly share code, notes, and snippets.

@roflsunriz
roflsunriz / JumpToPCnico.user.js
Last active May 24, 2025 07:58
JumpToPCnico : ニコニコ動画のモバイルページからPCページへ簡単に移動できるユーザースクリプト
// ==UserScript==
// @name JumpToPCnico
// @namespace jumpToPCnico
// @version 1.4
// @description ニコニコ動画のモバイルページからPCページへ簡単に移動できるユーザースクリプト
// @author roflsunriz
// @match *://sp.nicovideo.jp/*
// @match *://sp.seiga.nicovideo.jp/*
// @match *://sp.*.nicovideo.jp/*
// @match *://sp.nicovideo.jp/
@roflsunriz
roflsunriz / speechRecognition_plan.md
Last active May 8, 2025 13:15
speech_recognition_app : 日本語と英語対応の音声認識アプリ,Cursorのプロンプト入力用

音声認識プログラム 実装仕様書

概要

本プログラムは、Pythonを用いてマイクからの音声をリアルタイムで認識し、テキストに変換するGUIアプリケーションです。英語と日本語の音声認識に対応し、認識結果をテキストフィールドに表示、クリップボードへのコピー、プレーンテキストファイルへの保存が可能です。ユーザビリティを向上させるため、直感的なアイコンボタンや動作ログ表示を備えます。

開発環境

  • 言語: Python 3.x
  • ライブラリ:
    • speech_recognition: 音声認識
  • pyperclip: クリップボード操作
@roflsunriz
roflsunriz / filterMatomeUpdate_plan.md
Last active June 16, 2025 21:51
filter_matome : 「フィルタまとめ」パッケージ更新ツール

「フィルタまとめ」パッケージ更新ツール 実装仕様書

1. 概要

本プログラムは、「フィルタまとめ」パッケージの更新作業を効率化するためのPythonベースのGUIツールです。
NicoCache_nlディレクトリから選択したファイル・フォルダをNicoCache_nl other内のtest_nlFiltersフォルダにコピーし、その後test_nlFiltersフォルダを7z形式でアーカイブ化します。


2. 基本仕様

@roflsunriz
roflsunriz / NexusLauncher_PyQt.pyw
Last active March 31, 2025 11:28
NexusLauncher_PyQt : Start, Forceibly Close, Restart, Auto Close for Winstep Nexus
import subprocess
import sys
import ctypes
# 必要なライブラリのリスト
REQUIRED_LIBRARIES = [
'PyQt5',
'ctypes',
'pywinstyles'
]
@roflsunriz
roflsunriz / fanbox-pagination-helper.user.js
Last active April 24, 2025 15:18
fanbox-pagination-helper : Fanboxのページネーションを上部に追加
// ==UserScript==
// @name Fanbox Pagination Helper
// @namespace fanboxPaginationHelper
// @version 1.5
// @description Fanboxのページネーションを上部に追加
// @author roflsunriz
// @match https://*.fanbox.cc/*
// @grant GM_addStyle
// @updateURL https://gist.githubusercontent.com/roflsunriz/f89fad6e9923bd678ac92025486d2f2a/raw/fanbox-pagination-helper.user.js
// @downloadURL https://gist.githubusercontent.com/roflsunriz/f89fad6e9923bd678ac92025486d2f2a/raw/fanbox-pagination-helper.user.js
@roflsunriz
roflsunriz / fanbox_floating_menu.user.js
Last active May 24, 2025 07:58
fanbox_floating_menu : Fanboxのページ移動用フローティングメニューを追加
// ==UserScript==
// @name Fanbox Floating Menu
// @namespace fanboxFloatingMenu
// @version 1.6
// @description Fanboxのページ移動用フローティングメニューを追加
// @author roflsunriz
// @match https://*.fanbox.cc/*
// @grant none
// @updateURL https://gist.githubusercontent.com/roflsunriz/31e3b65acd467e4d852423dc178d3c9b/raw/fanbox_floating_menu.user.js
// @downloadURL https://gist.githubusercontent.com/roflsunriz/31e3b65acd467e4d852423dc178d3c9b/raw/fanbox_floating_menu.user.js
@roflsunriz
roflsunriz / comment_sender.pyw
Last active May 10, 2025 12:43
comment_sender : ゲーム用コメント送信プログラム(Enter,Ctrl+Vをシミュレートして送信)
import sys
import subprocess
import json
import tkinter as tk
from tkinter import simpledialog
import time
import pkg_resources
import threading
import pyperclip
import os
@roflsunriz
roflsunriz / mangaViewer.user.js
Last active September 7, 2025 13:47
mangaViewer : ブック風マンガビューア
// ==UserScript==
// @name ブック風マンガビューア
// @namespace bookStyleMangaViewer
// @version 9.1
// @description ウェブページの画像を見開き形式で表示するビューア(シャドウDOM対応・FAB起動ボタン付き)
// @author roflsunriz
// @match *://*/*
// @run-at document-start
// @exclude *://www.youtube.com/*
// @exclude *://youtube.com/*
@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 / VOICEVOX_SETUP.md
Last active May 8, 2025 13:26
training_app : 自分専用筋トレアプリ

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

VoiceVoxのセットアップ

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

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

  1. VoiceVoxの公式サイトからソフトウェアをダウンロードします: