Adjusted formatting.
Signed-off-by: retep998 <retep998@verizon.net>
This commit is contained in:
parent
afd37fbf8d
commit
0427e0bf8f
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
</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>
|
||||||
|
@ -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,7 +64,7 @@ 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":
|
||||||
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user