mw.loader.load(
'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
simplePopups=true;
popupAdminLinks=true;
importScript('User:Ilmari_Karonen/watchsince.js','en');
importScript('MediaWiki:Gadget-markadmins.js');
//importScript('user:js/NewPagePatrol.js');
importScript('Участник:OneLittleMouse/RQButton.js');
// From Smotrov:
//importScript('User:Alex Smotrov/diffpopups.js');
//importScript('user:js/diffs.js', 'en')
// importScript('User:Alex Smotrov/adm/delreason.js');
importScript('User:Alex Smotrov/qpreview.js');
//importScript('User:Alex Smotrov/misc/charcounter.js');
//importScript('MediaWiki:Gadget-HotCat.js')
// Script from [[Участник:Dstary/lupin-antivandal-script.js]]
document.write('<script type="text/javascript" src="'
+ 'http://ru.wikipedia.org/w/index.php?title=Участник:Dstary/lupin-chernenko-antivandal-script.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
function addsymbols ()
{
var cwarn = document.getElementById ('editpage-copywarn2');
if (cwarn) {
cwarn.innerHTML = '';
}
var specialchars = document.getElementById ('editpage-specialchars');
if (specialchars) {
var menu = "<a href=\"javascript:insertTags('[[en:',']]','')\">[[en:]]</a> <a href=\"javascript:insertTags('{{subst:','~~','hello}} -~~')\">Приветствие</a> <a href=\"javascript:insertTags('<math>','</math>','')\">math</a> <a href=\"javascript:insertTags('[[Изображение:','|||]]','')\">Изображение</a> <a href=\"javascript:insertTags('{{lang-ko|','}}','')\">кор.</a>";
specialchars.innerHTML = menu + specialchars.innerHTML;
}
}
$(addsymbols);
function addTemplatesList_usual(){
var block = document.getElementById('editpage-specialchars');
if (!block) return;
block.innerHTML =
'<select onchange=insertSel(this)>'
+'<option>Шаблоны с подписью</option>'
+'<option value="subst:hello">Welcome</option>'
+'<option value="subst:anon">Anon</option>'
+'<option value="subst:cv|">Cv</option>'
+'<option value="subst:nothanks cv|">Nothanks cv</option>'
+'</select>' + block.innerHTML;
}
function insertSel(sel){
if (sel.selectedIndex <= 0) return;
var insertion = sel.options[sel.selectedIndex].value;
document.editform.wpTextbox1.value += '{'+'{' + insertion + '}}' + '--~~' + '~~\n';
document.editform.wpSummary.value += insertion;
}
$(addTemplatesList_usual);
function addTemplatesList_article(){
var block = document.getElementById('editpage-specialchars');
if (!block) return;
block.innerHTML =
'<select onchange=insertSel2(this)>'
+'<option>Шаблоны без подписи</option>'
+'<option value="copyvio|url = ">Copyvio</option>'
+'<option value="afi">Afi</option>'
+'<option value="rq">Rq</option>'
+'<option value="notaxobox">Notaxobox</option>'
+'<option value="noiwiki">Noiwiki</option>'
+'<option value="style">Style</option>'
+'</select>' + block.innerHTML;
}
function insertSel2(sel){
if (sel.selectedIndex <= 0) return;
var insertion = sel.options[sel.selectedIndex].value;
document.editform.wpTextbox1.value += '{'+'{' + insertion + '}}\n';
document.editform.wpSummary.value += insertion;
}
$(addTemplatesList_article);
//importScript('user:Absconditus/cps.js');
importScript('User:Absconditus/rfsd.js');