DevTips – How to Intercept Remote JavaScript Files and Replace Them


I hate it when I waste my time doing the same tasks over and over again. That’s why we created Nelio Content, so neither you or I get stuck with boring stuff! Check it out! Translated by Núria Adell.
I won’t get tired of repeating this. The world of web development is a jungle where no matter how experienced you are, any specimen can mess up your work. If this is what you do, you’ll know what I’m talking about. Doing evil is easier than it seems. And unfortunately, at Nelio we’ve already encountered more situations than we’d have liked where our plugins have stopped working because of the bad practices of third parties.
One of the most common problems you can find nowadays if you develop plugins for WordPress is the misuse of JavaScript. Many “developers” (to call them somehow elegant) don’t follow the rules of WordPress. And you can find unexpected surprises. Or even worse, your customers will find them
In this article I’ll explain how we spent a morning investigating the problem that a client of Nelio Content had and how we managed to solve it thanks to an extension for Google Chrome and Opera that streamlined the whole
Source: https://managewp.org/articles/15721/devtips-how-to-intercept-remote-javascript-files-and-replace-them




source https://williechiu40.wordpress.com/2017/07/26/devtips-how-to-intercept-remote-javascript-files-and-replace-them/