Adjusted formatting.
Signed-off-by: retep998 <retep998@verizon.net>
This commit is contained in:
parent
afd37fbf8d
commit
0427e0bf8f
@ -20,7 +20,7 @@
|
||||
|
||||
</menu>
|
||||
</menubar>
|
||||
</toolbox>
|
||||
</toolbox>
|
||||
<keyset>
|
||||
<key id="link-target-finder-run-key" modifiers="accel alt shift" key="L" oncommand="firerecord.run()"/>
|
||||
</keyset>
|
||||
|
@ -14,25 +14,25 @@ var firerecord = function () {
|
||||
appcontent.addEventListener("DOMContentLoaded", firerecord.run, true);
|
||||
}
|
||||
},
|
||||
running: function (){
|
||||
if(recordingx){
|
||||
running: function () {
|
||||
if (recordingx) {
|
||||
recordingx = false;
|
||||
alert("Stop Listen");
|
||||
//document.location.reload();
|
||||
//closes all tabs on firefox.
|
||||
}
|
||||
else{
|
||||
else {
|
||||
recordingx = true;
|
||||
alert("Start Listen");
|
||||
firerecord.run();
|
||||
}
|
||||
|
||||
},
|
||||
file: function(){
|
||||
file: function () {
|
||||
|
||||
|
||||
},
|
||||
run : function () {
|
||||
run: function () {
|
||||
var head = content.document.getElementsByTagName("head")[0],
|
||||
style = content.document.getElementById("link-target-finder-style"),
|
||||
all = content.document.getElementsByTagName("*"),
|
||||
@ -64,7 +64,7 @@ var firerecord = function () {
|
||||
info[0] = all[i].tagName;
|
||||
|
||||
//Feel free to change this to a for each...
|
||||
if(recordingx){
|
||||
if (recordingx) {
|
||||
switch (info[0]) {
|
||||
//All of these cases need null checks for each attribute.
|
||||
case "INPUT":
|
||||
@ -223,19 +223,19 @@ var firerecord = function () {
|
||||
}
|
||||
|
||||
alert(window.content.location.href);
|
||||
if(!taginfo[1]){
|
||||
taginfo[1]= "null";
|
||||
if (!taginfo[1]) {
|
||||
taginfo[1] = "null";
|
||||
}
|
||||
if(!taginfo[2]){
|
||||
taginfo[2]= "null";
|
||||
if (!taginfo[2]) {
|
||||
taginfo[2] = "null";
|
||||
}
|
||||
if(!taginfo[3]){
|
||||
taginfo[3]= "null";
|
||||
if (!taginfo[3]) {
|
||||
taginfo[3] = "null";
|
||||
}
|
||||
if(!taginfo[4]){
|
||||
taginfo[4]= "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('::'));
|
||||
alert("You clicked on a " + tname + " with info \n " + taginfo[1] + "\n" + taginfo[2] + "\n" + taginfo[3] + "\n" + " saving... " + taginfo.join('::'));
|
||||
|
||||
e.cancelBubble = true;
|
||||
|
||||
|
Reference in New Issue
Block a user