Thanks! That did work very well indeed.
*EDIT* nevermind, i saw how to make this in the link you sent! Thanks again
But now i have another issue, also in php you can use arrays to store information and now i need to store information in arrays but i dont know how to do it in javascript/Messenger Plus-script
so heres how i would to it in
PHP:
quote:
($ = declare variable)
$text = "OK! brb then. Or afk, i maybe take longer time than i think. so please dnd ";
$array1 = array("afk", "brb", "dnd");
$array2 = array("<Away From Keyboard>", "<Be Right Back>", "<Do Not Disturb>");
str_replace($array1, $array2, $text);
--Output--
OK! <Be Right Back> then. Or <Away From Keyboard>, i maybe take longer time than i think. so please <Do Not Disturb>
so what i need help with is how i can store multiple strings in an array.
//Zeelia