Adjusted formatting.
Signed-off-by: retep998 <retep998@verizon.net>
This commit is contained in:
parent
afd37fbf8d
commit
0427e0bf8f
@ -2,42 +2,42 @@
|
|||||||
<?xml-stylesheet href="chrome://linktargetfinder/skin/skin.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://linktargetfinder/skin/skin.css" type="text/css"?>
|
||||||
<!DOCTYPE firerecord SYSTEM "chrome://firerecord/locale/translations.dtd">
|
<!DOCTYPE firerecord SYSTEM "chrome://firerecord/locale/translations.dtd">
|
||||||
<overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
<overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||||
<script src="firerecord.js" />
|
<script src="firerecord.js" />
|
||||||
|
|
||||||
<menupopup id="menu_ToolsPopup">
|
<menupopup id="menu_ToolsPopup">
|
||||||
<menuitem label="&runlinktargetfinder;" key="link-target-finder-run-key" oncommand="firerecord.run()"/>
|
<menuitem label="&runlinktargetfinder;" key="link-target-finder-run-key" oncommand="firerecord.run()"/>
|
||||||
</menupopup>
|
</menupopup>
|
||||||
<toolbox>
|
<toolbox>
|
||||||
<menubar id="xulschoolhello-menubar">
|
<menubar id="xulschoolhello-menubar">
|
||||||
<menu id="xulschoolhello-greeting-menu" label="testing">
|
<menu id="xulschoolhello-greeting-menu" label="testing">
|
||||||
<menupopup>
|
<menupopup>
|
||||||
<menuitem label="Nothing Yet"
|
<menuitem label="Nothing Yet"
|
||||||
oncommand ="firerecord.file()"/>
|
oncommand ="firerecord.file()"/>
|
||||||
|
|
||||||
</menupopup>
|
</menupopup>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
</menubar>
|
</menubar>
|
||||||
</toolbox>
|
</toolbox>
|
||||||
<keyset>
|
<keyset>
|
||||||
<key id="link-target-finder-run-key" modifiers="accel alt shift" key="L" oncommand="firerecord.run()"/>
|
<key id="link-target-finder-run-key" modifiers="accel alt shift" key="L" oncommand="firerecord.run()"/>
|
||||||
</keyset>
|
</keyset>
|
||||||
|
|
||||||
<toolbar id="status-bar">
|
<toolbar id="status-bar">
|
||||||
<statusbarpanel id="link-target-finder-status-bar-icon" label="Record" class="statusbarpanel-iconic" src="chrome://firerecord/skin/toolbar-large.png" tooltiptext="&runlinktargetfinder;" onclick="firerecord.run()" />
|
<statusbarpanel id="link-target-finder-status-bar-icon" label="Record" class="statusbarpanel-iconic" src="chrome://firerecord/skin/toolbar-large.png" tooltiptext="&runlinktargetfinder;" onclick="firerecord.run()" />
|
||||||
|
|
||||||
</toolbar>
|
</toolbar>
|
||||||
<toolbar id="status-bar">
|
<toolbar id="status-bar">
|
||||||
<statusbarpanel id="Recording" type="menu" role="button" label="Record" class="statusbarpanel-iconic" src="chrome://firerecord/skin/toolbar-large.png" tooltiptext="Page to Page Recording" onclick="firerecord.running()" />
|
<statusbarpanel id="Recording" type="menu" role="button" label="Record" class="statusbarpanel-iconic" src="chrome://firerecord/skin/toolbar-large.png" tooltiptext="Page to Page Recording" onclick="firerecord.running()" />
|
||||||
|
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<toolbarpalette id="BrowserToolbarPalette">
|
<toolbarpalette id="BrowserToolbarPalette">
|
||||||
<toolbarbutton id="link-target-finder-toolbar-button" label="firerecord:" class="statusbarpanel-iconic" src="chrome://firerecord/skin/toolbar-large.png" tooltiptext="&runlinktargetfinder;" oncommand="firerecord.run()"/>
|
<toolbarbutton id="link-target-finder-toolbar-button" label="firerecord:" class="statusbarpanel-iconic" src="chrome://firerecord/skin/toolbar-large.png" tooltiptext="&runlinktargetfinder;" oncommand="firerecord.run()"/>
|
||||||
</toolbarpalette>
|
</toolbarpalette>
|
||||||
|
|
||||||
<input type="file" id="upload" name="upload"/>
|
<input type="file" id="upload" name="upload"/>
|
||||||
|
|
||||||
</overlay>
|
</overlay>
|
@ -14,25 +14,25 @@ var firerecord = function () {
|
|||||||
appcontent.addEventListener("DOMContentLoaded", firerecord.run, true);
|
appcontent.addEventListener("DOMContentLoaded", firerecord.run, true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
running: function (){
|
running: function () {
|
||||||
if(recordingx){
|
if (recordingx) {
|
||||||
recordingx = false;
|
recordingx = false;
|
||||||
alert("Stop Listen");
|
alert("Stop Listen");
|
||||||
//document.location.reload();
|
//document.location.reload();
|
||||||
//closes all tabs on firefox.
|
//closes all tabs on firefox.
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
recordingx = true;
|
recordingx = true;
|
||||||
alert("Start Listen");
|
alert("Start Listen");
|
||||||
firerecord.run();
|
firerecord.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
file: function(){
|
file: function () {
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
run : function () {
|
run: function () {
|
||||||
var head = content.document.getElementsByTagName("head")[0],
|
var head = content.document.getElementsByTagName("head")[0],
|
||||||
style = content.document.getElementById("link-target-finder-style"),
|
style = content.document.getElementById("link-target-finder-style"),
|
||||||
all = content.document.getElementsByTagName("*"),
|
all = content.document.getElementsByTagName("*"),
|
||||||
@ -64,67 +64,67 @@ var firerecord = function () {
|
|||||||
info[0] = all[i].tagName;
|
info[0] = all[i].tagName;
|
||||||
|
|
||||||
//Feel free to change this to a for each...
|
//Feel free to change this to a for each...
|
||||||
if(recordingx){
|
if (recordingx) {
|
||||||
switch (info[0]) {
|
switch (info[0]) {
|
||||||
//All of these cases need null checks for each attribute.
|
//All of these cases need null checks for each attribute.
|
||||||
case "INPUT":
|
case "INPUT":
|
||||||
|
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleType, false);
|
elm.addEventListener("click", handleType, false);
|
||||||
break;
|
break;
|
||||||
case "A":
|
case "A":
|
||||||
|
|
||||||
elm.addEventListener("click", handleEvent);
|
elm.addEventListener("click", handleEvent);
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
case "BUTTON":
|
case "BUTTON":
|
||||||
|
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
case "FORM":
|
case "FORM":
|
||||||
|
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
case "IMG":
|
case "IMG":
|
||||||
|
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
case "INPUT":
|
case "INPUT":
|
||||||
|
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
case "LINK":
|
case "LINK":
|
||||||
|
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
case "OPTION":
|
case "OPTION":
|
||||||
|
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
case "SELECT":
|
case "SELECT":
|
||||||
|
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
case "TABLE":
|
case "TABLE":
|
||||||
info[1] = all[i].getAttribute("summmary");
|
info[1] = all[i].getAttribute("summmary");
|
||||||
info[2] = all[i].getAttribute("caption");
|
info[2] = all[i].getAttribute("caption");
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
case "TEXTAREA":
|
case "TEXTAREA":
|
||||||
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
elm.className += ((elm.className.length > 0) ? " " : "") + "link-target-finder-selected";
|
||||||
elm.addEventListener("click", handleEvent, false);
|
elm.addEventListener("click", handleEvent, false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ var firerecord = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//Need to add author to this part...
|
//Need to add author to this part...
|
||||||
//Need to add author to this part...
|
//Need to add author to this part...
|
||||||
function handleEvent(e) {
|
function handleEvent(e) {
|
||||||
var targ;
|
var targ;
|
||||||
if (!e) {
|
if (!e) {
|
||||||
@ -223,19 +223,19 @@ var firerecord = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
alert(window.content.location.href);
|
alert(window.content.location.href);
|
||||||
if(!taginfo[1]){
|
if (!taginfo[1]) {
|
||||||
taginfo[1]= "null";
|
taginfo[1] = "null";
|
||||||
}
|
}
|
||||||
if(!taginfo[2]){
|
if (!taginfo[2]) {
|
||||||
taginfo[2]= "null";
|
taginfo[2] = "null";
|
||||||
}
|
}
|
||||||
if(!taginfo[3]){
|
if (!taginfo[3]) {
|
||||||
taginfo[3]= "null";
|
taginfo[3] = "null";
|
||||||
}
|
}
|
||||||
if(!taginfo[4]){
|
if (!taginfo[4]) {
|
||||||
taginfo[4]= "null";
|
taginfo[4] = "null";
|
||||||
}
|
}
|
||||||
alert("You clicked on a " + tname + " with info \n " + taginfo[1] + "\n"+ taginfo[2]+"\n"+taginfo[3]+"\n"+" saving... " + taginfo.join('::'));
|
alert("You clicked on a " + tname + " with info \n " + taginfo[1] + "\n" + taginfo[2] + "\n" + taginfo[3] + "\n" + " saving... " + taginfo.join('::'));
|
||||||
|
|
||||||
e.cancelBubble = true;
|
e.cancelBubble = true;
|
||||||
|
|
||||||
|
@ -5,27 +5,27 @@
|
|||||||
title="FireRecord Preferences"
|
title="FireRecord Preferences"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||||
|
|
||||||
<prefpane label="FireRecord Preferences">
|
<prefpane label="FireRecord Preferences">
|
||||||
<preferences>
|
<preferences>
|
||||||
<preference id="link-target-finder-autorun" name="extensions.firerecord.autorun" type="bool"/>
|
<preference id="link-target-finder-autorun" name="extensions.firerecord.autorun" type="bool"/>
|
||||||
</preferences>
|
</preferences>
|
||||||
|
|
||||||
<groupbox>
|
<groupbox>
|
||||||
<caption label="Settings"/>
|
<caption label="Settings"/>
|
||||||
<grid>
|
<grid>
|
||||||
<columns>
|
<columns>
|
||||||
<column flex="4"/>
|
<column flex="4"/>
|
||||||
<column flex="1"/>
|
<column flex="1"/>
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label control="autorun" value="Autorun"/>
|
<label control="autorun" value="Autorun"/>
|
||||||
<checkbox id="autorun" preference="link-target-finder-autorun"/>
|
<checkbox id="autorun" preference="link-target-finder-autorun"/>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
</prefpane>
|
</prefpane>
|
||||||
|
|
||||||
</prefwindow>
|
</prefwindow>
|
34
install.rdf
34
install.rdf
@ -2,22 +2,22 @@
|
|||||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
||||||
|
|
||||||
<Description about="urn:mozilla:install-manifest">
|
<Description about="urn:mozilla:install-manifest">
|
||||||
<em:id>csc207qc@gmail.com</em:id>
|
<em:id>csc207qc@gmail.com</em:id>
|
||||||
<em:name>Fire Record</em:name>
|
<em:name>Fire Record</em:name>
|
||||||
<em:version>.8</em:version>
|
<em:version>.8</em:version>
|
||||||
<em:type>2</em:type>
|
<em:type>2</em:type>
|
||||||
<em:creator>Quinsigamond Community College CS207</em:creator>
|
<em:creator>Quinsigamond Community College CS207</em:creator>
|
||||||
<em:description>Records Browsing</em:description>
|
<em:description>Records Browsing</em:description>
|
||||||
<em:homepageURL>http://www.qcc.edu/</em:homepageURL>
|
<em:homepageURL>http://www.qcc.edu/</em:homepageURL>
|
||||||
<em:optionsURL>chrome://firerecord/content/options.xul</em:optionsURL>
|
<em:optionsURL>chrome://firerecord/content/options.xul</em:optionsURL>
|
||||||
|
|
||||||
<em:targetApplication>
|
<em:targetApplication>
|
||||||
<Description>
|
<Description>
|
||||||
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
|
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
|
||||||
<em:minVersion>4.0</em:minVersion>
|
<em:minVersion>4.0</em:minVersion>
|
||||||
<em:maxVersion>20.0.1</em:maxVersion>
|
<em:maxVersion>20.0.1</em:maxVersion>
|
||||||
</Description>
|
</Description>
|
||||||
</em:targetApplication>
|
</em:targetApplication>
|
||||||
</Description>
|
</Description>
|
||||||
</RDF>
|
</RDF>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#link-target-finder-toolbar-button {
|
#link-target-finder-toolbar-button {
|
||||||
list-style-image: url("chrome://firerecord/skin/toolbar-large.png");
|
list-style-image: url("chrome://firerecord/skin/toolbar-large.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
#link-target-finder-status-bar-icon {
|
#link-target-finder-status-bar-icon {
|
||||||
width: 83px;
|
width: 83px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-target-finder-selected {
|
.link-target-finder-selected {
|
||||||
outline: 2px solid CadetBlue !important;
|
outline: 2px solid CadetBlue !important;
|
||||||
}
|
}
|
Reference in New Issue
Block a user