FANDOM


// ****************************************************** \\ // ********** Standard edit summaries dropdown ********** \\ // ****************************************************** \\ function requestComboFill(id, page) {

   var loader = new ContentLoader();
   loader.comboID = id;
   loader.callback = onComboDataArrival;
   loader.send('/index.php?title=' + page + '&action=raw&ctype=text/plain');

}

function onComboDataArrival() {

   fillCombo(this.text, this.comboID);

}

function fillCombo(text, comboid) {

   var combo = document.getElementById(comboid);
   var lines = text.split("\n");
   for(var i = 0; i < lines.length; i++)
   {
       var value = lines[i].indexOf("-- ") == 0 ? lines[i].substring(3) : "";
       var option = document.createElement('option');
       option.setAttribute('value', value);
       option.appendChild(document.createTextNode(lines[i]));
       combo.appendChild(option);
   }

}

function initFunctionsJS() {

   storePageName();

}

function fillEditSummaries() {

   var label = document.getElementById("wpSummaryLabel");
   if(label == null)
       return;
   var comboString = "Summary: <select id='stdSummaries' onchange='onStdSummaryChange()'>";
   comboString += "</select>
"; label.innerHTML = comboString + label.innerHTML;
   requestComboFill('stdSummaries', 'User:ILHI/Stdsummaries');

}

function onStdSummaryChange() {

   var combo = document.getElementById("stdSummaries");
   var value = combo.options[combo.selectedIndex].value;
   if(value != "")
       document.getElementById("wpSummary").value = value;

}

addOnloadHook(fillEditSummaries);

// ****************************************************** \\ // ******* Personal notice (code no longer works) ******* \\ // ****************************************************** \\ var personalSiteNoticeValue = 'hi';

function setPersonalSiteNotice(){ var fh = $('bodyContent'); if (!fh || !window.personalSiteNoticeValue || window.personalSiteNoticeValue == ) return; do { fh = fh.previousSibling; } while (fh && (fh.nodeType != 1 || fh.nodeName.toLowerCase() != 'h1' || (' '+fh.className+' ').indexOf(' firstHeading ') == -1)) if (!fh) return; var sn = $T.create('div', {'id':'personalSiteNotice'}); fh.parentNode.insertBefore(sn,fh); sn.innerHTML = window.personalSiteNoticeValue; }

$E.onDOMReady(setPersonalSiteNotice);


// ****************************************************** \\ // ********* Highlight redirects (doesn't work) ********* \\ // ****************************************************** \\ document.write('<script type="text/javascript" src="'

            + 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/highlightredirects.js' 
            + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.