I would not recommend a text based operation like that
Important, It will be very costly
var custom_obj = {};
custom_obj["_welcomeText"] = "Welcome in custom";
custom_obj["_good"] = "Good in custom";
var $contents = $('body *').addBack().contents();
$.each(custom_obj, function (key, value) {
var regex = new RegExp(key, 'g');
$contents.each(function () {
if (this.nodeType == 3) {
this.nodeValue = this.nodeValue.replace(regex, value);
}
})
});
Demo: Fiddle