scripts icon indicating copy to clipboard operation
scripts copied to clipboard

[Request] PC Steam: ATRI -My Dear Moments-

Open ArmoryFou opened this issue 1 year ago • 1 comments

https://store.steampowered.com/app/1230140/ATRI_My_Dear_Moments/

ArmoryFou avatar Jul 10 '24 23:07 ArmoryFou

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);

ghost avatar Aug 09 '24 13:08 ghost