Hello, you have come here looking for the meaning of the word
User:Hippietrail/filtercontribs.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word
User:Hippietrail/filtercontribs.js, but we will also tell you about its etymology, its characteristics and you will know how to say
User:Hippietrail/filtercontribs.js in singular and plural. Everything you need to know about the word
User:Hippietrail/filtercontribs.js you have here. The definition of the word
User:Hippietrail/filtercontribs.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
User:Hippietrail/filtercontribs.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
/*
Original version: ]
<pre>
*/
function filtercontribs() {
if (wgNamespaceNumber == -1 && wgCanonicalSpecialPageName == 'Contributions') {
hippFcSetupGui();
}
}
addOnloadHook(filtercontribs);
function hippFcSetupGui() {
var fs = document.getElementById('bodyContent').getElementsByTagName('form').getElementsByTagName('fieldset');
var cb = document.createElement('input');
cb.setAttribute('id', 'filter');
cb.setAttribute('type', 'checkbox');
cb.setAttribute('onclick', 'hippFcToggle(this)');
var label = document.createElement('label');
label.setAttribute('for', 'filter');
// TODO localize
label.appendChild(document.createTextNode('Show only articles changed since my last edit'));
fs.appendChild(cb);
fs.appendChild(label);
}
function hippFcToggle(cb) {
if (cb.checked)
hippFcFilterOn();
else
hippFcFilterOff();
}
function hippFcFilterOn() {
var hash = new Object();
var list = document.getElementById('bodyContent').getElementsByTagName('ul').getElementsByTagName('li');
if (list != null) {
for (i = 0; i < list.length; i++) {
var spans = list.getElementsByTagName('span');
for (j = 0; j < spans.length; ++j)
if (spans.className == 'mw-uctop')
list.style.display = 'none';
var title = list.getElementsByTagName('a').firstChild.nodeValue;
if (hash == true)
list.style.display = 'none';
else
hash = true;
}
}
}
function hippFcFilterOff() {
var list = document.getElementById('bodyContent').getElementsByTagName('ul').getElementsByTagName('li');
if (list != null) {
for (i = 0; i < list.length; i++) {
if (list.style.display == 'none')
list.style.display = null;
}
}
}
/*
</pre>
*/