Skip to content

Instantly share code, notes, and snippets.

@roflsunriz
roflsunriz / mangaViewer_plan.md
Created April 4, 2025 12:14
mangaViewer_plan ブック風マンガビューア仕様定義書

ブック風マンガビューア ユーザースクリプト 仕様定義書

概要

本仕様定義書は、「ブック風マンガビューア」ユーザースクリプトの設計および実装に関する詳細を定義する。
「ブック風」とは、見開き形式のマンガビューアを指し、既存のウェブページから画像URLを収集し、見開き形式で表示する機能を提供する。
Tampermonkey上で動作し、特定のページに起動ボタンを挿入するか、Tampermonkeyメニューから起動可能。
主な構成要素は「データロードクラス」「UIビルドクラス」「UIマネジメントクラス」であり、使用技術はHTML5、CSS3、JavaScript、React、Tailwind CSSとする。


@roflsunriz
roflsunriz / mangaViewer.user.js
Last active April 15, 2025 03:04
mangaViewer : ブック風マンガビューア(nicomanga.com/X.com)
// ==UserScript==
// @name ブック風マンガビューア
// @namespace bookStyleMangaViewer
// @version 3.6
// @description ウェブページの画像を見開き形式で表示するビューア(Xにも対応)
// @author roflsunriz
// @match https://nicomanga.com/read-*
// @match https://twitter.com/*
// @match https://x.com/*
// @grant GM_registerMenuCommand
@roflsunriz
roflsunriz / install_spicetify.py
Created April 3, 2025 18:08
install_spicetify : ダブルクリックと"y"入力で簡単Spicetify&マーケットプレイスインストール
import os
import subprocess
import time
import psutil
import sys
def kill_spotify():
for proc in psutil.process_iter(['pid', 'name']):
try:
if 'Spotify.exe' in proc.info['name']:
@roflsunriz
roflsunriz / comment_sender.pyw
Last active April 9, 2025 01:03
comment_sender : Back 4 Blood用コメント送信プログラム(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 / fanbox_floating_menu.user.js
Last active April 9, 2025 14:51
fanbox_floating_menu : Fanboxのページ移動用フローティングメニューを追加
// ==UserScript==
// @name Fanbox Floating Menu
// @namespace fanboxFloatingMenu
// @version 1.4
// @description Fanboxのページ移動用フローティングメニューを追加
// @author roflsunriz
// @match https://*.fanbox.cc/posts/*
// @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 / fanbox-pagination-helper.user.js
Last active April 9, 2025 14:53
fanbox-pagination-helper : Fanboxのページネーションを上部に追加
// ==UserScript==
// @name Fanbox Pagination Helper
// @namespace fanboxPaginationHelper
// @version 1.3
// @description Fanboxのページネーションを上部に追加
// @author roflsunriz
// @match https://*.fanbox.cc/posts?*
// @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 / 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 / filter_matome.pyw
Last active March 22, 2025 14:09
filter_matome : 「フィルタまとめ」パッケージ更新ツール
import tkinter as tk
from tkinter import ttk, filedialog, messagebox
import json
import os
import sys
import subprocess
import pkg_resources
import shutil
import py7zr
from typing import Dict, List
@roflsunriz
roflsunriz / filterMatomeUpdate_plan.md
Last active March 11, 2025 12:30
filterMatomeUpdate_plan : 「フィルタまとめ」パッケージ更新ツール 実装仕様書

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

1. 概要

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


2. 基本仕様

@roflsunriz
roflsunriz / speech_recognition_app.pyw
Last active March 22, 2025 14:11
speech_recognition_app : 日本語と英語対応の音声認識アプリ,Cursorのプロンプト入力用
import os
import sys
import subprocess
import tkinter as tk
from tkinter import messagebox
import datetime
# フォルダパスの設定
ASSETS_DIR = os.path.join("misc", "assets")
OUTPUT_DIR = os.path.join("misc", "output")