Skip to content

Instantly share code, notes, and snippets.

@TheGP
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save TheGP/1b221e22ab29caef5554 to your computer and use it in GitHub Desktop.

Select an option

Save TheGP/1b221e22ab29caef5554 to your computer and use it in GitHub Desktop.
smartresponder bookmarklet setting tags to every link in an email
var waiting_popup = null;
function proclick() {
waiting_popup = null;
if (0 != $('#module #links_area button.convetror').length) {
$('#module #links_area button.convetror').first().trigger('click');
if (0 != $('div.convertor_area:visible input[type=button].btn-green').length) {
$('div.convertor_area:visible input[type=button].btn-green').trigger('click');
waiting_popup = setInterval(function(){
if (0 != $('#modalWindowusedLinksConvertor_area ul.dkim_domain_check_failure_list a:first').length) {
$('#modalWindowusedLinksConvertor_area ul.dkim_domain_check_failure_list a:first').trigger('click');
clearInterval(waiting_popup);
setTimeout(function() {
proclick();
}, 100);
}
}, 100);
}
}
}
proclick();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment