User:Cuckooman4/favtab.js

//Made by cuckooman4 // //See /doc for instructions //

addOnloadHook( function {    mw.util.addPortletLink('p-cactions','javascript:togglefavlist','favorites','ca-fav')    document.getElementById("ca-fav").innerHTML += " " + writefavlist + " "  } )

function togglefavlist { if(document.getElementById("favlist").style.visibility == "hidden") { document.getElementById("favlist").style.visibility = "visible" } else { document.getElementById("favlist").style.visibility = "hidden" } }

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