diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 7a13c56..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-*.xpi
-*.suo
-*.sln
\ No newline at end of file
diff --git a/.project b/.project
new file mode 100644
index 0000000..b96df9f
--- /dev/null
+++ b/.project
@@ -0,0 +1,11 @@
+
+
+ FireRecord
+
+
+
+
+
+
+
+
diff --git a/README.md b/README.md
deleted file mode 100644
index e8f0e20..0000000
--- a/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-FireRecord
-============
-
-A firebug plugin which provides web automation to do automated testing or mundane tasks.
-Developers: Peter Atechian, Rylan Doherty, David Westgate
\ No newline at end of file
diff --git a/TestJScripts.html b/TestJScripts.html
deleted file mode 100644
index 2148d9e..0000000
--- a/TestJScripts.html
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
- This is the title of the document
-
-
-
-
- table heading |
-
- Table Cell |
-
-
- Level 1 Heading
-
- Anchor
-
-
-
- 
- This is a paragraph
-
- This is a quotation
- This is a summary
-
-
-
-
-
-
-
- - list item
-
- div
-
-
-
-
diff --git a/analyze.js b/analyze.js
deleted file mode 100644
index e1426d1..0000000
--- a/analyze.js
+++ /dev/null
@@ -1,120 +0,0 @@
-function analyze() {
- var all = document.getElementsByTagName("*");
- for (var i = 0; i < all.length; ++i) {
- var info = new Array();
- var validtags = ["A", "BUTTON", "FORM", "IMG", "INPUT", "LINK", "OPTION", "SELECT", "TABLE", "TEXTAREA"];
- if (validtags.indexOf(all[i].tagName) < 0) continue;
- info[0] = all[i].tagName;
- switch (info[0]) {
- case "INPUT":
- info[1] = all[i].getAttribute("type");
- break;
- case "A":
- info[1] = all[i].getAttribute("href");
- break;
- case "BUTTON":
- info[1] = all[i].getAttribute("name");
- info[2] = all[i].getAttribute("type");
- info[3] = all[i].getAttribute("value");
- info[4] = all[i].getAttribute("form");
- break;
- case "FORM":
- info[1] = all[i].getAttribute("name");
- info[2] = all[i].getAttribute("length");
- info[3] = all[i].getAttribute("target");
- info[4] = all[i].getAttribute("action");
- break;
- case "IMG":
- info[1] = all[i].getAttribute("name");
- info[2] = all[i].getAttribute("src");
- info[3] = all[i].getAttribute("align");
- break;
- case "INPUT":
- info[1] = all[i].getAttribute("name");
- info[2] = all[i].getAttribute("type");
- info[3] = all[i].getAttribute("value");
- break;
- case "LINK":
- info[1] = all[i].getAttribute("href");
- info[2] = all[i].getAttribute("type");
- info[3] = all[i].getAttribute("charset");
- break;
- case "OPTION":
- info[1] = all[i].getAttribute("text");
- info[2] = all[i].getAttribute("value");
- info[3] = all[i].getAttribute("index");
- break;
- case "SELECT":
- info[1] = all[i].getAttribute("type");
- info[2] = all[i].getAttribute("name");
- info[3] = all[i].getAttribute("size");
- break;
- case "TABLE":
- info[1] = all[i].getAttribute("summmary");
- info[2] = all[i].getAttribute("caption");
- break;
- case "TEXTAREA":
- info[1] = all[i].getAttribute("name");
- info[2] = all[i].getAttribute("type");
- info[3] = all[i].getAttribute("value");
- break;
-
- }
- generatescript(info);
- }
-}
-function generatescript(info) {
- var command;
- switch (info[0]) {
- case "A":
- command = "window.location.href = '" + info[1] + "';"
- break;
- case "BUTTON":
- command = "button.name = '" + info[1] + "';"
- + "button.type = '" + info[2] + "';"
- + "button.value = '" + info[3] + "';"
- + "button.form = '" + info[4] + "';";
- break;
- case "FORM":
- command = "form.name = '" + info[1] + "';"
- + "form.length = '" + info[2] + "';"
- + "form.target = '" + info[3] + "';"
- + "form.action = '" + info[4] + "';";
- break;
- case "IMG":
- command = "img.name = '" + info[1] + "';"
- + "img.src = '" + info[2] + "';"
- + "img.align = '" + info[3] + "';";
- break;
- case "INPUT":
- command = "input.name = '" + info[1] + "';"
- + "input.type = '" + info[2] + "';"
- + "input.value = '" + info[3] + "';";
- break;
- case "LINK":
- command = "link.href = '" + info[1] + "';"
- + "link.type = '" + info[2] + "';"
- + "link.charset = '" + info[3] + "';";
- break;
- case "OPTION":
- command = "option.text = '" + info[1] + "';"
- + "option.value = '" + info[2] + "';"
- + "option.index = '" + info[3] + "';";
- break;
- case "SELECT":
- command = "select.type = '" + info[1] + "';"
- + "select.name = '" + info[2] + "';"
- + "select.size = '" + info[3] + "';";
- break;
- case "TABLE":
- command = "table.summary = '" + info[1] + "';"
- + "table.caption = '" + info[2] + "';";
- break;
- case "TEXTAREA":
- command = "window.location.name = '" + info[1] + "';"
- + "table.type = '" + info[2] + "';"
- + "table.value = '" + info[3] + "';";
- break;
- }
- alert(command);
-}
diff --git a/assemble.bat b/assemble.bat
deleted file mode 100644
index 3297acf..0000000
--- a/assemble.bat
+++ /dev/null
@@ -1,9 +0,0 @@
-if exist "C:\Program Files\7-Zip\7z.exe" (
- "C:\Program Files\7-Zip\7z.exe" a FireRecord.zip chrome defaults chrome.manifest install.rdf
-) else if exist "C:\Program Files (x86)\7-Zip\7z.exe" (
- "C:\Program Files (x86)\7-Zip\7z.exe" a FireRecord.zip chrome defaults chrome.manifest install.rdf
-) else (
- "C:\Program Files\WinRAR\rar.exe" a FireRecord.zip chrome defaults chrome.manifest install.rdf
-)
-move FireRecord.zip FireRecord.xpi
-start "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" FireRecord.xpi
diff --git a/chrome.manifest b/chrome.manifest
index c7e5f9c..308bd66 100644
--- a/chrome.manifest
+++ b/chrome.manifest
@@ -1,3 +1,8 @@
-content firerecord chrome/content/
-skin firerecord classic/1.0 chrome/skin/classic/
-overlay chrome://firebug/content/firebugOverlay.xul chrome://firerecord/content/firerecord.xul
+content firerecord chrome/content/
+content firerecord chrome/content/ contentaccessible=yes
+overlay chrome://browser/content/browser.xul chrome://firerecord/content/browserx.xul
+
+locale firerecord en-US locale/en-US/
+
+skin firerecord classic/1.0 skin/
+style chrome://global/content/customizeToolbar.xul chrome://firerecord/skin/skin.css
\ No newline at end of file
diff --git a/chrome/content/browserx.xul b/chrome/content/browserx.xul
new file mode 100644
index 0000000..7b07092
--- /dev/null
+++ b/chrome/content/browserx.xul
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chrome/content/firerecord.js b/chrome/content/firerecord.js
index cc78d54..6691abc 100644
--- a/chrome/content/firerecord.js
+++ b/chrome/content/firerecord.js
@@ -1,249 +1,258 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-FBL.ns(function () {
- with (FBL) {
- // Panel
- var panelName = "firerecord";
+var recordingx = false;
- /**
- * @panel This panel integrates with Firebug Inspector API and provides own logic
- * and display of custom information for links. This code serves as an example of
- * how to properly use and implement Inspector.
- */
- function FireRecordPanel() { }
- FireRecordPanel.prototype = extend(Firebug.Panel,
- /** @lends LinkInspectorPanel */
- {
- name: panelName,
- title: "FireRecord",
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
- // Initialization
-
- initialize: function () {
- Firebug.Panel.initialize.apply(this, arguments);
- if (FBTrace.DBG_ACTIVABLEPANEL)
- FBTrace.sysout("ActivablePanel.initialize;");
- Firebug.Inspector.addListener(this);
-
- },
-
- destroy: function (state) {
- Firebug.Panel.destroy.apply(this, arguments);
-
- Firebug.Inspector.removeListener(this);
- },
-
- show: function (state) {
- Firebug.Panel.show.apply(this, arguments);
- this.showToolbarButtons("panelButtons", true);
- FireRecordPlate.tag.replace({ array: inputArray }, this.panelNode);
- //FireRecordPlate.defaultContent.replace({}, this.panelNode);
- },
- getOptionsMenuItems: function (context) {
- return [
- // Will be resolved to "extensions.firebug.myoptionprefname"
- optionMenu("Custom Scripts", "myoptionprefname", "Allow Custom Script")
- ];
- },
- onActivationChanged: function (enable) {
- if (FBTrace.DBG_ACTIVABLEPANEL)
- FBTrace.sysout("ActivablePanel.onActivationChanged; " + enable);
-
- if (enable)
- Firebug.MyActivableModule.addObserver(this);
- else
- Firebug.MyActivableModule.removeObserver(this);
- },
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
- // Inspector API implementation
-
- startInspecting: function () {
- if (FBTrace.DBG_FIRERECORD)
- FBTrace.sysout("fire_record; startInspecting()");
- },
-
- inspectNode: function (node) {
- if (FBTrace.DBG_FIRERECORD)
- FBTrace.sysout("fire_record; inspectNode(node: " + node.tagName + ")");
-
- FireRecordPlate.tName.replace({ object: node }, this.panelNode);
- },
-
- stopInspecting: function (node, canceled) {
- if (FBTrace.DBG_FIRERECORD)
- FBTrace.sysout("fire_record; stopInspecting(node: " + node.tagName +
- ", canceled: " + canceled + ")");
-
- if (canceled)
- return;
-
- if (node.href.indexOf("http") != 0)
- return;
-
- FireRecordPlate.linkPreview.replace({ object: node }, this.panelNode);
- },
-
- supportsObject: function (object, type) {
- if (object instanceof Element) {
- if (object.tagName.toLowerCase() == "a") {
- return 1;
- }
- if (object.tagName.toLowerCase() == "button") {
- return 1;
- }
- if (object.tagName.toLowerCase() == "img") {
- return 1;
- }
- if (object.tagName.toLowerCase() == "input") {
- return 1;
- }
- }
-
- return 0;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
- // Inspector Listener
-
- onStartInspecting: function (context) {
- if (FBTrace.DBG_FIRERECORD)
- FBTrace.sysout("fire_record; Listener.onStartInspecting(context: " +
- context.getTitle() + ")");
- },
-
- onInspectNode: function (context, node) {
- if (FBTrace.DBG_FIRERECORD)
- FBTrace.sysout("fire_record; Listener.onInspectNode(context: " +
- context.getTitle() + ", node: " + node.tagName + ")");
- },
-
- onStopInspecting: function (context, node, canceled) {
- if (FBTrace.DBG_FIRERECORD)
- FBTrace.sysout("fire_record; Listener.onStopInspecting(context: " +
- context.getTitle() + ", node: " + node.tagName + ", canceled: " +
- canceled + ")");
+window.addEventListener("load", function load(event) {
+ window.removeEventListener("load", load, false); //remove listener, no longer needed
+ firerecord.init();
+}, false);
+
+var firerecord = function () {
+ var prefManager = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
+ return {
+ init: function () {
+ var appcontent = document.getElementById("appcontent"); // browser
+ if (appcontent) {
+ appcontent.addEventListener("DOMContentLoaded", firerecord.run, true);
}
- });
+ },
+ running: function (){
+ if(recordingx){
+ recordingx = false;
+ alert("Stop Listen");
+ //document.location.reload();
+ //closes all tabs on firefox.
+ }
+ else{
+ recordingx = true;
+ alert("Start Listen");
+ firerecord.run();
+ }
+
+ },
+ file: function(){
+
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
- var inputArray = ["red", "green", "blue", "white"];
+ },
+ run : function () {
+ var head = content.document.getElementsByTagName("head")[0],
+ style = content.document.getElementById("link-target-finder-style"),
+ all = content.document.getElementsByTagName("*"),
+ foundElements = 0;
- var FireRecordPlate = domplate(
- {
- tag:
- FOR("item", "$array",
- DIV({ onclick: "$handleClick" },
+ var info = new Array(); // Made this global
+ var Recording = true; // Just need this until we finish with the the buttons.
- "$item"
- )
- ),
-
- handleClick: function (event) {
-
- alert(event.target.innerHTML);
- }
- });
-
-
-
-
- /*var FireRecordPlate = domplate(
- {
-
-
- tName:
- DIV({"class": "tName"}, "$object.id" ),
-
- linkPreview:
- IFRAME({"class": "linkPreview", "src": "$object.href"}),
-
- defaultContent:
- DIV({"class": "defaultContent"},
- "Use Trial by Fire to record DOM events for later playback."
- )
- });*/
-
- // ********************************************************************************************* //
- // Module & Customizing Tracing
-
- /**
- * @module The module object isn't really neccessary for the Inspector API. It serves
- * only to support Firebug tracing console, which is useful when debugging inspector
- * features.
- */
- Firebug.FireRecordModule = extend(Firebug.ActivableModule,
- /** @lends Firebug.FireRecordModule */
- {
- initialize: function () {
- Firebug.ActivableModule.initialize.apply(this, arguments);
-
- if (Firebug.TraceModule)
- Firebug.TraceModule.addListener(this);
- },
-
- onMyButton: function () {
- alert("hi");
- },
- shutdown: function () {
- Firebug.ActivableModule.shutdown.apply(this, arguments);
-
- if (Firebug.TraceModule)
- Firebug.TraceModule.removeListener(this);
- },
- onObserverChange: function (observer) {
- if (FBTrace.DBG_ACTIVABLEPANEL)
- FBTrace.sysout("ActivableModule.onObserverChange;");
-
- if (this.hasObservers()) {
- // There are observers (panels) using this model, let's activate necessary hooks.
- }
- else {
- // There are no observer using this model, let's clean up registered hooks.
- }
- },
-
- onSuspendFirebug: function (context) {
- if (FBTrace.DBG_ACTIVABLEPANEL)
- FBTrace.sysout("ActivableModule.onSuspendFirebug;");
- },
-
- // Called before any suspend actions. Firest caller to return true aborts suspend.
- onSuspendingFirebug: function () {
- if (FBTrace.DBG_ACTIVABLEPANEL)
- FBTrace.sysout("ActivableModule.onSuspendingFirebug;");
- },
-
- onResumeFirebug: function (context) {
- if (FBTrace.DBG_ACTIVABLEPANEL)
- FBTrace.sysout("ActivableModule.onResumeFirebug;");
- },
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
- // Trace Listener
-
- onLoadConsole: function (win, rootNode) {
- appendStylesheet(rootNode.ownerDocument, "chrome://firerecord/skin/inspector.css");
- },
-
- onDump: function (message) {
- var index = message.text.indexOf("fire_record;");
- if (index == 0) {
- message.text = message.text.substr("fire_record;".length);
- message.text = trim(message.text);
- message.type = "DBG_FIRERECORD";
- }
+ if (!style) {
+ style = content.document.createElement("link");
+ style.id = "link-target-finder-style";
+ style.type = "text/css";
+ style.rel = "stylesheet";
+ style.href = "chrome://firerecord/skin/skin.css";
+ head.appendChild(style);
}
- });
+
+ // Find all elements attributes and add a listener
+ //-----------------------------------------------------------
+ // Add author(s) to this section. Who did this? David and Peter?
+ for (var i = 0; i < all.length; ++i) {
+ //Define the classname variable
+ elm = all[i];
+ //deleted local call to new array info
+ var validtags = ["A", "BUTTON", "FORM", "IMG", "INPUT", "LINK", "OPTION", "SELECT", "TABLE", "TEXTAREA"];
+ //Add a click event listener to all the valid tags.
+ if (validtags.indexOf(all[i].tagName) < 0) continue;
+
+ info[0] = all[i].tagName;
+
+ //Feel free to change this to a for each...
+ if(recordingx){
+ switch (info[0]) {
+ //All of these cases need null checks for each attribute.
+ case "INPUT":
+
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleType, false);
+ break;
+ case "A":
+
+ elm.addEventListener("click", handleEvent);
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+ case "BUTTON":
+
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+ case "FORM":
+
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+ case "IMG":
+
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+ case "INPUT":
+
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+ case "LINK":
+
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+ case "OPTION":
+
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+ case "SELECT":
+
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+ case "TABLE":
+ info[1] = all[i].getAttribute("summmary");
+ info[2] = all[i].getAttribute("caption");
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+ case "TEXTAREA":
+ elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
+ elm.addEventListener("click", handleEvent, false);
+ break;
+
+ }
+ }
+
+ }
+ //----------------------------------------------------------------
+
+ }
- // Registration
+ };
- Firebug.registerPanel(FireRecordPanel);
- Firebug.registerModule(Firebug.FireRecordModule);
- Firebug.registerStylesheet("chrome://firerecord/skin/inspector.css");
+ //Need to add author to this part...
+ //Need to add author to this part...
+ function handleEvent(e) {
+ var targ;
+ if (!e) {
+ var e = window.event;
+ }
+ if (e.target) {
+ targ = e.target;
+ }
+ else if (e.srcElement) {
+ targ = e.srcElement;
+ }
+ //---------------------------------------------------------------------
+ //_____________________________________________________________________
+ var tname;
+ var taginfo = new Array();
+ tname = targ.tagName;
+ taginfo[0] = tname;
+
+ //Feel free to change this to a for each...
+ switch (tname) {
+ //All of these cases need null checks for each attribute.
+
+ case "A":
+ taginfo[1] = targ.href;
+
+ break;
+ case "BUTTON":
+ taginfo[1] = targ.name;
+ taginfo[2] = targ.type;
+ taginfo[3] = targ.value;
+ taginfo[4] = targ.form;
+
+ break;
+ case "FORM":
+ taginfo[1] = targ.name;
+ taginfo[2] = targ.length;
+ taginfo[3] = targ.target;
+ taginfo[4] = targ.action;
+
+ break;
+ case "IMG":
+ taginfo[1] = targ.name;
+ taginfo[2] = targ.src;
+
+ break;
+ case "INPUT":
+ taginfo[1] = targ.name;
+ taginfo[2] = targ.type;
+ taginfo[3] = targ.value;
+
+ break;
+ case "LINK":
+ taginfo[1] = targ.href;
+ taginfo[2] = targ.type;
+ taginfo[3] = targ.charset;
+
+ break;
+ case "OPTION":
+ taginfo[1] = targ.text;
+ taginfo[2] = targ.value;
+ taginfo[3] = targ.index;
+
+ break;
+ case "SELECT":
+ taginfo[1] = targ.type;
+ taginfo[2] = targ.name;
+ taginfo[3] = targ.size;
+
+ break;
+ case "TABLE":
+ taginfo[1] = targ.summmary;
+ taginfo[2] = targ.caption;
+
+ break;
+ case "TEXTAREA":
+ taginfo[1] = targ.name;
+ taginfo[2] = targ.type;
+ taginfo[3] = targ.value;
+
+ break;
+
+ }
+
+ alert(window.content.location.href);
+ if(!taginfo[1]){
+ taginfo[1]= "null";
+ }
+ if(!taginfo[2]){
+ taginfo[2]= "null";
+ }
+ if(!taginfo[3]){
+ taginfo[3]= "null";
+ }
+ if(!taginfo[4]){
+ taginfo[4]= "null";
+ }
+ alert("You clicked on a " + tname + " with info \n " + taginfo[1] + "\n"+ taginfo[2]+"\n"+taginfo[3]+"\n"+" saving... " + taginfo.join('::'));
+
+ e.cancelBubble = true;
+
+ };
+
+}();
+function handleType(e) {
+ var targ;
+ if (!e) {
+ var e = window.event;
}
-});
+ if (e.target) {
+ targ = e.target;
+ }
+ else if (e.srcElement) {
+ targ = e.srcElement;
+ }
+ alert("Type Changed");
+ e.cancelBubble = true;
+}
diff --git a/chrome/content/firerecord.xul b/chrome/content/firerecord.xul
deleted file mode 100644
index a3e405d..0000000
--- a/chrome/content/firerecord.xul
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/chrome/content/options.xul b/chrome/content/options.xul
new file mode 100644
index 0000000..b6f20f6
--- /dev/null
+++ b/chrome/content/options.xul
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chrome/skin/classic/inspector.css b/chrome/skin/classic/inspector.css
deleted file mode 100644
index 98399c3..0000000
--- a/chrome/skin/classic/inspector.css
+++ /dev/null
@@ -1,34 +0,0 @@
-/* See license.txt for terms of usage */
-
-/*************************************************************************************************/
-
-/* Style applied on the panel node. */
-.panelNode-firerecord {
- overflow: hidden;
-}
-
-.defaultContent {
- text-align: center;
- padding-top: 30px;
- color: gray;
-}
-
-.linkUrl {
- text-align: center;
- padding-top: 30px;
- color: blue;
-}
-
-.linkPreview {
- border: none;
- width: 100%;
- height: 100%;
-}
-
-/*************************************************************************************************/
-
-/* Firebug Tracing Console customization. All messages from this example use this color.
- This helps to distinguish logs from those coming from Firebug */
-.DBG_FIRERECORD {
- color: rgb(0, 101, 114);
-}
diff --git a/defaults/preferences/prefs.js b/defaults/preferences/prefs.js
index 284827a..9076e40 100644
--- a/defaults/preferences/prefs.js
+++ b/defaults/preferences/prefs.js
@@ -1 +1 @@
-pref("extensions.firebug.DBG_FIRERECORD", true);
\ No newline at end of file
+pref("extensions.firerecord.autorun", true);
\ No newline at end of file
diff --git a/install.rdf b/install.rdf
index 5caddfc..a079dc8 100644
--- a/install.rdf
+++ b/install.rdf
@@ -1,25 +1,23 @@
-
+
-
- firerecord@qcc.mass.edu
- 0.0.2
+
+ csc207qc@gmail.com
+ Fire Record
+ .8
+ 2
+ Quinsigamond Community College CS207
+ Records Browsing
+ http://www.qcc.edu/
+ chrome://firerecord/content/options.xul
-
-
-
- {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
- 1.5
- 18.*
-
-
-
-
- FireRecord
- Firebug Record Extension
- Quinsigamond Community College CSC 207
- http://qcccs.github.com/
-
+
+
+ {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
+ 4.0
+ 20.0.1
+
+
+
-
-
diff --git a/listener.html b/listener.html
deleted file mode 100644
index 74d219c..0000000
--- a/listener.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
-
- This is the title of the document
-
-
-
-
- table heading |
-
- Table Cell |
-
-
- Level 1 Heading
-
- Anchor
-
-
-
- 
- This is a paragraph
-
- This is a quotation
- This is a summary
-
-
-
-
-
-
-
- - list item
-
- div
-
-
-
-
diff --git a/listener.js b/listener.js
deleted file mode 100644
index 209fc2a..0000000
--- a/listener.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var spans = document.getElementsByTagName("*");
-if (window.attachEvent) { window.attachEvent('onload', your_function); }
-else if (window.addEventListener) { window.addEventListener('load', your_function, false); }
-else { document.addEventListener('load', your_function, false); }
-for (i = 0; i < spans.length; i++)
- spans[i].addEventListener("click", this.doSomething);
-function your_function() {
- alert("Done Loading!");
-}
-function doSomething(e) {
- var targ;
- if (!e) {
- var e = window.event;
- }
- if (e.target) {
- targ = e.target;
- }
- else if (e.srcElement) {
- targ = e.srcElement;
- }
- var tname;
- var idname;
-
- idname = targ.id;
- tname = targ.tagName;
- alert("You clicked on a " + tname + " element. Named " + idname + ".");
-}
diff --git a/locale.xpi b/locale.xpi
new file mode 100644
index 0000000..8983b22
Binary files /dev/null and b/locale.xpi differ
diff --git a/locale/en-US/translations.dtd b/locale/en-US/translations.dtd
new file mode 100644
index 0000000..a42a829
--- /dev/null
+++ b/locale/en-US/translations.dtd
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/scriptapi.js b/scriptapi.js
deleted file mode 100644
index eb841bb..0000000
--- a/scriptapi.js
+++ /dev/null
@@ -1,14 +0,0 @@
-function script_fire_event(element, type) {
- //Todo - https://developer.mozilla.org/en-US/docs/DOM/document.createEvent
- if (element.fireEvent) {
- element.fireEvent('on' + type);
- } else {
- var obj = document.createEvent('Event');
- obj.initEvent(type, true, true);
- element.dispatchEvent(obj);
- }
-}
-function script_find_element(id) {
- //Todo - Add parameters for rest of stuff
- return document.getElementById(id);
-}
\ No newline at end of file
diff --git a/skin/skin.css b/skin/skin.css
new file mode 100644
index 0000000..86e7871
--- /dev/null
+++ b/skin/skin.css
@@ -0,0 +1,12 @@
+#link-target-finder-toolbar-button {
+ list-style-image: url("chrome://firerecord/skin/toolbar-large.png");
+}
+
+#link-target-finder-status-bar-icon {
+ width: 83px;
+ margin: 0 5px;
+}
+
+.link-target-finder-selected {
+ outline: 2px solid CadetBlue !important;
+}
\ No newline at end of file
diff --git a/skin/status-bar.png b/skin/status-bar.png
new file mode 100644
index 0000000..63418fa
Binary files /dev/null and b/skin/status-bar.png differ
diff --git a/skin/toolbar-large.png b/skin/toolbar-large.png
new file mode 100644
index 0000000..1b33180
Binary files /dev/null and b/skin/toolbar-large.png differ
diff --git a/testscript.html b/testscript.html
deleted file mode 100644
index 2ac472c..0000000
--- a/testscript.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- Test
-
-
-
-
- This will be clicked by the script
- Test the script
-
-