Commits

lornajane committed 37ec874

adding support for github dropdowns

Comments (0)

Files changed (1)

 				document.getElementsByTagName("textarea"),
 				document.getElementsByTagName("select"),
 				document.getElementsByTagName("img"),
-				document.getElementsByTagName("button")];
+				document.getElementsByTagName("button"),
+                document.getElementsByTagName("span")];
 		sel = [];
 		for (i = 0; i < nodes.length; i++) {
 			elem = nodes[i];
 				
 				continue;
 			}
+
+            if((elem.tagName == "SPAN" && elem.className.indexOf("select-menu-button") != -1)) {
+                continue;
+            }
 			
 			if (elem.offsetWidth > 0 && elem.offsetHeight > 0) {
 				nodes.push(elem);