Skip to content

Instantly share code, notes, and snippets.

@rakauchuk
Created January 19, 2015 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakauchuk/1d4c2a4eae02bc83779b to your computer and use it in GitHub Desktop.
Save rakauchuk/1d4c2a4eae02bc83779b to your computer and use it in GitHub Desktop.
handle ajaxComlete in chrome ext (jquery) v2
var actualCode = '(' + function () {
$(document).ajaxComplete(function () {
console.log('ajaxComplete');
});
} + ')();';
var script = document.createElement('script');
script.textContent = actualCode;
(document.head || document.documentElement).appendChild(script);
script.parentNode.removeChild(script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment