Rewrite certain URL's in any website (Firefox/Greasemonkey)

blanka

macrumors 68000
Original poster
Jul 30, 2012
1,549
3
I think Google is EVIL, so I want to get there snooping nose out of as much of my surfing as possible, but more and more websites are using ajax.googleapis.com to host their jquery needs (too lazy to host themselves), and that delivers a privacy breach.

What I want to do is copy those .js files locally. Its just a few files and folders.

But now I need a Firefox add-on or Greasemonkey script that turns:

http://ajax.googleapis.com/ajax
into
file://~/Sites/ajax

How can I do that? What tool works best
 

iPaintCode

macrumors regular
Jun 24, 2012
136
34
Metro Detroit
That's basically a content delivery network for commonly used JS libs, nothing to do with evil or lazy. http://cdnjs.com does the same thing, just a ton more libs. Also if you do this for jQuery, expect to have all the milestone builds, not every site uses the latest and greatest jQuery build. Some are still stuck on 1.4.2 or some are using cutting edge with 2.x and that also impacts jQuery plugins as well.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.