FrancescoSTL / Site-Sonar

A browser extension which silently crowd-sources ad performance as you browse. Let's put an end to bad ads.
http://site-sonar.com
Mozilla Public License 2.0
9 stars 2 forks source link

Issue #2 - Port to Web Extension #3

Closed FrancescoSTL closed 8 years ago

FrancescoSTL commented 8 years ago

Initial commit should reflect logging load time for all assets in a web-extensions skeleton.

To do:

  1. Implement disconnect list checker
  2. Update Readme
  3. Clean up JS/fs
FrancescoSTL commented 8 years ago

This PR currently implements a web extension which checks each request against disconnect's blacklist, and, in the event that it is blacklisted, logs the network response time for said request.

The next task I'll be tackling is benchmarking script runtime, as network load time doesn't paint the entire picture of on-page performance. I'm not sure how well we will be able to do this (if at all) in a web extension, but I will investigate.

FrancescoSTL commented 8 years ago

I think this should be good enough for a merge. It looks like performance stuff[1-3] is going to be impossible to implement as a web-extension for the time being.

The only other thing required for this project is logging the data somewhere.

Links: [1] Dev tool (performance) front-end https://github.com/mozilla/gecko-dev/tree/master/devtools/client/performance [2] Dev tool (performance) back-end https://github.com/mozilla/gecko-dev/tree/master/devtools/server/performance [3] Dev tool (performance) back-end https://github.com/mozilla/gecko-dev/blob/master/devtools/server/actors/performance.js