MediaWiki:Gadget-decrumb.js: Difference between revisions

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.
m (Consistency)
(No difference)

Revision as of 17:23, 5 November 2009

addOnloadHook(function(){
var contentSub = document.getElementById("contentSub")
if (null !== contentSub) {
  var newSubText = contentSub.innerHTML.replace(new RegExp("<a.*<\\/a>\\s&gt;\\s"+wgTitle,"i"), "")
  if (0 == newSubText.length) {
    contentSub.parentNode.removeChild(contentSub)
  } else {
    contentSub.innerHTML = newSubText
  }
}})