User:シ/monobook.js

function initEditMode { jsMsg(A test message called hopefully by Initiating Edit mode,) } function initViewMode { jsMsg(A test message called hopefully by Initiating Normal mode,) } $(function {  if(wgAction == 'edit' || (wgAction == 'submit' && document.getElementById('wikiDiff')) ){    mw.util.addPortletLink('p-tb', 'javascript:alert("You need to preview the text for the prose size script to work in edit mode.")', 'Page size', 't-page-size', 'Calculate page and prose size', , );    document.getElementById("t-page-size").firstChild.style.cssText = "color:black;"  }  else if(wgAction == 'view' || wgAction == 'submit' || wgAction == 'purge'){    mw.util.addPortletLink('p-tb', 'javascript:getDocumentSize', 'Page size', 't-page-size', 'Calculate page and prose size', , );  } }); $(function {  if(wgAction == 'edit' || wgAction == 'submit'){    mw.util.addPortletLink('p-tb', 'javascript:initEditMode', 'Page size', 't-rff-helper', 'asses an article recieve automatic suggestions respond notify the requesting user leave tags on the article and articles talk page all through the RFF Helper Interface your current edit will even be saved', , );    document.getElementById("t-rff-helper").firstChild.style.cssText = "color:brown;"  }  else if(wgAction == 'view' || wgAction == 'submit' || wgAction == 'purge'){    mw.util.addPortletLink('p-tb', 'javascript:initViewMode', 'Page size', 't-rff-helper', 'asses an article recieve automatic suggestions respond notify the requesting user leave tags on the article and articles talk page all through the RFF Helper Interface/', , );    document.getElementById("t-rff-helper").firstChild.style.cssText = "color:brown;"  } }); $(function {  if(wgAction == 'edit' || (wgAction == 'submit' && document.getElementById('wikiDiff')) ){    mw.util.addPortletLink('p-tb', 'javascript:alert("You need to preview the text for the prose size script to work in edit mode.")', 'Page size', 't-page-size', 'Calculate page and prose size', , );    document.getElementById("t-page-size").firstChild.style.cssText = "color:black;"  }  else if(wgAction == 'view' || wgAction == 'submit' || wgAction == 'purge'){    mw.util.addPortletLink('p-tb', 'javascript:initViewMode', 'Page size', 't-page-size', 'Calculate page and prose size', , );  } });