godjjchrome/js/tmi.js
// Replace all occurences of a string using an object..
Replace all occurences of a string using an object
Replace all occurences of a string using an object
function replaceAll(str, obj) {
		if (str === null || typeof str === "undefined") {
			return null;
		}
		for (var x in obj) {
			str = str.replace(new RegExp(x, "g"), obj[x]);
		}
		return str;
	}
function replaceAll ( str , obj ) { if ( str === null || typeof str === "undefined" ) { return null ; } for ( var x in obj ) { str = str . replace ( new RegExp ( x , "g" ) , obj [ x ] ) ; } return str ; }
Replace all occurences of a string using an object..
Replace all occurences of a string using an object ..