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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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