// [[User:Zocky/PicturePopups.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Zocky/PicturePopups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// [[User:Lupin/popups.js]]
mw.loader.load(
'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
// <pre><nowiki>
// Released into the public domain by [[User:Func]]
//
function NUPatrol()
{
if ( window.location.href.indexOf( 'Special:Log/newusers' ) < 0 &&
window.location.href.indexOf( '&type=newusers' ) < 0 ) return;
var items, item, i, links, user, name, talk, contribs, insertLoc, link;
items = document.getElementById( 'bodyContent' ).getElementsByTagName( 'ul' )[ 0 ].getElementsByTagName( 'li' );
function NewLink( txt, url, plainlinks, linkColor )
{ var a = document.createElement( 'a' );
a.appendChild( document.createTextNode( txt ) );
a.href = url;
if ( plainlinks ) a.className = 'plainlinks';
if ( linkColor )
{ if ( typeof linkColor == "string" )
a.style.color = linkColor;
else a.style.color = '#FF0000'; // old default behavior
}
return a;
}
for ( i = 0; i < items.length; i++ )
{
item = items[ i ];
links = item.getElementsByTagName( 'a' );
user = links[ 0 ]; name = user.firstChild.nodeValue;
talk = links[ 2 ]; talk.firstChild.nodeValue = 'talk'; // lowercase 'Talk' for consistency
contribs = links[ 3 ];
insertLoc = user.nextSibling; // ' newusers '
item.insertBefore( document.createTextNode( ' ( ' ), insertLoc );
item.insertBefore( talk, insertLoc );
item.insertBefore( document.createTextNode( ', ' ), insertLoc );
item.insertBefore( contribs, insertLoc );
item.insertBefore( document.createTextNode( ', ' ), insertLoc );
item.insertBefore( NewLink( 'actions', '/w/index.php?title=Special%3ALog&user=' + name, true, '#000088' ), insertLoc );
item.insertBefore( document.createTextNode( ', ' ), insertLoc );
item.insertBefore( NewLink( 'blocks', '/w/index.php?title=Special%3ALog&type=block&page=User%3A' + name, true, '#008800' ), insertLoc );
item.insertBefore( document.createTextNode( ', ' ), insertLoc );
item.insertBefore( NewLink( 'is blocked?', '/wiki/Special:Ipblocklist?action=search&ip=' + name, true, '#888800' ), insertLoc );
item.insertBefore( document.createTextNode( ', ' ), insertLoc );
item.insertBefore( NewLink( 'do block!', '/w/index.php?title=Special:Blockip&ip=' + name, true, '#880000' ), insertLoc );
item.insertBefore( document.createTextNode( ' )' ), insertLoc );
item.removeChild( insertLoc.nextSibling ); // should remove the span
item.removeChild( insertLoc ); // should remove ' newusers ' text
}
}
if ( window.addEventListener ) window.addEventListener( 'load', NUPatrol, false );
else if ( window.attachEvent ) window.attachEvent( 'onload', NUPatrol );
// </nowiki></pre>
//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }
//Vandal Warrior
if (document.title.indexOf('User:Argentino/Vandal Warrior/Check Vandal.js') != -1) {
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Argentino/Vandal_Warrior/Check_Vandal.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
//html
if (document.title.indexOf('User:Leon2323/html.js') != -1) {
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Leon2323/html.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
// Script from [[User:MarkS/extraeditbuttons.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// Script from [[User:Leon2323/extraeditbuttons.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Leon2323/extraeditbuttons.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// Interiot edit counter
gsInteriotInsertBefore = 'pt-mycontris'; // leave blank to append after "logout"
//
function InteriotLink()
{
var user = document.getElementById( 'pt-userpage' ).firstChild.firstChild.data;
var li = document.createElement( 'li' );
li.id = 'pt-interiot';
var a = document.createElement( 'a' );
a.appendChild( document.createTextNode( 'editcount' ) ); // eh, the css makes the text lowercase
a.href = 'http://en.wikipedia.org/wiki/User:Interiot/Tool2/code.js?username=' + user;
li.appendChild( a );
if ( ! gsInteriotInsertBefore ) // append to end (right) of list
{ document.getElementById( 'pt-logout' ).parentNode.appendChild( li );
}
else
{ var before = document.getElementById( gsInteriotInsertBefore );
before.appendChild( li, before );
}
}
if ( window.addEventListener ) window.addEventListener( 'load', InteriotLink, false );
else if ( window.attachEvent ) window.attachEvent ( 'onload', InteriotLink );
// Online status
gsOnlineInsertBefore = 'pt-mycontris'; // leave blank to append after "logout"
//
function OnlineLink()
{
var user = document.getElementById( 'pt-userpage' ).firstChild.firstChild.data;
var li = document.createElement( 'li' );
li.id = 'pt-online';
var a = document.createElement( 'a' );
a.appendChild( document.createTextNode( 'on' ) ); // eh, the css makes the text lowercase
a.href = 'http://en.wikipedia.org/w/index.php?title=User:Leon2323/status.css&action=edit&autoclick=wpSave&autosummary=Changed status to Online. &autorv=79820296&oldid=79820296';
li.appendChild( a );
if ( ! gsOnlineInsertBefore ) // append to end (right) of list
{ document.getElementById( 'pt-logout' ).parentNode.appendChild( li );
}
else
{ var before = document.getElementById( gsOnlineInsertBefore );
before.appendChild( li, before );
}
}
if ( window.addEventListener ) window.addEventListener( 'load', OnlineLink, false );
else if ( window.attachEvent ) window.attachEvent ( 'onload', OnlineLink );
// Offline status
gsOfflineInsertBefore = 'pt-mycontris'; // leave blank to append after "logout"
//
function OfflineLink()
{
var user = document.getElementById( 'pt-userpage' ).firstChild.firstChild.data;
var li = document.createElement( 'li' );
li.id = 'pt-offline';
var a = document.createElement( 'a' );
a.appendChild( document.createTextNode( 'of' ) ); // eh, the css makes the text lowercase
a.href = 'http://en.wikipedia.org/w/index.php?title=User:Leon2323/status.css&action=edit&autoclick=wpSave&autosummary=Changed status to Offline. &autorv=79820310&oldid=79820310';
li.appendChild( a );
if ( ! gsOfflineInsertBefore ) // append to end (right) of list
{ document.getElementById( 'pt-logout' ).parentNode.appendChild( li );
}
else
{ var before = document.getElementById( gsOfflineInsertBefore );
before.appendChild( li, before );
}
}
if ( window.addEventListener ) window.addEventListener( 'load', OfflineLink, false );
else if ( window.attachEvent ) window.attachEvent ( 'onload', OfflineLink );
// Main Page script
var mpTitle = "Main Page";
var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle)
if (isMainPage)
{window.location="http://en.wikipedia.org/wiki/Main_Page_alternative_%28editable%29";}
//inc
function inc (file) {
var lt = String.fromCharCode(60);
var gt = String.fromCharCode(62);
if (file.indexOf(".js") > -1) {
document.writeln(lt+'script type="text/javascript" src="/w/index.php?title='+file+'&action=raw&ctype=text/javascript&dontcountme=s"'+gt+lt+'/script'+gt);
} else if (file.indexOf(".css") > -1) {
document.writeln(lt+'link rel="stylesheet" type="text/css" href="/w/index.php?title='+file+'&action=raw&ctype=text/css" /'+gt);
}
}
inc("User:Topaz/init.js");
inc("User:Topaz/util.js");
inc("User:Leon2323/enhanceduserpage.js");
inc("User:Topaz/comm.js");
inc("User:Topaz/wputil.js");
// Script from [[User:Lupin/recent2.js]]
mw.loader.load(
'https://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');