User:Cyrius/myskin.js

// function morelinks { var tabs = document.getElementById('p-cactions').cloneNode(true); tabs.id = 'mytabs'; var listitems = tabs.getElementsByTagName('LI'); for (i=0;i-elements for(var j=0; b = document.getElementsByTagName("li")[j]; j++) { // if found a FA link if(b.className == "interwiki-" + a.id) { b.style.padding = "0 0 0 16px"; b.style.backgroundImage = "url('http://upload.wikimedia.org/wikipedia/en/6/60/LinkFA-star.png')"; b.style.backgroundRepeat = "no-repeat"; b.title = "This article has gained featured status"; }        }      }   } }

addOnloadHook(LinkFA);

// User:Zocky/PicturePopups.js - please include this line document.write(' ');

// WikiProject User scripts/Scripts/Talk page section tabs function talkpageplus {   var talkpagelink = document.getElementById('ca-talk'); if (talkpagelink.className == 'new') talkpagelink.firstChild.href += '&section=new';

var talkpagelink = document.getElementById('mytabs-ca-talk'); if (talkpagelink.className == 'new') talkpagelink.firstChild.href += '&section=new'; }

addOnloadHook(talkpageplus);

function SwapColumns {	this.shown = ['p-navigation', 'p-personal', 'p-search', 'p-tb', ]; this.hidden = ['replacementPortlets', ]; this.opacityToggleState = 0; this.duration = 500; this.timer = 0; this.startTime = 0; var me = this;	// trickery to pass a function pointer to a method of this object

this.install = function {		col_one = document.getElementById('column-one'); col_one.innerHTML = col_one.innerHTML + ' '			+ '	 '			+ '		 Test ' + '		 '			+ '			' + '				WikiProject User scripts' + '			' + '		 '			+ '	 '			+ ' ';

a = document.getElementById('p-logo').getElementsByTagName('a').item(0); a.href = '#'; a.title = 'Toggle sidebar';

a.onclick = function {me.toggle;} }	this.toggle = function {		this.startTime = (new Date).getTime; this.timer = setInterval(function {me.opacityStep;}, 15);

for(i=0; i= this.duration + this.startTime) {			clearInterval(this.timer); timePosition = 1.0; }		shownOpacity = this.opacityToggleState ? timePosition : 1.0 - timePosition; hiddenOpacity = this.opacityToggleState ? 1.0 - timePosition : timePosition; for(i=0; i= this.duration + this.startTime) this.opacityToggleState = this.opacityToggleState ? 0 : 1;	} }

var toggle = new SwapColumns;

addOnloadHook(function{toggle.install;});

//