Giter Club home page Giter Club logo

firediff's Introduction

Firediff

Firediff is a Firebug extension that tracks changes to a pages DOM and CSS. This allows developers to examine the changes made in their debugging as well as those made by the page itself.

Features:

  • Monitor: Displays a log of all the changes made to the page. This can be filtered by Firebug and Application created changes.

  • Show Snapshot Displays a snapshot of the page's markup or CSS as a result of a given change.

  • Save Snapshot Saves a snapshot of the page's markup or CSS at a given point in time.

  • Unified Diff Generates a Unified Diff of the changes made to the page. The files generated by this represent the best guess match for the original source file and may require manual application.

Dependencies:

Firediff 1.1 requires Firebug 1.8 and Firefox 6.

Method of operation:

To track changes to the DOM, Firediff uses the DOM MutationEvents (http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-mutationevents) to record all changes made to the page by both Firebug edits and application edits.

In order to track CSS changes, Firediff relies on the Firebug.CSSModule to record changes made to the page's CSS. As a consequence of this, Firediff can only track changes made within Firebug. Any CSS modifications performed by the application will not be recorded by Firediff.

Data Model:

Firediff maintains an internal model of the changes that have occurred within the page. This model is able to combine related changes into single change as appropriate. Each event implemented in the model supports apply and revert functionality on arbitrary trees.

Building From Source:

Firediff source is available at http://fbug.googlecode.com/svn/diff/

From source Firediff can be run with or without Fireformat integrated. Without:

  • Checkout Firediff source
  • Register the project source directory path in the Firefox profile

When working in this mode no build scripts are necessary, but object to string formatting will not work unless Fireformat is installed as a separate extension.

With:

  • Checkout Firediff source
  • Checkout Fireformat source from http://fbug.googlecode.com/svn/extensions/fireformat/
  • In the Firediff directory create local.properties with an entry named fireformat_dir whose value points to the Fireformat directory
  • Run ant merge
  • Register the build/merged directory path in the Firefox profile

When working in this mode all functionality will be available but ant merge must be run after any changes are made to the source of either Firediff or Fireformat. This is the mode that Firediff currently ships.

Open Issues:

See TODO.txt or search the Firebug Google Code project for the firediff label. (http://code.google.com/p/fbug/issues/list?q=label%3Afirediff)

firediff's People

Contributors

janodvarko avatar johnjbarton avatar kpdecker avatar sebastianz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lujaw sebastianz

firediff's Issues

Firediff localizations are broken

When the browser e.g. uses the German locale (de), the Changes panel is not displayed at all because 1. the file isn't correctly referred to in the chrome.manifest file and 2. the localization of the firediff.PrevChange entity is incorrect.
Also there is a bunch of locales, which aren't defined within the manifest.

Sebastian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.