var redirect_host = "2site.com";
var current_location = window.location.toString();
var current_host = window.location.host.toString();
var redirect_location = current_location.replace(current_host, redirect_host);
window.location.href = redirect_location;
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver,
config = {
attributes: true,
attributeFilter: ['style']
},
target = document.getElementById('my_id');
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
console.log(mutation.target.style.display);
});
});
observer.observe(target, config);
.menu:hover
https://jsfiddle.net/tke4bx2w/1/