|
|
| (8 מיטלסטע ווערסיעס פון 2 באַניצער נישט געוויזן.) |
| שורה 32: |
שורה 32: |
| } | | } |
| }); | | }); |
|
| |
| //מכאן סקריפט תיקון התמונות בזרימה
| |
| if (mw.config.get("wgPageContentModel") === "flow-board") {
| |
| var images = $("[src^='//localhost:8080']");
| |
| for (var i = 0; i < images.length; i++) {
| |
| var img = images[i];
| |
|
| |
| img.setAttribute(
| |
| "src",
| |
| img.getAttribute("src").replace("//localhost:8080", "//yi.hamichlol.org.il")
| |
| );
| |
| images[i] = img;
| |
| }
| |
| images = $("[src^='http://localhost:8080']");
| |
| for (var i = 0; i < images.length; i++) {
| |
| var img = images[i];
| |
|
| |
| img.setAttribute(
| |
| "src",
| |
| img.getAttribute("src").replace("//localhost:8080", "//yi.hamichlol.org.il")
| |
| );
| |
| images[i] = img;
| |
| }
| |
| images = $("[src^='http://localhost']");
| |
| for (var i = 0; i < images.length; i++) {
| |
| var img = images[i];
| |
|
| |
| img.setAttribute(
| |
| "src",
| |
| img.getAttribute("src").replace("//localhost", "//yi.hamichlol.org.il")
| |
| );
| |
| images[i] = img;
| |
| }
| |
| images = $("[src^='//localhost']");
| |
| for (var i = 0; i < images.length; i++) {
| |
| var img = images[i];
| |
|
| |
| img.setAttribute(
| |
| "src",
| |
| img.getAttribute("src").replace("//localhost", "//yi.hamichlol.org.il")
| |
| );
| |
| images[i] = img;
| |
| }
| |
| images = $("img");
| |
| for (var i = 0; i < images.length; i++) {
| |
| var img = images[i];
| |
|
| |
| img.setAttribute(
| |
| "src",
| |
| img
| |
| .getAttribute("src")
| |
| .replace("//mediawiki/w/upload/michlol", "/w/upload/michlol")
| |
| );
| |
| images[i] = img;
| |
| }
| |
| }
| |
| //עד כאן סקריפט תיקון התמונות בזרימה
| |
|
| |
| // באנוצט צוצולייגן א ווארענונג אדער מעלדונג ביים רעדאגירן ספעציפישע בלעטער
| |
| function addEditIntro( name ) {
| |
| $( '.mw-editsection, #ca-edit, #ca-ve-edit' ).find( 'a' ).each( function ( i, el ) {
| |
| el.href = $( this ).attr( 'href' ) + '&editintro=' + name;
| |
| } );
| |
| }
| |
|
| |
|
| var ns = mw.config.get('wgNamespaceNumber'); | | var ns = mw.config.get('wgNamespaceNumber'); |
| $(function(){ | | $(function(){ |
| if (ns === 8000) { | | if (ns === 8000) { |
| //דאס רוקט אראפ א מעלדונג אונטער די קאטעגאריעס, באנוצט אין מוסטער:קרד/ויקי/יידיש
| |
| if (document.getElementById("wiki-message")) {
| |
| $("#wiki-message").detach().insertAfter("#catlinks");
| |
| // לייג צו דעם ווארענונג
| |
| addEditIntro( 'מוסטער:רוי editintro' );
| |
| }
| |
| // דאס טוישט בעקגראונד קאליר פון דרעפטס אין רוי | | // דאס טוישט בעקגראונד קאליר פון דרעפטס אין רוי |
| else if (document.getElementById("mbox-draft") || (document.getElementById("wpTextbox1").value.includes("{{דרעפט}}"))) { | | 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' ); |
| } | | } |
| } | | } |
| שורה 116: |
שורה 50: |
|
| |
|
|
| |
|
| /*נif (mw.config.get("wgAction") === "history") { | | /*if (mw.config.get("wgAction") === "history") { |
| importScript("MediaWiki:FixHistPage.js"); // הסתרת קישורים ותיבות checkbox בדף ההיסטוריה והוספת אפשרות להפעלתם באמצעות כפתור מתאים. | | importScript("MediaWiki:FixHistPage.js"); // הסתרת קישורים ותיבות checkbox בדף ההיסטוריה והוספת אפשרות להפעלתם באמצעות כפתור מתאים. |
| }*/ | | }*/ |