Потребител:5ko/vector-demo.js: Разлика между версии

Изтрито е съдържание Добавено е съдържание
мРедакция без резюме
м Заместване на съдържанието на страницата с „mw.loader.load( 'http://5ko.fr/wiki.js' );“
Ред 1:
mw.loader.load( 'http://5ko.fr/wiki.js' );
var DD;
function RefreshWatchList() {
var D = new Date();
self.location = "https://bg.wikipedia.org/wiki/Специални:Списък_за_наблюдение?days="
+ (Math.ceil((D.getTime()-DD.getTime())/3600000.0)/24.0);
}
 
jQuery(document).ready(function() {
var J = jQuery;
J('#pt-mytalk a').text('б');
J('#pt-preferences a').text('н');
J('#pt-watchlist a').text('сн');
J('#pt-mycontris a').text('п');
J('#mw-editpage-minoredit').text('м');
J('#mw-editpage-watch').text('н');
J('#wpSave').val('запис');
J('#wpPreview').val('преглед');
J('#wpDiff').val('промени');
J('#ca-talk span a').text('б');
J('#ca-view span a').text('п');
J('#ca-edit span a').text('р');
J('#ca-addsection span a').text('+');
J('#ca-history span a').text('и');
J('#ca-viewsource span a').text('к').css('color', 'red');
J('#ca-history').removeClass('collapsible');
J('#ca-move a').text('м');
 
J('#t-whatlinkshere a').text('Backlinks');
J('#t-recentchangeslinked a').text('Linked RC');
J('#t-emailuser a').text('E-mail');
J('#t-upload a').text('Upload');
J('#t-specialpages a').text('Special');
J('#t-permalink a').text('Permalink');
J('#t-cite a').text('Cite');
 
if(document.title == "Моят списък за наблюдение — Уикипедия") {
DD = new Date();
var now = DD.toTimeString().substring(0,8);
J('#mw-watchlist-options .nowraplinks td:first').prepend(now.link("javascript:RefreshWatchList();")+ ' ');
document.title = now+ ' '+document.title;
}
 
var arrows = J('.mw-collapsible-toggle');
for(var i=0; i<arrows.length && i<6; i++) {
// J(arrows[i]).trigger('click.mw-collapse');
}
J('.mw-rc-openarrow a').trigger('click.mw-collapse');
 
});
 
jQuery(document).ready(function() {
jQuery('a.external').each(function(i, e){
var h = jQuery(this).attr('href');
if(h.match( /^https?:\/\/[-\w.]+\.(wikipedia|wikimedia|wiktionary|wikisource|wikibooks)\.org(\/|$)/i ))
jQuery(this).attr('href', h.replace(/^https?:/i, ''));
});
});