Open ArmoryFou opened 3 months ago
This works pretty well for me:
// ==UserScript==
// @name ATRI
// @version 0.1
// @author cpettitt
// @description Steam
//
// ==/UserScript==
const furiganaPattern = /\[([^,]+),(\d+)\]/g;
function removeFurigana(s) {
return s.replace(furiganaPattern, function(match, p1, p2, p3) {
return "";
});
}
function filter(s) {
const sanitized = s .trim() .replace(/\\n/g, "\n\u3000")
return removeFurigana(sanitized);
}
const engine = require('./libPCKiriKiriZ.js');
const handler = trans.send(filter, '200+');
engine.hookTextrenderDll(handler);
https://store.steampowered.com/app/1230140/ATRI_My_Dear_Moments/