2013-08-04 15:11:29 +02:00
|
|
|
function adblock_whitelist_blacklist(id, whitelist_blacklist) {
|
|
|
|
if(whitelist_blacklist == 0)
|
2014-02-13 02:40:13 +01:00
|
|
|
document.getElementById(id).innerHTML = _t('P_ADBLOCK_BLACKLIST');
|
2013-08-04 15:11:29 +02:00
|
|
|
else
|
2014-02-13 02:40:13 +01:00
|
|
|
document.getElementById(id).innerHTML = _t('P_ADBLOCK_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;
|
|
|
|
}
|