Log a web page's dynamically-created tag attributes with a userscript

GuildSmoke

New Member
I am able to track all the dynamically created tags, using Brock Adams' answer to "Log a web page's dynamically-created, DOM elements with a userscript".Now I want to get the attributes of the tags. I tried it by adding an if condition in \[code\]LogNewTagCreations ()\[/code\] but it didn't work.
In this example I am checking attributes for script tags:\[code\]if(tagName=="script") { console.log("------------",elem.attributes.src.Value); }\[/code\]Please help me.
 
Top