User:Cuckooman4/favtab2.js

//Made by cuckooman4. // //Same as original, (User:Cuckooman4/favtab.js) except it uses a dropdown list. // addOnloadHook(  function {    mw.util.addPortletLink('p-cactions','javascript:favgo','Go!','ca-fav')    document.getElementById("ca-fav").innerHTML = "" + writefavlist + " " + document.getElementById("ca-fav").innerHTML  } )

function writefavlist { var i = 0 var strtoreturn = "" while(i < favlist.length) { strtoreturn += "" + favlist[i] + " " i++ } return(strtoreturn) }

function favgo { location.href = "http://en.wikipedia.org/wiki/" + document.getElementById("favdropdown").all[document.getElementById("favdropdown").selectedIndex].innerText } //