בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,362
רעדאגירונגען
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 16: | שורה 16: | ||
return lang === 'he' ? he || yi : yi; | return lang === 'he' ? he || yi : yi; | ||
} | } | ||
var element = document.getElementById('pt-anontalk'); | |||
if(element){ | |||
element.style.display = "none"; | |||
} | |||
element = document.getElementById('pt-mysandbox'); | |||
if(element){ | |||
element.style.display = "none"; | |||
} | |||
element = document.getElementById('pt-anoncontribs'); | |||
if(element){ | |||
element.style.display = "none"; | |||
} | |||
mw.loader.load( | |||
"/w/index.php?title=MediaWiki:common2.js&action=raw&ctype=text/javascript" | |||
); | |||
//כל ההוספות המקומיות במכלול עברית | |||
if (mw.config.get("wgAction") === "history") { | |||
importScript("MediaWiki:FixHistPage.js"); // הסתרת קישורים ותיבות checkbox בדף ההיסטוריה והוספת אפשרות להפעלתם באמצעות כפתור מתאים. | |||
} | |||
function importScript(script) { | |||
mw.loader.load( | |||
"/w/index.php?title=" + | |||
encodeURI(script) + | |||
"&action=raw&ctype=text/javascript" | |||
); | |||
} | |||
function importStylesheet(styleSheet) { | |||
mw.loader.load( | |||
"/w/index.php?title=" + | |||
encodeURI(styleSheet) + | |||
"&action=raw&ctype=text/css", | |||
"text/css" | |||
); | |||
} | |||
function importStylesheetURI(uri) { | |||
mw.loader.load(uri, "text/css"); | |||
} | |||
/* | |||
function importHebScript(script) { | |||
mw.loader.load( | |||
"https://www.hamichlol.org.il/w/index.php?title=" + | |||
encodeURI(script) + | |||
"&action=raw&ctype=text/javascript" | |||
); | |||
} | |||
*/ | |||
/* ייבוא סקריפטים */ | /* ייבוא סקריפטים */ | ||
| שורה 187: | שורה 242: | ||
// Detects uses of template "טען סקריפט" and loads specifically-named gadgets. | // Detects uses of template "טען סקריפט" and loads specifically-named gadgets. | ||
// gadget name as defined in gadgets-definition must begin with "ondemand-" | // gadget name as defined in gadgets-definition must begin with "ondemand-" | ||
if (mw.config.get( | if ( mw.config.get('wgCanonicalNamespace') !== 'Special' ) | ||
mw.hook( 'wikipage.content' ).add( function( content ) { | |||
$( '.executeJS', content ).each( function () { | |||
var gadget = $( this ).data( 'gadgetname' ); | |||
if ( gadget && $.trim( gadget ) ) | |||
mw.loader.load( 'ext.gadget.ondemand-' + $.trim( gadget ) ); | |||
} ); | |||
} ); | |||
} | |||
} | |||
רעדאגירונגען