javascript - How to retrieve native function code after it was redefined by third-party js? -
i'm writing userscript tumblr makes ajax calls api on array of data , need responses come in order data in array. advised use promises article shows (http://www.html5rocks.com/en/tutorials/es6/promises/#toc-parallelism-sequencing).
it works on individual tumblr blog pages, not on dashboard, native implementation of promise overwritten index.js. result, promise lacks .resolve() ability , code doesn't work.
can still find way use native promise or have seek other ways? i'd prefer stick promises avoid having different code single use case. alternatively, have use jquery same functionality , don't know how.
right i'm solving force-loading of promise polyfill github, doesn't feel right.
Comments
Post a Comment