Username:
Password:
Remember me:
Register

Back to forum: Triniate


Search forums via Google


1 Users appreciate this thread.

PC Chat Greasemonkey Chat Keyboard Replacer
Started by SomeLuigi
(2013-01-03 16:45:45)
SomeLuigi (2013-01-03 16:45:45)
I thought I'd share this here, so:

You know that HORRIBLE ON-SCREEN KEYBOARD that you have to use on PC? (it works good on 3DS / touch keyboards but on PC not so hot..)

No longer. If you use Firefox (with Greasemonkey) or Chrome (with whatever custom scripts plugin they have), I created a simple script which overrides the chat button so it uses a text box input. Much nicer you see.

Source Code (just copy into a script):
Spoiler: show

// ==UserScript==
// @name Triniate Send Button
// @namespace http://www.triniate.com/
// @include http://www.triniate.com/play_2/*
// @version 1
// @grant none
// ==/UserScript==




function overrideChatClick(matchClass)
{
var elems = document.getElementsByTagName('*',i;
for (i in elems)
{
if((" "+elems[i].className+" " ).indexOf(" "+matchClass+" " ) > -1)
{
elems[i].onclick= (function() {
showchat2();
});
}
}
}

overrideChatClick('show_chat'

function showchat2() {
document.getElementById('chat_text_bar'.innerHTML = prompt('enter chat message', '';
sendpost();
}



If you use it please let me know.


Edit: Fixed so it works on older/newer demo versions than 6.

This post has been edited one or more times, the last time was:
2013-01-03 16:54:53

SomeLuigi is changing in 2015.
DaftPunk (2013-01-03 16:51:00)
Kewl
DaftPunk (2013-01-03 16:51:53)
Who said he left?
Robdeprop (2013-01-03 16:52:08)
Whoa, works like a charm
10 Years 3DSPlaza!
NINTENDO64 (2013-01-07 03:33:41)
Nice!
"If today were the last day of my life, would I want to do what I am about to do today?"
-Steve Jobs

DBS
 

Log in to submit a comment

This topic's ID: 39466

Back to forum: Triniate




Total registered users: 8321
New registered users today: 7
Newest registered user: ElegantVulpes

©  Copyright 2026 3DSPlaza. All Rights Reserved