Content deleted Content added
IronGargoyle (talk | contribs) create |
m Maintenance: Replacing document.write with mw.loader.load (mw:ResourceLoader/Migration_guide_(users)#Avoid_document.write() - phab:T130879) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 3:
//First loads
//Helper tools
mw.loader.load(
+ '&action=raw&ctype=text/javascript&dontcountme=s
//////////////////////
Line 52:
if(!document.getElementById) return;
var toplinks = document.getElementById('p-personal').getElementsByTagName('ul')[0];
var user_name = document.getElementById('pt-userpage') && document.getElementById('pt-userpage').getElementsByTagName('a')[0].innerHTML;
if (document.title.indexOf('User:' + user_name + '/xml') != -1 || document.title.indexOf('User:' + user_name + '/XML') != -1)
{addlilink(toplinks, 'javascript:XMLrequestprompt()', 'Request XML', 'Request XML');}
Line 66:
function navigationlinks()
{
if (typeof addnavbox_link !== 'undefined') {
addnavbox_link('/wiki/Wikipedia:Administrator_intervention_against_vandalism','Vandalism','aiv-ln'); addnavbox_link('/wiki/Category:Candidates_for_speedy_deletion','Speedy deletions','speedy-ln');
addnavbox_link('/wiki/Wikipedia:Requests for page protection','Protection requests','rfpp-ln');
addnavbox_link('/wiki/Wikipedia:Administrators%27_noticeboard','Noticeboard','AN-ln');
}
}
Line 92 ⟶ 94:
username_a = document.___URL.match(/:.*:(.*)/);
username=username_a[1];
if ( typeof addTab !== 'undefined') {
addTab("http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=block&user=&page=User:" + username, "log", "ca-blog", "block log", "");▼
addTab("http://
addTab("http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=enwiki_p&user=" + username, "info", "ca-kate", "user info", "");
}
}
}
Line 103 ⟶ 107:
{
if (document.title.indexOf("Editing ") != -1 || document.getElementById('ca-history') == undefined || ___location.href.search(/&action=history/) !=-1){return;}
if (typeof addTab !== 'undefined' ) {
▲
}
}
Line 154 ⟶ 160:
{
if (___location.href.indexOf('Special:Watchlist/edit') !=-1)
{
{addTab("javascript:watchlist_clean()", "check deleted pages", "ca-clean", "check all deleted pages", "");}▼
if (typeof addTab !== 'undefined' ) {
▲
}
}
}
Line 170 ⟶ 181:
var body = document.getElementById('content');
}
if(!body) return;
var l = body.getElementsByTagName('li');
for (var i=0; i<l.length; i++)
Line 190 ⟶ 202:
var user_name = toplinks.innerHTML.split('<h6>My pages</h6>')[1].split('title="User:')[1].split('"')[0];
}
if (document.getElementsByTagName('input') && document.getElementsByTagName('input')[0] && document.getElementsByTagName('input')[0].value == user_name)
{alert('Are you sure you want to block yourself?');}
else if (document.getElementsByTagName('input')[0].value == user_name.replace(/ /g,'_'))
Line 231 ⟶ 243:
//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
▲ + 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js'
//
Line 241 ⟶ 251:
//Filter changes live [[Category:Wikipedians who use VoA script]]
//[[User:Lupin/recent2.js]] - please include this line
mw.loader.load(
+ '&action=raw&ctype=text/javascript&dontcountme=s
//[[User:Lupin/popupsdev.js]] - please include this line
|