מדיה ויקי:Gadget-rcPatrol.js: הבדלים בין גרסאות בדף

שינוי קטן כדי שיוכל לפעול גם בדף היסטוריה
שינוי קטן כדי שיראה טוב בדף היסטוריה. לא משפיע על רשימת המעקב ושינויים אחרונים
שורה 55: שורה 55:
   rcspan.id = 'rcspan';
   rcspan.id = 'rcspan';
   rcspan.appendChild(checkbox);
   rcspan.appendChild(checkbox);
   unpatrolled[0].innerHTML = "";
   unpatrolled[0].style.display = "none";
   var newpage = getElementsByClassName(itemList[i], 'ABBR', 'newpage');
   for ( var x = unpatrolled[0] ; x.previousSibling.nodeName == "ABBR" ; ) x = x.previousSibling;
  if (newpage[0])
  itemList[i].insertBefore(rcspan, x);
  itemList[i].insertBefore(rcspan, newpage[0]);
  else {
  var minor = getElementsByClassName(itemList[i], 'ABBR', 'minor');
  if (minor[0])
    itemList[i].insertBefore(rcspan, minor[0]);
  else
    itemList[i].insertBefore(rcspan, unpatrolled[0]);
  }
  }
  }
}
}