User:Tom Morris/hidehugglecontribs.js

/* fork of User:The Thing That Should Not Be/hidehugglecontribs.js */

function hidehugcontrib { var i,li,a; li=document.getElementById("bodyContent"); li=li.getElementsByTagName("li"); i=-1; a=new Array; while(++iHG\<\/a\>/))      s="none";    else      s="";    if(a[t]!=undefined) s=a[t]; else a[t]=s;    if(s!="") li[i].style.display=(li[i].style.display=="none"?"list-item":"none");  } } addOnloadHook(function  {  if((location.href.indexOf("Special:Contributions")!=-1||      location.href.indexOf("Special%3AContributions")!=-1)     &&location.href.indexOf("&ais523")==-1&&location.href.indexOf("?ais523")==-1)    mw.util.addPortletLink('p-cactions', 'javascript:hidehugcontrib', 'show/hide huggle edits', 'ca-hidehug',                   "Show/hide pages made using Huggle", ''); }); //  //