Omnimaga
General Discussion => Technology and Development => Web Programming and Design => Topic started by: Jim Bauwens on April 07, 2011, 03:46:34 pm
-
I made an unofficial extension for omnomIRC to chat with colors
Add a bookmark in your bookmark bar with this url:
javascript:sig = AJAXSend.toString().split("\n")[21].split("&")[1];usern = AJAXSend.toString().split("\n")[21].split("&")[0].split("\"")[3];setTimeout('function AJAXSend() {
window.frames[0].onMessageSend();window.frames[0].timeIn();var msg_me=document.getElementById("message").value;msg_me = msg_me.replace("[bold]","\x02");msg_me = msg_me.replace("[normal]","\x0F");msg_me = msg_me.replace("[red]","\x0304");msg_me = msg_me.replace("[blue]","\x0302");msg_me = msg_me.replace("[green]","\x0303");msg_me = msg_me.replace("[color]","\x03");var theURL = "/omnomirc/messagebounce.php?name=" + encodeURIComponent(encodeURIComponent(usern)) +"&"+ sig + "&message=" + encodeURIComponent(encodeURIComponent( stripslashes( stripslashes( msg_me ))));document.getElementById("message").value = "";xmlhttp=new XMLHttpRequest();xmlhttp.open("GET", theURL ,false);xmlhttp.send(null);
}',1000);
When you are on a omnimaga page, click it, and you will be able to use tags like [red] [green] [blue] [color]00-15 [bold] and [normal]
in omnomIRC.
If anyone of the mods doesn't like this, I will remove it.
EDIT: New version with firefox support, scroll down to see it!
-
I made an unofficial extension for omnomIRC to chat with colors
Add a bookmark in your bookmark bar with this url:
javascript:sig = AJAXSend.toString().split("\n")[21].split("&")[1];usern = AJAXSend.toString().split("\n")[21].split("&")[0].split("\"")[3];setTimeout('function AJAXSend() {
window.frames[0].onMessageSend();window.frames[0].timeIn();var msg_me=document.getElementById("message").value;msg_me = msg_me.replace("[bold]","\x02");msg_me = msg_me.replace("[normal]","\x0F");msg_me = msg_me.replace("[red]","\x0304");msg_me = msg_me.replace("[blue]","\x0302");msg_me = msg_me.replace("[green]","\x0303");msg_me = msg_me.replace("[color]","\x03");var theURL = "/omnomirc/messagebounce.php?name=" + encodeURIComponent(encodeURIComponent(usern)) +"&"+ sig + "&message=" + encodeURIComponent(encodeURIComponent( stripslashes( stripslashes( msg_me ))));document.getElementById("message").value = "";xmlhttp=new XMLHttpRequest();xmlhttp.open("GET", theURL ,false);xmlhttp.send(null);
}',1000);
When you are on a omnimaga page, click it, and you will be able to use tags like [red] [green] [blue] [color]00-15 [bold] and [normal]
in omnomIRC.
If anyone of the mods doesn't like this, I will remove it.
IT WORKED, IT WORKED, I LOVED IT.
JimBauwen is JavaScript GOD around here :D
-
JimBauwen is JavaScript GOD around here :D
What about my javascript godlyness?
-
JimBauwen is JavaScript GOD around here :D
What about my javascript godlyness?
jBasicOS and Eee:Zor and awesome too, I didn't forget about you :)
-
I just tried it, and it doesn't work ???
What happens when I click the bookmark is a new, blank page opens saying nothing but "3"
Does it work properly in firefox 4?
EDIT: tried it in chrome, and it works there
-
Yeah, it doesn't work in my version of Firefox either. :(
-
That doesn't work in Opera 11 either on Windows. Also I kinda worry people will abuse colors.
-
Thanks Jim, I'll install it as a GreaseMonkey-like script. Actually, I'll convert it as a GreaseMonkey script and share the link with you.
-
Just saying, I left colors and such out of OmnomIRC for a reason.
-
Well, people don't abuse on IRC, even if there's color buttons everywhere.
BTW you can click here (http://files.julosoft.net/js/omnomirc_colors.user.js) to install it if you have GreaseMonkey or Tampermonkey.
Edit: seems it doesn't work right.
-
Well, people don't abuse on IRC, even if there's color buttons everywhere.
I'm pretty sure they are referring to my juvenile response to finding the Ctrl+K command in XChat today.
-
BTW you can click here (http://files.julosoft.net/js/omnomirc_colors.user.js) to install it if you have GreaseMonkey or Tampermonkey.
Edit: seems it doesn't work right.
Yeah, it doesn't work :/
That in firefox 4 at least, using greasemonkey
-
Update, this should work both in Chrome and firefox:
javascript:void(sig = AJAXSend.toString().split("\"")[25]);void(usern = AJAXSend.toString().split("\"")[23]);function sendit() {window.frames[0].onMessageSend();window.frames[0].timeIn();msg_me=document.getElementById("message").value;msg_me = msg_me.replace(/\[bold\]/g,"\x02");msg_me = msg_me.replace(/\[normal\]/g,"\x0F");msg_me = msg_me.replace(/\[red\]/g,"\x0304");msg_me = msg_me.replace(/\[blue\]/g,"\x0302");msg_me = msg_me.replace(/\[green\]/g,"\x0303");msg_me = msg_me.replace(/\[color\]/g,"\x03");var theURL = "/omnomirc/messagebounce.php?name=" + encodeURIComponent(encodeURIComponent(usern)) + sig + "&message=" + encodeURIComponent(encodeURIComponent( stripslashes( stripslashes( msg_me ))));document.getElementById("message").value="";xmlhttp=new XMLHttpRequest();xmlhttp.open("GET", theURL ,false);xmlhttp.send(null);};void(document.irc.setAttribute('onsubmit','sendit()'));
Edit: fixed something
Edit2: DJ_0, I don't know if trolls will use it, because it isn't so easy to do, and anyway trolls need 40 posts to chat.
-
I wish this was integrated into omnomIRC by default when you get 1000 posts. :D
-
JimBauwen is JavaScript GOD around here :D
What about my javascript godlyness?
jBasicOS and Eee:Zor and awesome too, I didn't forget about you :)
yay! :D
This is looking good :) I'll have to test it out when I get on my comp later today.
-
I wish this was integrated into omnomIRC by default when you get 1000 posts. :D
I agree, that's a good "prize", but make it 3000 :P
-
I wish this was integrated into omnomIRC by default when you get 1000 posts. :D
I agree, that's a good "prize", but make it 3000 :P
Thats easy to say with your post count :P
-
I wish this was integrated into omnomIRC by default when you get 1000 posts. :D
I agree, that's a good "prize", but make it 3000 :P
Thats easy to say with your post count :P
It is, isn't it? :P
-
I wish this was integrated into omnomIRC by default when you get 1000 posts. :D
I agree, that's a good "prize", but make it 3000 :P
Thats easy to say with your post count :P
It is, isn't it? :P
So 1337 posts it is...