2013-08-04 15:11:29 +02:00
|
|
|
function adblock_whitelist_blacklist(id, whitelist_blacklist) {
|
|
|
|
if(whitelist_blacklist == 0)
|
2013-12-08 16:22:40 +01:00
|
|
|
document.getElementById(id).innerHTML = "Blacklist:";
|
2013-08-04 15:11:29 +02:00
|
|
|
else
|
2013-12-08 16:22:40 +01:00
|
|
|
document.getElementById(id).innerHTML = "Whitelist:";
|
2013-08-04 15:11:29 +02:00
|
|
|
}
|
2013-08-05 14:41:48 +02:00
|
|
|
|
|
|
|
function adblock_unblock_img(span, url) {
|
|
|
|
if($(span).html() != "X")
|
|
|
|
return true;
|
|
|
|
|
|
|
|
$(span).html("<img src='"+url+"'/>");
|
|
|
|
$(span).removeClass("blocked_image");
|
|
|
|
return false;
|
|
|
|
}
|
2013-08-05 22:42:10 +02:00
|
|
|
|
|
|
|
function adblock_unblock_flash(span, new_content) {
|
|
|
|
if($(span).html() != "X")
|
|
|
|
return true;
|
|
|
|
|
|
|
|
$(span).html(new_content);
|
|
|
|
$(span).removeClass("blocked_flash");
|
|
|
|
return false;
|
|
|
|
}
|