diff --git a/backend/src/constants/funbox-list.ts b/backend/src/constants/funbox-list.ts index ae3f74346..046876e41 100644 --- a/backend/src/constants/funbox-list.ts +++ b/backend/src/constants/funbox-list.ts @@ -331,6 +331,13 @@ const FunboxList: MonkeyTypes.FunboxMetadata[] = [ canGetPb: true, difficultyLevel: 3, }, + { + canGetPb: true, + difficultyLevel: 1, + properties: ["noLigatures"], + frontendFunctions: ["alterText"], + name: "ddoouubblleedd", + }, ]; export default FunboxList; diff --git a/frontend/src/ts/test/funbox/funbox-list.ts b/frontend/src/ts/test/funbox/funbox-list.ts index f16153cbe..974e4090c 100644 --- a/frontend/src/ts/test/funbox/funbox-list.ts +++ b/frontend/src/ts/test/funbox/funbox-list.ts @@ -255,6 +255,11 @@ const list: MonkeyTypes.FunboxMetadata[] = [ "wordOrder:reverse", ], }, + { + name: "ddoouubblleedd", + info: "TTyyppee eevveerryytthhiinngg ttwwiiccee..", + properties: ["noLigatures"], + }, ]; export function getAll(): MonkeyTypes.FunboxMetadata[] { diff --git a/frontend/src/ts/test/funbox/funbox.ts b/frontend/src/ts/test/funbox/funbox.ts index 94f95dc96..7e05c5de7 100644 --- a/frontend/src/ts/test/funbox/funbox.ts +++ b/frontend/src/ts/test/funbox/funbox.ts @@ -505,6 +505,12 @@ FunboxList.setFunboxFunctions("zipf", { }, }); +FunboxList.setFunboxFunctions("ddoouubblleedd", { + alterText(word: string): string { + return word.replace(/./gu, "$&$&"); + }, +}); + export function toggleScript(...params: string[]): void { FunboxList.get(Config.funbox).forEach((funbox) => { if (funbox.functions?.toggleScript) funbox.functions.toggleScript(params); diff --git a/frontend/static/funbox/_list.json b/frontend/static/funbox/_list.json index dc6f914b8..550ac0e88 100644 --- a/frontend/static/funbox/_list.json +++ b/frontend/static/funbox/_list.json @@ -180,5 +180,10 @@ "name": "backwards", "info": "...sdrawkcab epyt ot yrt woN", "canGetPb": true + }, + { + "name": "ddoouubblleedd", + "info": "TTyyppee eevveerryytthhiinngg ttwwiiccee..", + "canGetPb": true } ]