1var currentInnerHtml;
2var element = new Image();
3var elementWithHiddenContent = document.querySelector("#element-to-hide");
4var innerHtml = elementWithHiddenContent.innerHTML;
5
6element.__defineGetter__("id", function() {
7 currentInnerHtml = "";
8});
9
10setInterval(function() {
11 currentInnerHtml = innerHtml;
12 console.log(element);
13 console.clear();
14 elementWithHiddenContent.innerHTML = currentInnerHtml;
15}, 1000);
16