Created
January 19, 2015 12:40
-
-
Save rakauchuk/1d4c2a4eae02bc83779b to your computer and use it in GitHub Desktop.
handle ajaxComlete in chrome ext (jquery) v2
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 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