User:Monsoonjr99/common.js

function messageCollapser(index){ var elem = $("").text("-").addClass("message-collapser").click(function{       if($("#" + index + " .message-collapser").text=="-"){            $("#" + index + " .message-collapser").text("+");        }else{            $("#" + index + " .message-collapser").text("-");        }        $("#" + index + " .speech-bubble-message").toggle;    }); return elem; }

if(wgNamespaceNumber==1201){ for(var i=2;$("#"+i).length;i++){ $("#" + i).prepend(messageCollapser(i)); $("#" + i + " .message-collapser").css({           "position":"relative",            "right":"10px",            "float":"left",            "cursor":"pointer"        }); } }