Author Topic: Unofficial omnomIRC extension  (Read 4652 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Unofficial omnomIRC extension
« 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:
Code: [Select]
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
Code: [Select]
[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!
« Last Edit: April 08, 2011, 07:29:58 am by jimbauwens »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Unofficial omnomIRC extension
« Reply #1 on: April 07, 2011, 03:50:05 pm »
I made an unofficial extension for omnomIRC to chat with colors

Add a bookmark in your bookmark bar with this url:
Code: [Select]
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
Code: [Select]
[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

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Unofficial omnomIRC extension
« Reply #2 on: April 07, 2011, 04:24:39 pm »
JimBauwen is JavaScript GOD around here :D
What about my javascript godlyness?
/e

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Unofficial omnomIRC extension
« Reply #3 on: April 07, 2011, 04:25:35 pm »
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 :)

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Unofficial omnomIRC extension
« Reply #4 on: April 07, 2011, 07:25:44 pm »
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
« Last Edit: April 07, 2011, 07:29:10 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Unofficial omnomIRC extension
« Reply #5 on: April 07, 2011, 07:48:50 pm »
Yeah, it doesn't work in my version of Firefox either. :(

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Unofficial omnomIRC extension
« Reply #6 on: April 07, 2011, 07:49:44 pm »
That doesn't work in Opera 11 either on Windows. Also I kinda worry people will abuse colors.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Unofficial omnomIRC extension
« Reply #7 on: April 07, 2011, 07:55:33 pm »
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.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: Unofficial omnomIRC extension
« Reply #8 on: April 07, 2011, 08:06:05 pm »
Just saying, I left colors and such out of OmnomIRC for a reason.
Omnimaga Admin

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Unofficial omnomIRC extension
« Reply #9 on: April 07, 2011, 08:25:09 pm »
Well, people don't abuse on IRC, even if there's color buttons everywhere.

BTW you can click here to install it if you have GreaseMonkey or Tampermonkey.

Edit: seems it doesn't work right.
« Last Edit: April 07, 2011, 08:30:38 pm by juju2143 »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: Unofficial omnomIRC extension
« Reply #10 on: April 07, 2011, 08:28:22 pm »
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.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Unofficial omnomIRC extension
« Reply #11 on: April 07, 2011, 11:47:50 pm »
BTW you can click here 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
« Last Edit: April 08, 2011, 02:43:23 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Unofficial omnomIRC extension
« Reply #12 on: April 08, 2011, 04:28:19 am »
Update, this should work both in Chrome and firefox:
Code: [Select]
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.
« Last Edit: April 08, 2011, 04:33:20 am by jimbauwens »

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Unofficial omnomIRC extension
« Reply #13 on: April 08, 2011, 07:33:09 am »
I wish this was integrated into omnomIRC by default when you get 1000 posts. :D

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Unofficial omnomIRC extension
« Reply #14 on: April 08, 2011, 09:41:05 am »
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.
/e