I have changed the assigntarget function and furnished below. Comment the default one and insert this one.
Code:
assigntarget: function() {
var rexcludedomains = new RegExp(this.excludedomains.join("|"), "i") var all_links = document.getElementsByTagName("a") if (this.mode == "auto" || (this.mode == "manual" && this.togglebox.checked)) {
for (var i = 0; i <= (all_links.length - 1); i++) {
if (all_links[i].hostname.search(rexcludedomains) == -1 && all_links[i].href.indexOf("http:") != -1)
if (ddwindowlinks.linktarget === '_blank') {
all_links[i].removeAttribute('target');
all_links[i].onclick = function() {
window.open(this.href, "");
return false;
};
}
}
} else {
for (var i = 0; i <= (all_links.length - 1); i++) all_links[i].target = ""
}
if (this.mode == "manual" && this.persist) this.setCookie("dlinktarget", (this.togglebox.checked) ? "yes": "no", 30) //remember user setting for 30 days (set to -1 then reload page to erase cookie)
}
At the moment I haven't used any of the parameters that can be used while opening a new window. You can use them based on your requirement.
Hope this helps.
Bookmarks