It's possible to accept cookies clicking on the text reporting a resource as blocked, this requires some custom javascript as below:
Code: |
function insert_GDPRAcceptBtn_in_Placeholdertext() {
$placeHolders = jQuery("div.gdprlock-placeholder-text");
$placeHolders.each(function(){
placeHolderContent = jQuery(this).html();
jQuery(this).html(placeHolderContent.replace('<button>','<button onclick="jQuery(\'a.cc-allow\').trigger(\'click\');">'));
});
}
|
Code: |
jQuery(window).on('load', function() {
insert_GDPRAcceptBtn_in_Placeholdertext();
});
|