User:JeongAhn/monobook.js

/* if (wgNamespaceNumber >= 0) addOnloadHook(function{ var pCactions = document.getElementById('p-cactions'); document.write(pCactions); if (!pCactions) return; var caMain = pCactions.getElementsByTagName('li')[0]; document.write(caMain); var caTalk = document.getElementById('ca-talk'); document.write(caTalk); var caEdit = document.getElementById('ca-edit'); document.write(caEdit); if (!caEdit) caEdit = document.getElementById('ca-viewsource'); var caHistory = document.getElementById('ca-history'); if (!caMain || !caTalk || !caEdit || !caHistory) return; var el_move, el_create, id2; if (wgNamespaceNumber % 2) { //talk space  el_move = caTalk; el_create = caMain; id2 = ''; } else {   el_move = caMain; el_create = caTalk; id2 = 'discussion'; } caEdit.firstChild.innerHTML = 'edit'; caHistory.firstChild.innerHTML = 'hist'; el_move.parentNode.insertBefore(caHistory, el_move.nextSibling); el_move.parentNode.insertBefore(caEdit, el_move.nextSibling); var href = el_create.firstChild.getAttribute('href', 2); if (el_create.className.indexOf('new') < 0){ mw.util.addPortletLink('p-cactions', href + '?action=history', 'hist2',    'ca-history-'+id2, id2+' history', '', el_create.nextSibling); mw.util.addPortletLink('p-cactions', href + '?action=edit', 'edit2',    'ca-edit-'+id2, 'Edit '+id2, '', el_create.nextSibling); }  caMain.style.marginRight = '10px'; // caMain.style.marginTop = '10px'; // caMain.style.padding = '10px'; caMain.style.Height ='50px'; caMain.style.minHeight ='50px'; caMain.style.border = '2px dotted #aaa'; caTalk.style.marginRight = '10px'; caTalk.style.marginLeft = '0px'; // caTalk.style.paddingTop  = '10px'; caTalk.style.rows ='50px'; // caTalk.style.marginTop = '10px'; caTalk.style.backgroundColor = '#ffaaaa'; }) */

addPortletLink ('p-cactions', '/wiki/Special:MyPage/monobook.js', 'My monobook.js');

addOnloadHook( function {

var JAFA = document.getElementById( "featured-star" ); if (!JAFA) return; addPortletLink ('p-tb', '/wiki/Special:MyPage/monobook.js', 'My monobook.js'); });

addOnloadHook( function { var el = document.getElementById('n-help'); if (el) el.style.display = 'none'; });

addOnloadHook( function { if (wgCanonicalSpecialPageName == "Recentchanges") {

mw.util.addPortletLink("p-cactions", wgServer + "/wiki/Starcraft", "Starcraft", "ca-star", "Star!"); } });

addOnloadHook( function { if (wgNamespaceNumber != 3) return;  if (document.getElementById( "t-emailuser" )) return;  mw.util.addPortletLink("p-cactions", "http://openrbl.org/query?" + wgTitle, "RDNS", "ca-RDNS", "RDNS"); });

addOnloadHook(  function{   var test = document.getElementsByName("span");    for(var i=0 ; i+-]';    } });