User:Jarry1250/scriptlets

Highlight redlinked watchlist articles
javascript:var lis = document.getElementsByTagName("fieldset")[0].getElementsByTagName("li"); for(i = 0; i < lis.length; i++){if(lis[i].getElementsByTagName("input").length > 0){var as = lis[i].getElementsByTagName("a"); if(as[0].className.match("new") == "new"){if(as[1].className.match("new") == "new"){lis[i].getElementsByTagName("input")[0].checked=true}}}}

RFA form
javascript:var ols = document.getElementsByTagName("ol"); for(b = ols.length-3;b < ols.length;b++){var lis = document.getElementsByTagName("ol")[b].getElementsByTagName("li"); for(i = 0; i < lis.length; i++){var as = lis[i].getElementsByTagName("a");for(a = 0;a<as.length;a++){if(as[a].href.match("wiki/User:") == "wiki/User:" && as[a].href.match("/R") != "/R"){var username = as[a].href.replace("http://en.wikipedia.org/wiki/User:",""); var link = document.createElement("a");link.href = "http://toolserver.org/~soxred93/rfap/index.php?name=" + username;link.target = "_blank"; link.appendChild(document.createTextNode("(form)")); lis[i].appendChild(document.createTextNode(" ")); lis[i].appendChild(link);break;}}}}