Question

I'm trying to test if there would be any conflicts with changing the version of jQuery on an online website but don't have access to the source currently.

Is there any way to replace jQuery on-the-fly? I.e. with Firebug or Chrome Dev Tools?

Was it helpful?

Solution

You can replace the jQuery on the page temporarily by another version. To do so just execute include("jquery") within Firebug's Command Line. This will add the latest version of jQuery.

Though note that this only replaces the version on the client side, the server source stays untouched. Devtools like Firebug and the Chrome DevTools work on the client side and don't have access to the server file structure.

OTHER TIPS

I'd try some sort of /etc/hosts/ hosts.ini change where on your local machine

//hostedloc/jquery/jquery.js

Now effectively points to your own version of the file.

NO you can not , if you change it using firebug and Chrome Dev Tools you only see the difference in the current time when you refresh the page you will lose every changes you made

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top