Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function format_before_send(commaParam) {var pls = content = commaParam.replace(/(https?:\/\/|www\.)[^\s"<>{}`]+/g, (name) => {let snippet = name;let ch = /:[\w?]+:|<3|:-P|:-\)|:-D|;-\)/g;return snippet.match(ch) && (name = name.replace(snippet.match(ch)[0], " " + snippet.match(ch)[0])), name;});lastMessageStr = commaParam;return pls.substring(0,249);}
- document.getElementById('message_input').setAttribute('maxLength', -1);
- var lastMessageStr = 'pls';
- Shoutbox.socket.on(2, t=>{
- if(t.message.uid == uid){
- console.log("ok time to edit to: " + lastMessageStr);
- Shoutbox.socket.emit(4, {"id":t.message.id, "message":lastMessageStr});
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement