Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

Tired of that stupid textbox when sending messages through the IRE site?

PatroklosPatroklos Member Posts: 213 ✭✭✭ - Distinguished
So I'd finally had enough with the dumb textbox on the messaging portion of the IRE website, so I have two solutions.

Solution 1: Tampermonkey
I wrote a script for Tampermonkey that will find the textbox, and replace it with a textarea of a decent size that's also adjustable by dragging. This means you can fix words that you need to fix, as well as read your ENTIRE message in one go instead of copy/pasting into Sublime or Notepad.
// ==UserScript==
// @name         Change Message Textbox to TextArea
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Fix stuff that shouldn't be so silly
// @author       Patroklos
// @match        http://www.ironrealms.com/game/messages*
// @grant        none
// ==/UserScript==
/* jshint -W097 */
'use strict';
// Your code here...
var textbox = document.getElementsByClassName("ire-message-send")[0];
var textArea = document.createElement('textarea');
textArea.setAttribute('class', 'ire-message-send')
textArea.setAttribute('name', 'msgtext')
textArea.setAttribute('cols', '50')
textArea.setAttribute('rows', '6')
var text = textbox.value;
var parent = textbox.parentNode;
parent.replaceChild(textArea, textbox);

Solution 2: Manual change

You can open up your browser console right to the textbox by right clicking on the textbox, and selecting Inspect Element. Then, where it says <input change that to <textarea. Boom! You now have a textarea while you're at your computer to send the message from.

Hopefully this helps some of you. The Tampermonkey path is obviously the simpler solution if you use it, but the other way is fine if you need a one or two time fix.

Sign In to Comment.