var elements = document.getElementsByTagName('*');

for (var i = 0; i < elements.length; i++) {
    var element = elements[i];

    for (var j = 0; j < element.childNodes.length; j++) {
        var node = element.childNodes[j];

        if (node.nodeType === 3) {
            var text = node.nodeValue;
            var replacedText = text.replace(/trump/gi, 'Putin');
            var replacedText2 = text.replace(/white house/gi, 'Kremlin');

            if (replacedText !== text) {
                element.replaceChild(document.createTextNode(replacedText), node);
            }

            if (replacedText2 !== text) {
                element.replaceChild(document.createTextNode(replacedText2), node);
            }
        }
    }
}