javascript - Intercepting DOM and JS engine calls -


i want intercept dom object read , write queries fired js while getting loaded browser. after intercepting these calls, wish screen them. have written logic screening not able block calls.

is there way other modifying source code of browser achieve this? if pls me.

you mean this? (for reason fails in fx illegal operation)

<script> var oldget = document.getelementbyid; document.getelementbyid=function(id) {   return confirm('someone wants know '+id+', ok?')?oldget(id):null; } window.onload=function() {   alert(document.getelementbyid('div1').innerhtml); }  </script> <div id="div1">hello</div> 

Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -