My favorites | Sign in
Project Logo
       
Changes to /userscripts/amo_to_foxiewire.user.js
r21 vs. r22   Edit
  Compare: vs.   Format:
Revision r22
Go to: 
...
27 27 appName = addonURL.match(/([^\/]+)/g)[3].toString();
28 28
29 29 xpiButts = getXPathNodeList(".//a[starts-with(@id, 'installTrigger')]",
30 - divs.snapshotItem(i), null, 6, null);
30 + divs.snapshotItem(i));
31 31 n = 0;
32 32 for (var j = 0; j < xpiButts.snapshotLength; j++) {
33 33 xpiButt = xpiButts.snapshotItem(j);
...
40 40
41 41 getStrong(foxieButt).removeChild(getStrong(foxieButt).firstChild);
42 42 getStrong(foxieButt).style.textAlign = "center";
43 - getStrong(foxieButt).style.width = getComputedStyle(getStrong(xpiButt), "").
44 - width;
43 + getStrong(foxieButt).style.width = getComputedStyle(getStrong(xpiButt),
44 + "").width;
45 45 img = getStrong(foxieButt).appendChild(document.createElement("img"));
46 46 img.src = "data:image/png;base64,\
47 47 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZ\
...
66 66 img.align = "left";
67 67 getStrong(foxieButt).appendChild(document.createTextNode("FoxieWire"));
68 68
69 - foxieButt.href = foxieURL + escape(amoURL + appName + "/addon/" + addonId);
69 + foxieButt.href = foxieURL + escape(amoURL + appName +
70 + "/addon/" + addonId);
70 71 foxieButt.title = "Submit to FoxieWire";
71 72 foxieButt.addEventListener("click", submitToFoxieWire, false);
72 73 }
73 74 if (n > 1) {
74 - xpiButts.snapshotItem(j-1).parentNode.removeChild(xpiButts.snapshotItem(j-1).parentNode.lastChild);
75 + xpiButts.snapshotItem(j-1).parentNode.removeChild(
76 + xpiButts.snapshotItem(j-1).parentNode.lastChild);
77 + divs.snapshotItem(i).parentNode.parentNode
78 + .style.minHeight = getComputedStyle(divs.snapshotItem(i), "").height;
75 79 }
76 80 }
77 81 }
...
Hosted by Google Code