for(vari=0,tags=document.querySelectorAll('iframe[src],frame[src],script[src],link[rel=stylesheet],object[data],embed[src]'),tag;tag=tags;i++){ var a = document.createElement('a');a.href = tag.src||tag.href||tag.data; if(a.hostname!=location.hostname){console.warn(location.hostname+' 发现第三方资源['+tag.localName+']:'+a.href);}}