Корисник:Anja98/monobook.js — разлика између измена

Садржај обрисан Садржај додат
мНема описа измене
мНема описа измене
Ред 1:
// Script from [[User:Sasa Stefanovic/extraeditbuttons.js]]
document.write('<script type="text/javascript" src="'
+ 'http://sren.wikipedia.org/w/index.php?title=User:BokicaKSasa_Stefanovic/extraeditbuttons.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/** Пребацује двострука ћирилична слова у одговарајуће знаке са енглеске тастатуре */
function Cyr2WikiInit() {
if( document.getElementById( 'editform' ) ) {
document.getElementById( 'editform' ).setAttribute('onsubmit', 'return Cyr2Wiki();');
}
}
function Cyr2Wiki() {
var ef=document.getElementById( 'wpTextbox1' );
if(!wgTitle.match(/[.]js$/)) {
ef.value = ef.value.
replace(/шш/g, '[[').
replace(/ђђ/g, ']]').
replace(/ШШ/g, '{{').
replace(/ЂЂ/g, '}}').
replace(/ЖЖ/g, '|');
}
return true;
}
addOnloadHook(Cyr2WikiInit);
 
importScript('User:Саша Стефановић/quickpreview.js');