בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,708
רעדאגירונגען
("דארט", און דרעפט אין רוי קאליר) |
אין תקציר עריכה |
||
| (20 מיטלסטע ווערסיעס פון 2 באַניצער נישט געוויזן.) | |||
| שורה 1: | שורה 1: | ||
/* אלע סקריפטן פון JavaScript דא געשריבן וועלן געלאדן ווערן פאר אלע באניצער ווען זיי לאדירן דעם בלאט */ | /* אלע סקריפטן פון JavaScript דא געשריבן וועלן געלאדן ווערן פאר אלע באניצער ווען זיי לאדירן דעם בלאט */ | ||
// adds backlink to copied text | |||
document.addEventListener('copy', function(event) { | |||
const selection = window.getSelection(); | |||
if (!selection || selection.rangeCount === 0) return; | |||
const selectedText = selection.toString(); | |||
if (selectedText.length > 150) { | |||
if (event.clipboardData) { | |||
const attribution = "\n\nפון המכלול: " + decodeURI(document.location.href); | |||
const combinedText = selectedText + attribution; | |||
event.clipboardData.setData('text/plain', combinedText); | |||
event.preventDefault(); | |||
} | |||
} | |||
}); | |||
// פונקציה לסקריפטים דו-לשוניים | // פונקציה לסקריפטים דו-לשוניים | ||
| שורה 32: | שורה 47: | ||
} | } | ||
}); | }); | ||
var ns = mw.config.get('wgNamespaceNumber'); | var ns = mw.config.get('wgNamespaceNumber'); | ||
$(function(){ | $(function(){ | ||
if (ns === 8000) { | if (ns === 8000) { | ||
// דאס טוישט בעקגראונד קאליר פון דרעפטס אין רוי | // דאס טוישט בעקגראונד קאליר פון דרעפטס אין רוי | ||
if (document.getElementById("mbox-draft")) { | var txt = document.getElementById("wpTextbox1"); | ||
if (document.getElementById("mbox-draft") || (txt && txt.value.includes("{" + "{דרעפט"))) { | |||
var contentElement = document.querySelector("#content"); | var contentElement = document.querySelector("#content"); | ||
contentElement.style.backgroundColor = "#F9F7F8"; | contentElement.style.backgroundColor = "#F9F7F8"; | ||
} else if (document.getElementById("yiwiki")) { | |||
// לייג צו דעם ווארענונג | |||
addEditIntro( 'מוסטער:וויקי editintro' ); | |||
} | } | ||
} | } | ||
| שורה 107: | שורה 65: | ||
/* | /*if (mw.config.get("wgAction") === "history") { | ||
importScript("MediaWiki:FixHistPage.js"); // הסתרת קישורים ותיבות checkbox בדף ההיסטוריה והוספת אפשרות להפעלתם באמצעות כפתור מתאים. | importScript("MediaWiki:FixHistPage.js"); // הסתרת קישורים ותיבות checkbox בדף ההיסטוריה והוספת אפשרות להפעלתם באמצעות כפתור מתאים. | ||
}*/ | }*/ | ||
| שורה 200: | שורה 158: | ||
}); | }); | ||
} | } | ||
/** WikiMiniAtlas ******************************************************* | |||
* | |||
* Description: WikiMiniAtlas is a popup click and drag world map. | |||
* This script causes all of our coordinate links to display the WikiMiniAtlas popup button. | |||
* The script itself is located on meta because it is used by many projects. | |||
* See [[Meta:WikiMiniAtlas]] for more information. | |||
* Maintainers: [[User:Dschwen]] | |||
( function () { | |||
if ( $( 'a.external.text[href*=geohack], div.kmldata' ).length ) { | |||
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' ); | |||
} | |||
} )(); */ | |||
/* | |||
* Description: Redirects from /User:UserName/skin.js or .css to the user's actual skin page. Used (also) in {{תב|דף אישי}}. | |||
* Originally created by [[:en:User:Cacycle]] | |||
*/ | |||
$( function () { | |||
if ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgUserName' ) ) { | |||
var pageName = mw.config.get( 'wgPageName' ); | |||
var slash = pageName.indexOf( '/' ); | |||
var norm = pageName.substr( 0, slash ) + mw.config.get( 'wgPageName' ).substr( slash ).toLowerCase(); | |||
var test = 'באַניצער:' + mw.config.get( 'wgUserName' ).replace( / /g, '_' ) + '/skin.'; | |||
var ext = null; | |||
if ( norm === test + 'js' ) { | |||
ext = 'js'; | |||
} else if (norm === test + 'css') { | |||
ext = 'css'; | |||
} | |||
if ( ext !== null ) { | |||
window.location.href = window.location.href.replace( | |||
/\/skin.(css|js)/i, | |||
'/' + mw.config.get( 'skin' ) + '.' + ext | |||
); | |||
} | |||
} | |||
// create an event when util.addPortletLink() is called, so scripts that manipulate menus ca readjust. | |||
var oldFunc = mw.util.addPortletLink; | |||
if ( typeof oldFunc === 'function' ) { | |||
mw.util.addPortletLink = function () { | |||
var res = oldFunc.apply( this, arguments ); | |||
$( document ).trigger( 'new-portlet-link' ); | |||
return res; | |||
}; | |||
} | |||
} ); | |||
if ( | if ( | ||
רעדאגירונגען