From franktbrady at comcast.net Sun Oct 12 12:58:06 2008 From: franktbrady at comcast.net (Frank T Brady) Date: Sun, 12 Oct 2008 15:58:06 -0400 Subject: [Livehttpheaders] firefox 3.0.3 incompatibility Message-ID: <48F256CE.4080407@comcast.net> Hello, I was elated to find this tool - it's exactly what I've been looking for. That is, if it will allow me to see what browser request and format is sent when I press a button on a web site form. Unfortunately, firefox said the add in was incompatible with 3.0.3. If a compatible version becomes available, will I then be unable to accept firefox automatic updates? Thanks Frank Brady From bob.farrell at phgroup.com Mon Oct 13 06:55:29 2008 From: bob.farrell at phgroup.com (Bob Farrell) Date: Mon, 13 Oct 2008 14:55:29 +0100 Subject: [Livehttpheaders] Filter by row Message-ID: <20081013135529.GE4673@mote> Hello, Well, we use livehttpheaders here a lot for various things and stuff, but I was nothing short of overwhelmed with the amount of data being flushed out. My poor synapses simlpy could not process all that data fast enough ! So, I've added a thing that lets you filter each row with a regex. I think I've conformed to the same style as the rest of the code and it's only a few lines. Please find attached a "cvs diff" and "cvs diff -u" both done from the root directory; let me know if you want something better. Bang bang, -- -------------------------- Bob Farrell pH, an Experian Company www.phgroup.com Office Line: 020 7598 0310 Fax: 020 7598 0311 -------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: filter_rows.diff Type: text/x-diff Size: 2223 bytes Desc: not available URL: -------------- next part -------------- ? filter_rows.diff ? filter_rows.unified_diff ? tmp ? content/.LiveHTTPHeaders.js.swp ? content/.LiveHTTPHeaders.xul.swp Index: content/LiveHTTPHeaders.js =================================================================== RCS file: /cvs/livehttpheaders/src/content/LiveHTTPHeaders.js,v retrieving revision 1.10 diff -u -r1.10 LiveHTTPHeaders.js --- content/LiveHTTPHeaders.js 24 May 2008 14:29:31 -0000 1.10 +++ content/LiveHTTPHeaders.js 13 Oct 2008 13:47:29 -0000 @@ -29,6 +29,7 @@ // - observeResponse(uri, request, response, postData, isRedirect) var oHeaderInfoLive; + function startHeaderInfoLive() { oHeaderInfoLive = new HeaderInfoLive(); oHeaderInfoLive.start(); @@ -94,6 +95,8 @@ this.filterRegexp = this.getCharPref(this.lpref, "filterRegexp",'/$|\.html$'); // Filter mode this.useexclude = this.getBoolPref(this.lpref, "exclude", false); // exclude mode this.excludeRegexp = this.getCharPref(this.lpref, "excludeRegexp",'\.gif$|\.jpg$|\.ico$|\.css$|\.js$'); // exclude mode + this.useRowFilter = this.getCharPref(this.lpref, "useRowFilter", false); + this.rowFilterRegexp = this.getCharPref(this.lpref, "rowFilterRegexp", ''); } HeaderInfoLive.prototype = { @@ -180,6 +183,9 @@ // Tree utility functions addRow: function(row, type) { + if ((type != this.SEPARATOR) && this.useRowFilter && !row.match(this.rowFilterRegexp)) { + return; + } // Compute the style var style; if (this.rows>0) { @@ -372,6 +378,8 @@ document.getElementById("headerinfo-filterRegexp").value=this.filterRegexp; document.getElementById("headerinfo-exclude").checked=this.useexclude; document.getElementById("headerinfo-excludeRegexp").value=this.excludeRegexp; + document.getElementById("headerinfo-rowFilterRegexp").value=this.rowFilterRegexp; + document.getElementById("headerinfo-rowFilter").checked=this.useRowFilter; } catch (ex) {} // Set scrollbar @@ -603,6 +611,14 @@ setTab : function(tab) { this.setBoolPref(this.lpref, "tab", tab); }, + setRowFilter : function(filter) { + this.setBoolPref(this.lpref, "rowFilter", filter); + this.useRowFilter = filter; + }, + setRowFilterRegexp : function(regex) { + this.setCharPref(this.lpref, "rowFilterRegexp", regex); + this.rowFilterRegexp = regex; + }, setFilter : function(filter) { this.setBoolPref(this.lpref, "filter", filter); this.usefilter = filter; Index: content/LiveHTTPHeaders.xul =================================================================== RCS file: /cvs/livehttpheaders/src/content/LiveHTTPHeaders.xul,v retrieving revision 1.17 diff -u -r1.17 LiveHTTPHeaders.xul --- content/LiveHTTPHeaders.xul 12 May 2008 04:49:14 -0000 1.17 +++ content/LiveHTTPHeaders.xul 13 Oct 2008 13:47:29 -0000 @@ -158,6 +158,14 @@ value="" oninput="oHeaderInfoLive.setFilterRegexp(this.value)"/> + + + + + +