Skip to content

Instantly share code, notes, and snippets.

@TheGP
Created July 15, 2015 22:11
Show Gist options
  • Select an option

  • Save TheGP/653854504907b445ac5b to your computer and use it in GitHub Desktop.

Select an option

Save TheGP/653854504907b445ac5b to your computer and use it in GitHub Desktop.
Turn off comebacker (cb) at any click on the page. jQuery is required.
var cb_to_turn_off_id = 123; // вставить ID камбекера который нужно отключить
var cb_turned_off = false;
$(document).ready(function(){
$('*').click(function(){
if ('undefined' != typeof(comebacker) && false == cb_turned_off) {
comebacker['settings']['launch'] = true;
comebacker_create_cookie('comebacker_was_shown[' + cb_to_turn_off_id + ']', 1, 365);
cb_turned_off = true;
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment