Hack Forums Crypto Currency Address Saver

This userscript makes posting your crypto currency address a lot easier. It simply replaces :omc:/:btc:/:ltc: with your OMC/BTC/LTC address.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name       Hack Forums Crypto Currency Address Saver
// @namespace  https://greasyfork.org/users/2155
// @version    0.3
// @description  This userscript makes posting your crypto currency address a lot easier. It simply replaces :omc:/:btc:/:ltc: with your OMC/BTC/LTC address.
// @include    *hackforums.net*
// ==/UserScript==

var omcAddress = ""; //Enter your OMC address here
var btcAddress = ""; //Write your BTC address here
var ltcAddress = ""; //Write your LTC address here

var includeOmc = false; //Set this to true if you want :omc: to be replace with your OMC address
var includeBtc = false; //Set this to true if you want :btc: to be replace with your BTC address
var includeLtc = false; //Set this to true if you want :ltc: to be replace with your LTC address

document.getElementsByName('submit')[0].onclick = function() {
    if (includeOmc == true) {
    document.getElementById('message_new').value = document.getElementById('message_new').value.replace(/:omc:/g, omcAddress);
    };
    if (includeBtc == true) {
    document.getElementById('message_new').value = document.getElementById('message_new').value.replace(/:btc:/g, btcAddress);
    };
    if (includeLtc == true) {
    document.getElementById('message_new').value = document.getElementById('message_new').value.replace(/:ltc:/g, ltcAddress);
    };
};