<#
禁止中华浮动广告
cd "$env:USERPROFILE/desktop"
#>
$ie = new-object -com "InternetExplorer.Application"
$ie.navigate("http://military.china.com/zh_cn/")
$ie.visible = $true
Start-Sleep -Seconds 1
$doc = $ie.Document
$win = $doc.parentWindow
$s1 = "
window.alert=null;
window.confirm=null;
window.showModalDialog=null;
window.open=null;
"
$win.execScript($s1, "javascript")
$s2="
document.all.p8_2a_46_289.style.width = 0;
document.all.p8_2a_46_289.style.height = 0;
document.all.smallpic.style.width=0;
document.all.smallpic.style.height=0;
document.all.CH_JS_LMT_00001.style.height=0;
document.all.cproIframe3holder.style.height=0;
document.all.cproIframe2holder.style.height=0;
// alert(document.getElementsByName(""colR"")="");
"
禁止中华浮动广告
cd "$env:USERPROFILE/desktop"
#>
$ie = new-object -com "InternetExplorer.Application"
$ie.navigate("http://military.china.com/zh_cn/")
$ie.visible = $true
Start-Sleep -Seconds 1
$doc = $ie.Document
$win = $doc.parentWindow
$s1 = "
window.alert=null;
window.confirm=null;
window.showModalDialog=null;
window.open=null;
"
$win.execScript($s1, "javascript")
$s2="
document.all.p8_2a_46_289.style.width = 0;
document.all.p8_2a_46_289.style.height = 0;
document.all.smallpic.style.width=0;
document.all.smallpic.style.height=0;
document.all.CH_JS_LMT_00001.style.height=0;
document.all.cproIframe3holder.style.height=0;
document.all.cproIframe2holder.style.height=0;
// alert(document.getElementsByName(""colR"")="");
"
$win.execScript($s2, "javascript")