Earlier quoted context omitted.
I think it is now somewhat disabled. you just need to refresh the page.
This is what I did for now msg.text = msg.text.replace('>','') .replace(' I will think of a more clever solution next week :)
Show HN: MapChat – A simple location based chat in 300 lines of code
31–40 of 122 posts
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#32great concept, just needs some more polish
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#33Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#34[deleted]
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#35The leekspin is getting annoying.
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#36How about only pulling messages and users from within your zoomed-in map bounds?
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#37Earlier quoted context omitted.
I think it is now somewhat disabled. you just need to refresh the page.
This is what I did for now msg.text = msg.text.replace('>','') .replace(' I will think of a more clever solution next week :)
Make your regexs global, i.e. .replace(/https://github.com/idoco/map-chat/pull/1
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#38Earlier quoted context omitted.
I think it is now somewhat disabled. you just need to refresh the page.
This is what I did for now msg.text = msg.text.replace('>','') .replace(' I will think of a more clever solution next week :)
var div = document.createElement('div');
div.textContent = msg;
msg.text = div.innerHTML;
This should remove all HTML/CSS/Script.
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#39What's the name of the russian sounding song that someone injected? I've been searching it for ages!