Content deleted Content added
Cactus.man (talk | contribs) temp edit count fix |
Cactus.man (talk | contribs) add user space tab |
||
Line 2:
/////////////////////////////////////////////////////////////////////////////////////////////////////////
// Add edit count, user space and
// Add a diff tab to other project pages
// Adapted from http://en.wikipedia.org/wiki/User:Haza-w/Interiot2.js
Line 35:
var ca2 = document.createElement( 'li' );
ca2.id = 'ca-interiot';
var calink2 = document.createElement( 'a' );
calink2.appendChild( document.createTextNode( 'Edit count' ) );
// calink2.href = 'http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=enwiki_p&user=' + user;
calink2.href = 'http://en.wikipedia.org/wiki/User:Interiot/Tool2/code.js?username=' + user;
ca2.appendChild( calink2 );
var ca3 = document.createElement( 'li' );
ca3.id = 'ca-uspace';
var calink3 = document.createElement( 'a' );
calink3.appendChild( document.createTextNode( 'User space' ) );
calink3.href = 'http://en.wikipedia.org/w/index.php?title=Special:Prefixindex&namespace=2&from=' + user;
ca3.appendChild( calink2 );
var ca4 = document.createElement( 'li' );
ca4.id = 'ca-block';
var calink4 = document.createElement( 'a' );
calink4.appendChild( document.createTextNode( 'Block log' ) );
calink4.href = 'http://en.wikipedia.org/w/index.php?title=Special:Log&type=block&page=User:' + user;
ca4.appendChild( calink4 );
document.getElementById( 'ca-nstab-user' ).parentNode.appendChild( ca2 );
document.getElementById( 'ca-nstab-user' ).parentNode.appendChild( ca3 );
document.getElementById( 'ca-nstab-user' ).parentNode.appendChild( ca4 );
}
|