Yes,i already do this
var func = window.location;
Object.defineProperty(window, 'location', { get: function() { console.log('href detected'); return func; }});
Uncaught TypeError: Cannot redefine property: location
at Function.defineProperty (<anonymous>)
at <anonymous>:1:35
Maybe you can suggest something ?
I think that it cant be done becasuse a security alert (
https://www.mozilla.org/en-US/security/ ... sa2012-59/ - its all about firefox, but i think that its a the same issue)