Content deleted Content added
IronGargoyle (talk | contribs) create |
maintenance: more info Various errors recorded in our new error logging tool. User:IronGargoyle please review this script at earliest convenience. It is using a lot of deprecating functions and document.write (see mw::ResourceLoader/Migration_guide_(users) for advice. |
||
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,'_'))
|