صارف:ثاقب/monobook.js
وکیپیڈیا سے
Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror:: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences.
importScript('MediaWiki:UrduEditor.js');
function addeditor()
{
initUrduEditor();
makeUrduEditor("wpTextbox1");
}
addOnloadHook(addeditor);
addOnloadHook(
function() {
addPortletLink('p-personal','javascript:makeUrduEditor("wpTextbox1")', "اردو کاتب", "ca-editor", "title", document.getElementById("pt-mycontris"))
}
);
var radio = true, runHIM = true;
function HIM()
{
if (runHIM)
{
elCC = document.getElementById('p-tb');
if (elCC != null)
{
if (radio)
{
HIMHTML = '<div class="portlet"><h5><a href="http://vi.wikipedia.org/wiki/Wikipedia:Gõ_tiếng_Việt" title="Wikipedia:Gõ tiếng Việt">Gõ tiếng Việt</a></h5><div class="pBody">';
HIMHTML += '<input id="him_auto" name="viet_method" type="radio" onclick="alert("hello")" '/> <label class="radio" for="him_auto">Tự động</label> <small>[F9]</small><br />';
HIMHTML += '<input id="him_telex" name="viet_method" type="radio" onclick="alert("hgj")" ' /> <label class="radio" for="him_telex">Telex</label> <a href="http://vi.wikipedia.org/wiki/Telex#Quy_.C6.B0.E1.BB.9Bc_telex" title="Telex#Quy ước telex" style="font-size: smaller">(?)</a><br />';
elCC.innerHTML = HIMHTML + elCC.innerHTML;
}
}}}
addOnloadHook(HIM);

