refac: rewrite a lil in rust

This commit is contained in:
2026-05-04 17:38:49 +09:30
parent 608fc96c4e
commit aa1e1a925e
42 changed files with 1367 additions and 103 deletions
+18
View File
@@ -0,0 +1,18 @@
//! SEQTA page / title detection strings.
use wasm_bindgen::prelude::*;
#[wasm_bindgen(js_name = childTextHasSeqtaCopyright)]
pub fn child_text_has_seqta_copyright(text: &str) -> bool {
text.contains("Copyright (c) SEQTA Software")
}
#[wasm_bindgen(js_name = titleIsSeqtaLearnOrEngage)]
pub fn title_is_seqta_learn_or_engage(title: &str) -> bool {
title.contains("SEQTA Learn") || title.contains("SEQTA Engage")
}
#[wasm_bindgen(js_name = titleIsSeqtaEngage)]
pub fn title_is_seqta_engage_only(title: &str) -> bool {
title.contains("SEQTA Engage")
}