But nice to see how all the trolls play... Maybe this is a real good idea... A contest battelfield for trolls... (as a game)
Say Hello to Realtime Collaboration
31–40 of 47 posts
Re: Say Hello to Realtime Collaboration
#32Re: Say Hello to Realtime Collaboration
#33Random thought: Imagine if you could see comments on sites like HN being typed live (and the effects that would have on discussion).
Re: Say Hello to Realtime Collaboration
#34Random thought: Imagine if you could see comments on sites like HN being typed live (and the effects that would have on discussion).
Reminds of ICQ group chats back in the day. You're absolu You're absolutely wro (backspaces start) You I respectfully disagree Fun days. EDIT: better dummy conversation
Re: Say Hello to Realtime Collaboration
#35 (function()
{
var proxied = window.alert;
window.alert = function()
{
// replacement code here
// call original function:
proxied.apply(this, arguments);
};
})();Re: Say Hello to Realtime Collaboration
#36Re: Say Hello to Realtime Collaboration
#37This needs to override JavaScript commands to keep it from malicious use. For example, to override alert() do this: (function() { var proxied = window.alert; window.alert = function() { // replacement code here // call original function: proxied.apply(this, arguments); }; })();
If someone really feels like policing it, they can delete the iframe element (in FF, chrome, or opera) and just have access to the editor panes (which means no alerts, redirects, or other nastiness). I'm sure someone can figure out how to write a javascript snippet that will post some text that has been cleaned of all instances of "window.location", "alert", and probably "while". (I would do it myself, but it's 1am here).
Re: Say Hello to Realtime Collaboration
#38This needs to override JavaScript commands to keep it from malicious use. For example, to override alert() do this: (function() { var proxied = window.alert; window.alert = function() { // replacement code here // call original function: proxied.apply(this, arguments); }; })();
When I redefined alert to return false, it crashed Chrome pretty bad (note: I am not the owner). If someone really feels like policing it, they can delete the iframe element (in FF, chrome, or opera) and just have access to the editor panes (which means no alerts, redirects, or other nastiness). I'm sure someone can figure out how to write a javascript snippet that will post some text that has been cleaned of all ins…
If you want to see what arguments are being passed, add a console.dir(arguments); to the code.
Re: Say Hello to Realtime Collaboration
#39As usual, as soon as HNers are no longer on HN proper, the inner troll comes out.
Re: Say Hello to Realtime Collaboration
#40Looks like you're being hacked really bad. I got redirected to Google! It was fun to watch though! Add and you'll disable javascript. Good fast fix for now, later you'll want sandbox="allow-scripts allow-forms allow-same-origin" The 4th allowed value for html5 iframe sandbox is allow-top-navigation, which allows a script to do window.top.location.href = ' http://google.com and redirect someone like me.