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.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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