User:Spacebirdy/altækt.js: Difference between revisions
Appearance
From Meta, a Wikimedia project coordination wiki
updated scripts
mNo edit summary
Line 11:
Line 11:
default:
default:
*/
*/
/(追記) * (追記ここまで) [[en:User:Lupin/popups.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');
*/
/* [[de:User:Luxo]]
/* [[de:User:Luxo]]
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Luxo/gwatch.js&action=raw&ctype=text/javascript');
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Luxo/gwatch.js&action=raw&ctype=text/javascript');
Revision as of 20:13, 2 August 2020
/* var useragent = navigator.userAgent; switch (useragent) { case "ZzZz": break; //ohne monobook. case "ojala": mw.loader.load('//es.wikipedia.org/w/index.php?title=User:Axxgreazz/monobook-full.js&action=raw&ctype=text/javascript"type="text/javascript'); //spænskt case "halastjarna": mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Cometstyles/monobook.js&action=raw&ctype=text/javascript'); break; //testmonobüke default: */ /* [[en:User:Lupin/popups.js]] mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript'); */ /* [[de:User:Luxo]] mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Luxo/gwatch.js&action=raw&ctype=text/javascript'); */ // [[en:User:Zocky/SearchBox.js]] //mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Zocky/SearchBox.js&action=raw&ctype=text/javascript'); //------------------------------------------------ //[[es:Usuario:Javier Carro/monobook.js]] versión 15:33 23 ago, 2004 Basada en //[[es:Usuario:Pybalo/monobook.js]] v0.2:2004年07月30日 // a su vez basada en [[es:Usuario:Comae/monobook.js]] // // Para más detalles véase [[es:Wikipedia:Botonera]] //------------------------------------------------ /*********** Botonera ***********/ // <nowiki> $(functionloadButtons(){ varbuttons='<div>'; /* Botón WEI */ buttons+='<a class="mybutton" title="wei: selecciona antes el texto a resaltar" href="javascript:ponWEI()" style="background:gold" ><code style="background:gold">:\)</code></a>'; /* Botón small */ buttons+='<a class="mybutton" title="Código para escribir texto en letra pequeña" href="javascript:small()" style="background:skyblue"><code style="background:skyblue"><small>p</small></code></a>'; /* Botón big */ buttons+='<a class="mybutton" title="Código para escribir texto en letra grande" href="javascript:big()" style="background:lightskyblue"><code style="background:lightskyblue"><big>G</big></code></a>'; /* Botón iswikt: sagnbeyging */ buttons+='<a class="mybutton" title="sagnbeyging" href="javascript:sagnBeyging()" style="background:deepskyblue"><code style="background:deepskyblue">S</code></a>'; /* Botón iswikt: lýsingarorðsbeyging */ buttons+='<a class="mybutton" title="lýsingarorðsbeyging" href="javascript:advBeyging()" style="background:dodgerblue"><code style="background:dodgerblue">L</code></a>'; /* Botón hola-es */ buttons+='<a class="mybutton" title="bienvenido" href="javascript:hola()" style="background:mistyrose"><code style="background:mistyrose">B</code></a>'; /* Botón hola */ buttons+='<a class="mybutton" title="Hallo" href="javascript:hallo()" style="background:mistyrose"><code style="background:mistyrose">H</code></a>'; /* Botón prueba */ buttons+='<a class="mybutton" title="Test" href="javascript:test()" style="background:lavenderblush"><code style="background:lavenderblush">T</code></a>'; /* Botón sonder */ buttons+='<a class="mybutton" title="Sérstafir" href="javascript:sonder()" style="background:cornflowerblue"><code style="background:cornflowerblue">Æ</code></a>'; /* Botón kat */ buttons+='<a class="mybutton" title="Fallbeyging" href="javascript:ponKat()" style="background:lightcoral"><code style="background:lightcoral">F</code></a>'; /* Botón subst */ buttons+='<a class="mybutton" title="Baustein mit subst" href="javascript:ponSubst()" style="background:lightgrey"><code style="background:lightgrey">{}</code></a>'; /* Botón Contribs. */ buttons+='<a class="mybutton" title="Special:Contributions" href="javascript:spContrib()" style="background:silver"><code style="background:silver">C</code></a>'; /* Botón clearall. */ buttons+='<a class="mybutton" title="clearall" href="javascript:clearAll()" style="background:WhiteSmoke"><code style="background:WhiteSmoke">/</code></a>'; /* Botón sigh */ buttons+='<a class="mybutton" title="<pre>" href="javascript:ponPre()" style="background:thistle"><code style="background:thistle;font-size:80%">pre</code></a>'; /* Botón Uetrad */ buttons+='<a class="mybutton" title="Ü" href="javascript:Uetrad()" style="background:lightsteelblue"><code style="background:lightsteelblue">*</code></a>'; /* Botón iswikt: Myndir */ buttons+='<a class="mybutton" title="Myndir" href="javascript:myndir()" style="background:azure"><code style="background:azure">M</code></a>'; /* Botón iswikt: ref-icelandiconlinedictionary */ buttons+='<a class="mybutton" title="Icelandic Online Dictionary" href="javascript:iceOnline()" style="background:paleturquoise"><code style="background:paleturquoise">1</code></a>'; /* Botón iswikt: ref-orðabanki */ buttons+='<a class="mybutton" title="Orðabanki" href="javascript:ordabanki()" style="background:paleturquoise"><code style="background:paleturquoise">2</code></a>'; /* Botón iswikt: ref-orðabók háskólans*/ buttons+='<a class="mybutton" title="Orðabók Háskólans" href="javascript:ordabokhaskolans()" style="background:lightcyan"><code style="background:lightcyan">3</code></a>'; /* Botón iswikt: Hugtakasafn Þýðingamiðstöðvar utanríkisráðuneytis*/ buttons+='<a class="mybutton" title="Hugtakasafn Þýðingamiðstöðvar utanríkisráðuneytis" href="javascript:hugtakasafn()" style="background:lightcyan"><code style="background:lightcyan">4</code></a>'; buttons+='</div>'; vartoolbox=document.getElementById("p-navigation"); toolbox.innerHTML+='<h5>æ vá maður</h5>'+buttons; }); functionponWEI(){ mw.util.insertTags('<code style="background:steelblue;color:white">','</code>',''); } functionsmall(){ mw.util.insertTags('<small>','</small>',''); } functionbig(){ mw.util.insertTags('<big>','</big>',''); } functionsagnBeyging(){ mw.util.insertTags('{{Sagnbeyging|\nég-nútíð=\n|þú-nútíð=\n|hann-nútíð=\n|við-nútíð=\n|þið-nútíð=\n|þeir-nútíð=\n|ég-nútíð-miðmynd=\n|Þátíð=\n|Lýsingarháttur þátíðar=\n|Viðtengingarháttur=\n|Boðháttur=\n|allar sagnbeygingar=\n','}}',''); } functionadvBeyging(){ mw.util.insertTags('{{Lýsingarorðsbeyging-is\n|frumstig.et.nf.kk.sterk=\n|miðstig.et.nf.kk=\n|efsta stig.et.nf.kk.sterk=\n|frumstig.et.nf.kv.sterk=\n|miðstig.et.nf.kv=\n|efsta stig.et.nf.kv.sterk=\n|frumstig.et.nf.hk.sterk=\n|miðstig.et.nf.hk=\n|efsta stig.et.nf.hk.sterk=\n\n|frumstig.ft.nf.kk.sterk=\n|miðstig.ft.nf.kk=\n|efsta stig.ft.nf.kk.sterk=\n|frumstig.ft.nf.kv.sterk=\n|miðstig.ft.nf.kv=\n|efsta stig.ft.nf.kv.sterk=\n|frumstig.ft.nf.hk.sterk=\n|miðstig.ft.nf.hk=\n|efsta stig.ft.nf.hk.sterk=\n','}}',''); } functionhola(){ mw.util.insertTags('{{subst:Bienvenido usuario','}}',''); } functionhallo(){ mw.util.insertTags('{{subst:Hallo','}}',''); } functiontest(){ mw.util.insertTags('{{subst:Test','}}',''); } functionsonder(){ mw.util.insertTags('\n<!-- á= %E1, ð= %F0, é= %E9, í=%ED, ó= %F3, ú= %FA, ý= %FD, þ=%FE, æ= %E6, ö= %F6 -->','',''); } functionponKat(){ mw.util.insertTags('{{Fallbeyging ','}}',''); } functionponSubst(){ mw.util.insertTags('{{subst:','}}',''); } functionspContrib(){ mw.util.insertTags('[[Special:Contributions/',']]',''); } functionclearAll(){ mw.util.insertTags('<br clear="all"','>',''); } functionponPre(){ mw.util.insertTags('<pre>','</pre>',''); } functionUetrad(){ mw.util.insertTags('*{{is}}: [1] {{Ü|is|','}}',''); } functionmyndir(){ mw.util.insertTags('[[Mynd:','|thumb|200px|[1] ]]',''); } functioniceOnline(){ mw.util.insertTags('{{Ref-IcelandicOnlineDictionary|','}}',''); } functionordabanki(){ mw.util.insertTags('{{Ref-Orðabanki|','}}',''); } functionordabokhaskolans(){ mw.util.insertTags('{{Ref-Orðabók Háskólans|','}}',''); } functionhugtakasafn(){ mw.util.insertTags('{{Ref-Hugtakasafn|','}}',''); } // </nowiki> /*********** Fin botonera ************/ varoldEditsectionLinks=true; // ---Ende usuarioagente--- // [[User:Jsimlo/shortcuts.js]] mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Spacebirdy/grmpf.js&action=raw&ctype=text/javascript'); functionshortcutsInit(){ shortcutsAddLink('Meldingar','Special:Allmessages'); shortcutsAddLink('Nýjustu greinar','Special:Newpages'); shortcutsAddLink('Stuttar síður','Special:Shortpages'); shortcutsAddLink('Bannaðir notendur','Special:Ipblocklist'); shortcutsAddLink('Notendalisti','Special:Listusers/sysop'); shortcutsAddLink('Leita að vefföngum','Special:Linksearch'); shortcutsAddLink('PrefixIndex','Special:Prefixindex'); shortcutsAddLink('Stjórnendalisti','Special:Listadmins'); }