Zero Internet is (currently just) a Firefox add-on that lets you browse the Internet as though you were connected to a zero-rating plan. You can install it from Mozilla.

The source code is at github.com/asdofindia/zero-internet