אני מחפש כרגע מידע על הזרקת סקריפט ב WebBrowser ב WPF
הסקריפט (JS)
if(document.getElementById("divMenuTest"))
{
var demo = document.getElementById("divMenuTest");
demo.remove();
}
if(document.getElementById("divMainBanner"))
{
var demo = document.getElementById("divMainBanner");
demo.remove();
}
if(document.getElementById("divNewMenu2"))
{
var demo = document.getElementById("divNewMenu2");
demo.remove();
}
if(document.getElementById("divMivzHor")){
var demo = document.getElementById("divMivzHor");
demo.remove();
}
if(document.getElementById("ifrRight")){
var demo = document.getElementById("ifrRight");
demo.remove();
}
if(document.getElementById("ifrMain")){
var demo = document.getElementById("ifrMain");
demo.remove();
}
if(document.getElementById("cphBottom_ifrGilTower")){
var demo = document.getElementById("cphBottom_ifrGilTower");
demo.remove();
}
if(document.getElementById("divBottom")){
var demo = document.getElementById("divBottom");
demo.remove();
}
if(document.getElementById("lnkMainBanner")){
var demo = document.getElementById("lnkMainBanner");
demo.remove();
}
var scriptTag = document.createElement("base");
scriptTag.target = "_self";
(document.getElementsByTagName("head")[0] || document.documentElement ).appendChild(scriptTag);
var links = document.links, i, length;
for (i = 0, length = links.length; i < length; i++) {
links[i].target == '_blank' && links[i].removeAttribute('target');
}