Skip to content

Instantly share code, notes, and snippets.

@balbuf
Created May 9, 2016 18:38
Show Gist options
  • Save balbuf/8dbd1e928fbe07ab6a69611185bbbc38 to your computer and use it in GitHub Desktop.
Save balbuf/8dbd1e928fbe07ab6a69611185bbbc38 to your computer and use it in GitHub Desktop.
Bookmarklet to stop subsequent WordPress heartbeat calls in the current page load (prepend with `javascript:`)
(function($,a,f){a=$.ajax,f={};f.done=f.fail=f.always=f.abort=function(){return f};$.ajax=function(d){return d&&d.data&&d.data.action=='heartbeat'?f:a.apply($,arguments)};console.log('\uD83D\uDC94')})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment