Skip to content

Instantly share code, notes, and snippets.

@kanjieater
kanjieater / ttu-phone.tm.user.js
Last active October 10, 2025 00:23
ttu-phone.tm.user.js
// ==UserScript==
// @name TTU.app UI Enhancements (Final Stable)
// @namespace http://tampermonkey.net/
// @version 9.1
// @description A stable set of UI fixes for TTU.app, with improved compatibility for other extensions.
// @author KanjiEater (updated by Gemini)
// @match https://reader.ttsu.app/*
// @grant GM_addStyle
// @run-at document-idle
// @noframes
// ==UserScript==
// @name TTU.app E-Ink & Touch UI Enhancements
// @namespace http://tampermonkey.net/
// @version 3.6
// @description Applies CSS styles for e-ink, touch UI, layout fixes, and forces top bar buttons to show on mobile.
// @author KanjiEater (updated by Gemini)
// @match https://reader.ttsu.app/*
// @grant GM_addStyle
// @run-at document-idle
// @noframes
@kanjieater
kanjieater / ttu-whispersync.tm.user.js
Last active September 22, 2025 03:33
ttu-whispersync
// ==UserScript==
// @name ttu-whispersync
// @namespace https://github.com/Renji-XD
// @version 1.0.12
// @description Listen to audiobooks with ttu ebook-reader
// @icon https://raw.githubusercontent.com/Renji-XD/ttu-whispersync/main/src/assets/icons/icon64.png
// @grant GM_getResourceURL
// @grant unsafeWindow
// @author Renji-xD
// @homepageURL https://github.com/Renji-XD/ttu-whispersync
@kanjieater
kanjieater / agent_script.js
Created August 5, 2024 22:34
agent script catalog generator
import { promises as fs } from 'fs';
import path from 'path';
import axios from 'axios';
import { createObjectCsvWriter } from 'csv-writer';
const ACCESS_TOKEN = 'x'; // Replace with your GitHub access token
const GIST_ID = '3f3901a8f132b5761dca5316fb62f702'; // Replace with your Gist ID
const parentDir = path.resolve('./'); // Adjust the path as needed to get one level up
@kanjieater
kanjieater / agent_scripts.csv
Last active October 31, 2024 15:45
agent_scripts
Name URL
3DS_USA_Shin.Megami.Tensei.Devil.Survivor.2.-.Record.Breaker https://fs-prod-cdn.nintendo-europe.com/media/images/10_share_images/games_15/nintendo_3ds_25/SI_3DS_ShinMegamiTenseiDevilSurvivor2RecordBreaker_image1600w.jpg
Android_MAGES_STEINS_GATE https://www.droidgamers.com/wp-content/uploads/2022/08/SteinsGate-English-Android-1024x576.jpg
NS_01000130150FA000_MUSICUS https://s.pacn.ws/1/p/135/musicus-704703.11.jpg
NS_01000200194AE000_Majestic _Majolical https://s.pacn.ws/1/p/14k/majestic-majolical-730425.1.jpg
NS_010003F003A34000_Pokemon_Let's_Go_Pikachu https://fs-prod-cdn.nintendo-europe.com/media/images/10_share_images/games_15/nintendo_switch_4/H2x1_NSwitch_PokemonLetsGoPikachu_enGB_image1600w.jpg
NS_010007500F27C000_Detective_Pikachu_Returns https://www.nintendo.com/my/switch/avhm/img/hero_sp.jpg
NS_0100086005EDC000_Naruto_Shippuden_Ultimate_Ninja_Storm_Trilogy https://www.sanity.com.au/media/Images/fullimage/498986/SDC_2413217_2019-21-2--14-55-57.jpg
NS_01000AE01954A000_Unicorn_Overlord https:/
#!/bin/bash
audiobooks_path="/mnt/a/MusicBee/test"
# Loop over each audiobook folder
for audiobook_folder in "${audiobooks_path}"/*/
do
# Print out the name of the audiobook folder
echo "Merging files in ${audiobook_folder}..."
@kanjieater
kanjieater / ComicEater.yml
Created May 10, 2024 15:51
ComicEater config file
---
seriesFolders:
- seriesRoot: W:\Collection\シリーズ\
queueFolders:
- W:\Collection\シリーズキュー\
maintenanceFolder:
# W:\Collection\シリーズキューの準備中\
G:\シリーズキューの準備中\
# /tmp/シリーズキューの準備中/
folderPatterns:
@kanjieater
kanjieater / leaderboardCheck.js
Created April 19, 2024 02:50
Find inactive users on tadoku
const logsBaseUrl = "https://tadoku.app/api/internal/immersion/contests/32b33801-c412-4187-9d78-31d58cd06588/logs";
const pageSize = 10; // Adjust page size as needed
const includeDeleted = false; // Include deleted as per your example
// Function to check if a date is older than one month
function isOlderThanOneMonth(dateString) {
const oneMonthAgo = new Date();
oneMonthAgo.setMonth(oneMonthAgo.getMonth() - 1);
const logDate = new Date(dateString);
return logDate < oneMonthAgo;
@kanjieater
kanjieater / mrsk.csv
Last active August 12, 2025 11:58
mrsk manga club
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
Title,Total Book Count,Status,URL,Summary,ImageData
うしおととら,33,ENDED,https://anilist.co/manga/37747,"It centers around the travels and battles of one Aotsuki Ushio, who is constantly being stalked and aided by a gigantic, supernatural and sometimes invisible tiger (Some people describe it as akin to Calvin and Hobbes on acid).
Ushio's family maintains a Shinto temple in Japan, where 500 years ago, his samurai ancestor battled that same tiger to a standstill, and eventually trapped him against a rock using, a blessed spear called the ""Beast Spear"", which in addition to its intrinsic formidability as a weapon, can also boost the physical powers of the user. While cleaning out the temple storage, Ushio accidentally unseals the chamber which Tora was trapped in. Initially, Ushio wisely refused to remove the spear pinning Tora (とら, Japanese for tiger) down, as Tora unwisely makes the strategic blunder of mentioning that the first thing he would do upon being freed would be to devour Ushio; but Tora's unsealed
@kanjieater
kanjieater / komga.js
Last active January 13, 2024 03:36
Komga Userscript
// ==UserScript==
// @name ComicEater Komga
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://localhost:3030/*
// @icon https://www.google.com/s2/favicons?domain=google.com
// @grant GM_addStyle
// ==/UserScript==