GaztoofV2

Untitled

Mar 7th, 2021
1,012
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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);}
  2. document.getElementById('message_input').setAttribute('maxLength', -1);
  3. var lastMessageStr = 'pls';
  4. Shoutbox.socket.on(2, t=>{
  5. if(t.message.uid == uid){
  6. console.log("ok time to edit to: " + lastMessageStr);
  7. Shoutbox.socket.emit(4, {"id":t.message.id, "message":lastMessageStr});
  8. }
  9. });
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×