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.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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);
    };
};