const miau = new Mew(Cat.getNya());
Conversation
Notices
-
Embed this notice
Puniko ? (puniko@mk.absturztau.be)'s status on Monday, 04-Dec-2023 22:30:25 JST Puniko ? - Polychrome :blabcat: likes this.
-
Embed this notice
Lunya :v_cat: :spinny_cat_trans: (luna@lunar.place)'s status on Monday, 04-Dec-2023 22:36:12 JST Lunya :v_cat: :spinny_cat_trans: @puniko@mk.absturztau.be Hehe, in my latest project(the ECS(like) system for my game engine) Instead of Entity::new() I have Entity::mew()
I also have Entity::awawa() and Entitity::decatification()
:3Puniko ? likes this. -
Embed this notice
Puniko ? (puniko@mk.absturztau.be)'s status on Monday, 04-Dec-2023 22:38:50 JST Puniko ? @luna@lunar.place lil old snippet from my pleroma-mod-catify
makeCat (element) { element = element || document; if (element.querySelectorAll) { const posts = element.querySelectorAll("." + this.getClassName()); this.makeCatByClassName("user-info"); this.makeCatByClassName("basic-user-card"); posts.forEach((currentPost) => { this.makeCatByElement(currentPost); this.nyaByPost(currentPost); }); } }
and
onRun () { this.areYouACat(); this.detectCats(); this.catify(); }
i really need to rewrite that whole mod loader at one point lol