×

Give a tip

Block Embedded Javascript


ddn2003
 Share

Recommended Posts

How can I block an embedded javascript on a page.

function getQueryVariable(variable)

{

var query = window.location.search.substring(1);

var vars = query.split("&");

for (var i=0;i

var pair = vars.split("=");

if(pair == variable){return pair;}

}

return(false);

}

var affid = getQueryVariable("affid");

var clickid = getQueryVariable("clickid");

var subid = getQueryVariable("subid");

var bannerid = "0";

The alert line changes every time the page loads.

Tip   Give
Link to comment
Share on other sites

Hi ddn2003,

Glad to talk to you.

Actually Maxthon does not support blocking inline javascripts.

A workaround ,complicated way, is to inject a js at the document start point with our extension system. That js should re-write the window.alert function if you want to block the alert.

Tip   Give
Link to comment
Share on other sites

 Share