User:Utfor/monobook.js

function customtaginsert2(aNode2, before, after, dato, lenketekst, after2) { if (!lenketekst) { var lenketekst = before+after; } if (!after2) { after2=''; } aNode2.innerHTML=aNode2.innerHTML + ''+lenketekst+''; aNode2.innerHTML=aNode2.innerHTML + ''+'***'+''; }

(function (window, document, $, undefined) { var editform = document.getElementById('editform');  if (editform === null) {    return;  }  var aNode = document.createElement('div');  aNode.style.paddingRight = '1.2em';  aNode.style.paddingLeft = '1.2em';  datespecify='\|dato={\{subst:LOCALYEAR}}-{\{subst:LOCALMONTH}}';  customtaginsert2(aNode, "from [\[no:Special:Redirect/page/|en:]\] [\[no:Special:Redirect/revision/]\]","","","no");  customtaginsert2(aNode, "from [\[da:Special:Redirect/page/|da:]\] [\[da:Special:Redirect/revision/]\]","","","da");  customtaginsert2(aNode, "from [\[sv:Special:Redirect/page/|sv:]\] [\[sv:Special:Redirect/revision/]\]","","","sv");  customtaginsert2(aNode, "from [\[nn:Special:Redirect/page/|nn:]\] [\[nn:Special:Redirect/revision/]\]","","","nn");  customtaginsert2(aNode, "from [\[de:Special:Redirect/page/|de:]\] [\[de:Special:Redirect/revision/]\]","","","de"); customtaginsert2(aNode, '#redirect [\[',,,'#redirect [\[]]',']]'); customtaginsert2(aNode, 'internalify links: [\[',,,null,']]'); editform.insertBefore(aNode, editform.children[0]); }(window, document, jQuery));

// Search tab (function (window, document, $, undefined) {

var minegenurl2 = mw.config.get('wgServer')+"/w/index.php?search="+encodeURIComponent(mw.config.get( 'wgPageName' ))+"&title=Special%3ASearch&fulltext=1&ns0=1"; mw.util.addPortletLink("p-cactions", minegenurl2, "Search"); }(window, document, jQuery));