Changeset 45
- Timestamp:
- 04/12/06 17:16:34 (2 years ago)
- Files:
-
- trunk/Makefile (modified) (2 diffs)
- trunk/overhaul_handler.js (added)
- trunk/overhaul_headers.js (modified) (3 diffs)
- trunk/overlays.xul (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Makefile
r41 r45 5 5 # content/ 6 6 # overhaul/ 7 # myDump.js 7 8 # overlays.xul 8 9 # overhaul_headers.js 9 # overhaul_host.js 10 # myDump.js 10 # parse_hosts.js 11 11 # 12 12 # install.rdf … … 20 20 cp overlays.xul ${OUTPUT_DIR}/content/overhaul 21 21 cp overhaul_headers.js ${OUTPUT_DIR}/content/overhaul 22 cp overhaul_host.js ${OUTPUT_DIR}/content/overhaul22 cp parse_hosts.js ${OUTPUT_DIR}/content/overhaul 23 23 cp myDump.js ${OUTPUT_DIR}/content/overhaul 24 24 trunk/overhaul_headers.js
r40 r45 45 45 // OBSERVES: http-on-examine-response 46 46 // 47 var httpResponseReader = { 47 var httpResponseReader = { 48 48 observe: function(subject,topic,data) { 49 49 // … … 60 60 subject = subject.QueryInterface(Components.interfaces.nsIHttpChannel); 61 61 try { 62 var value = subject.getResponseHeader("Overhaul-chunks");62 var hosts_header = subject.getResponseHeader("Overhaul-hosts"); 63 63 } 64 64 catch( e ) { … … 68 68 69 69 // 70 // PerformOverhaul functions70 // Organize Overhaul functions 71 71 // 72 72 myDump("Entering Overhaul mode..."); 73 // TODO Everything else. 73 74 var hosts = parse_hosts(hosts_header); 75 76 while(1) { 77 myDump(hosts.ipStringList.length); 78 } 79 74 80 } 75 81 }; trunk/overlays.xul
r36 r45 3 3 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 4 4 <script src="myDump.js" /> 5 <script src="parse_hosts.js" /> 5 6 <script src="overhaul_headers.js" /> 6 <script src="overhaul_host.js" />7 7 </overlay>
