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

Discussion in 'Web Design and Development' started by blanka, Jan 1, 2014.

  1. blanka macrumors 68000

    Joined:
    Jul 30, 2012
    #1
    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
     
  2. iPaintCode macrumors regular

    iPaintCode

    Joined:
    Jun 24, 2012
    Location:
    Metro Detroit
    #2
    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.
     

Share This Page