Created
July 15, 2015 22:11
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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