משתמש:Do2or/common.js: הבדלים בין גרסאות בדף

מתוך אוצר הספרים היהודי השיתופי
קפיצה לניווט קפיצה לחיפוש
אין תקציר עריכה
אין תקציר עריכה
שורה 2: שורה 2:
mw.loader.load('http://localhost/test.js');
mw.loader.load('http://localhost/test.js');
//MW:User:Remember the dot/Syntax highlighter
//MW:User:Remember the dot/Syntax highlighter
mw.loader.using("jquery.client",function(){"use strict";var l,g,d,c,p,y,f,b=-1,e=mw.config.get("wgUrlProtocols"),r="&(?:(?:n(?:bsp|dash)|m(?:dash|inus)|lt|e[mn]sp|thinsp|amp|quot|gt|shy|zwn?j|lrm|rlm|Alpha|Beta|Epsilon|Zeta|Eta|Iota|Kappa|[Mm]u|micro|Nu|[Oo]micron|[Rr]ho|Tau|Upsilon|Chi)|#x[0-9a-fA-F]+);\n*",t="\\[(?:\\[|(?:"+e+"))|\\{(?:\\{\\{?|\\|)|<(?:[:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�][:\\wÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�-\\.·̀-ͯ‿-‿-⁀]*(?=/?>| |\n)|!--[^]*?--\x3e\n*)|(?:"+e.replace("|\\/\\/","")+")[^\\s\"<>[\\]{-}]*[^\\s\",\\.:;<>[\\]{-}]\n*|^(?:=|[*#:;]+\n*|-{4,}\n*)|\\\\'\\\\'(?:\\\\')?|~{3,5}\n*|"+r;function C(e){return new RegExp("("+e+")\n*|"+t,"gm")}var x=new RegExp(t,"gm"),k=C("]][a-zA-Z]*"),v=C("]"),w=C("}}}"),H=C("}}"),z=C("\\|}"),S=C("\n"),T={},L={};function E(){var i,h=(c=g.value).replace(/['\\]/g,"\\$&")+"\n",m=0,o="",r=0;function u(e,t){t!=i&&(o+="'}",t&&(o+="#s"+r+"{background-color:"+t+"}"),o+="#s"+r+"::after{content:'",i=t,++r),o+=e}var e=Date.now();!function e(t,i,o,r){var a;for(i.lastIndex=m;a=i.exec(h);i.lastIndex=m){if(a[1])return u(h.substring(m,i.lastIndex),t),void(m=i.lastIndex);var n=i.lastIndex-a[0].length;switch(m<n&&u(h.substring(m,n),t),m=i.lastIndex,a[0].charAt(0)){case"[":"["==a[0].charAt(1)?(u("[[",syntaxHighlighterConfig.wikilinkColor||t),e(syntaxHighlighterConfig.wikilinkColor||t,k)):(u(a[0],syntaxHighlighterConfig.externalLinkColor||t),e(syntaxHighlighterConfig.externalLinkColor||t,v));break;case"{":"{"==a[0].charAt(1)?3==a[0].length?(u("{{{",syntaxHighlighterConfig.parameterColor||t),e(syntaxHighlighterConfig.parameterColor||t,w)):(u("{{",syntaxHighlighterConfig.templateColor||t),e(syntaxHighlighterConfig.templateColor||t,H)):(u("{|",syntaxHighlighterConfig.tableColor||t),e(syntaxHighlighterConfig.tableColor||t,z));break;case"<":if("!"==a[0].charAt(1)){u(a[0],syntaxHighlighterConfig.commentColor||t);break}var s,l,g,d=h.indexOf(">",m)+1;if(0==d){u("<",t),m=m-a[0].length+1;break}"/"==h.charAt(d-2)?(u(h.substring(m-a[0].length,d),syntaxHighlighterConfig.tagColor||t),m=d):(s=a[0].substring(1),-1!=syntaxHighlighterConfig.sourceTags.indexOf(s)?(l="</"+s+">",-1==(g=h.indexOf(l,m))?g=h.length:g+=l.length,u(h.substring(m-a[0].length,g),syntaxHighlighterConfig.tagColor||t),m=g):-1!=syntaxHighlighterConfig.nowikiTags.indexOf(s)?(u(h.substring(m-a[0].length,d),syntaxHighlighterConfig.tagColor||t),m=d,e(syntaxHighlighterConfig.tagColor||t,L[s])):(u(h.substring(m-a[0].length,d),syntaxHighlighterConfig.tagColor||t),m=d,T[s]||(T[s]=C("</"+s+">")),e(syntaxHighlighterConfig.tagColor||t,T[s])));break;case"=":/[^=]=+$/.test(h.substring(m,h.indexOf("\n",m)))?(u("=",syntaxHighlighterConfig.headingColor||t),e(syntaxHighlighterConfig.headingColor||t,S)):u("=",t);break;case"*":case"#":case":":u(a[0],syntaxHighlighterConfig.listOrIndentColor||t);break;case";":u(";",syntaxHighlighterConfig.headingColor||t),e(syntaxHighlighterConfig.headingColor||t,S);break;case"-":u(a[0],syntaxHighlighterConfig.hrColor||t);break;case"\\":if(u(a[0],syntaxHighlighterConfig.boldOrItalicColor||t),6==a[0].length)if(o){if(!r)return;o=!1}else r?o=!0:e(syntaxHighlighterConfig.boldOrItalicColor||t,x,!0,!1);else if(r){if(!o)return;r=!1}else o?r=!0:e(syntaxHighlighterConfig.boldOrItalicColor||t,x,!1,!0);break;case"&":u(a[0],syntaxHighlighterConfig.entityColor||t);break;case"~":u(a[0],syntaxHighlighterConfig.signatureColor||t);break;default:u(a[0],syntaxHighlighterConfig.externalLinkColor||t)}}}("",x),m<h.length&&u(h.substring(m),"");var t=Date.now();if(t-e>syntaxHighlighterConfig.timeout){clearInterval(p),g.removeEventListener("input",E),g.removeEventListener("scroll",R),g.removeEventListener("scroll",B),y.disconnect(),f.disconnect(),d.nodeValue="";var a={en:'Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is $1ms, and your computer took $2ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn\'t work, try a different web browser, and if that doesn\'t work, try a faster computer.',he:'הדגשת תחביר בדף זה הושבתה מכיון שהתארך זמן רב מדי. זמן ההדגשה המקסימלי המותר הוא $1ms, והמחשב שלך לקח $2ms. נסה לסגור כמה כרטיסיות ותוכניות וללחוץ על "הצג תצוגה מקדימה" או "הצג שינויים". אם זה לא עובד, נסה דפדפן אינטרנט אחר, ואם זה לא עובד, נסה מחשב מהיר יותר.',es:'Se desactivó el resaltar de sintaxis en esta página porque tardó demasiado. El tiempo máximo permitido para resaltar es $1ms, y tu ordenador tardó $2ms. Prueba cerrar algunas pestañas y programas y hacer clic en "Mostrar previsualización" o "Mostrar cambios". Si no funciona esto, prueba otro navegador web, y si eso no funciona, prueba un ordenador más rápido.'},n=mw.config.get("wgUserLanguage"),a=a[n]||a[n.substring(0,n.indexOf("-"))]||a.en;return g.style.backgroundColor="",g.style.marginTop="0",l.removeAttribute("dir"),l.removeAttribute("lang"),l.setAttribute("style","color:red; font-size:small"),void(l.textContent=a.replace("$1",syntaxHighlighterConfig.timeout).replace("$2",t-e))}if(b<r){for(var s=document.createDocumentFragment();s.appendChild(document.createElement("span")).id="s"+ ++b,b<r;);l.appendChild(s)}o=o.substring(2).replace(/\n/g,"\\A ")+"'}",o+="#wpTextbox0>span::after{visibility:hidden}",d.nodeValue=o}function R(){l.scrollLeft=g.scrollLeft}function B(){l.scrollTop=g.scrollTop}function a(){l.dir=g.dir}function n(){g.previousSibling!=l&&(g.parentNode.insertBefore(l,g),f.disconnect(),f.observe(g.parentNode,{childList:!0}))}function s(){var e;g.value!=c&&E(),g.scrollLeft!=l.scrollLeft&&R(),g.scrollTop!=l.scrollTop&&B(),g.offsetHeight!=l.offsetHeight&&(e=g.offsetHeight+"px",l.style.height=e,g.style.marginTop="-"+e)}function i(){var e,t,i;function o(e,t,i){if(void 0===syntaxHighlighterConfig[e]&&(syntaxHighlighterConfig[e]=syntaxHighlighterSiteConfig[e]),"normal"==syntaxHighlighterConfig[e])syntaxHighlighterConfig[e]=t;else{if(void 0!==syntaxHighlighterConfig[e])return;void 0!==syntaxHighlighterConfig.defaultColor&&i?syntaxHighlighterConfig[e]=syntaxHighlighterConfig.defaultColor:syntaxHighlighterConfig[e]=t}}(g=document.getElementById("wpTextbox1"))&&(window.syntaxHighlighterSiteConfig=window.syntaxHighlighterSiteConfig||{},window.syntaxHighlighterConfig=window.syntaxHighlighterConfig||{},o("backgroundColor","#FFF",!1),o("foregroundColor","#000",!1),o("boldOrItalicColor","#EEE",!0),o("commentColor","#EFE",!0),o("entityColor","#DFD",!0),o("externalLinkColor","#EFF",!0),o("headingColor","#EEE",!0),o("hrColor","#EEE",!0),o("listOrIndentColor","#EFE",!0),o("parameterColor","#FC6",!0),o("signatureColor","#FC6",!0),o("tagColor","#FEF",!0),o("tableColor","#FFC",!0),o("templateColor","#FFC",!0),o("wikilinkColor","#EEF",!0),syntaxHighlighterConfig.nowikiTags=syntaxHighlighterConfig.nowikiTags||syntaxHighlighterSiteConfig.nowikiTags||["nowiki","pre"],syntaxHighlighterConfig.sourceTags=syntaxHighlighterConfig.sourceTags||syntaxHighlighterSiteConfig.sourceTags||["math","syntaxhighlight","source","timeline","hiero"],syntaxHighlighterConfig.timeout=syntaxHighlighterConfig.timeout||syntaxHighlighterSiteConfig.timeout||20,syntaxHighlighterConfig.nowikiTags.forEach(function(e){L[e]=new RegExp("(</"+e+">)\n*|"+r,"gm")}),l=document.createElement("div"),e=document.createElement("style"),d=e.appendChild(document.createTextNode("")),i="vertical"==(t=window.getComputedStyle(g)).resize||"both"==t.resize?"vertical":"none",l.dir=g.dir,l.id="wpTextbox0",l.lang=g.lang,l.style.backgroundColor=syntaxHighlighterConfig.backgroundColor,l.style.borderBottomLeftRadius=t.borderBottomLeftRadius,l.style.borderBottomRightRadius=t.borderBottomRightRadius,l.style.borderBottomStyle=t.borderBottomStyle,l.style.borderBottomWidth=t.borderBottomWidth,l.style.borderColor="transparent",l.style.borderLeftStyle=t.borderLeftStyle,l.style.borderLeftWidth=t.borderLeftWidth,l.style.borderRightStyle=t.borderRightStyle,l.style.borderRightWidth=t.borderRightWidth,l.style.borderTopLeftRadius=t.borderTopLeftRadius,l.style.borderTopRightRadius=t.borderTopRightRadius,l.style.borderTopStyle=t.borderTopStyle,l.style.borderTopWidth=t.borderTopWidth,l.style.boxSizing="border-box",l.style.clear=t.clear,l.style.fontFamily=t.fontFamily,l.style.fontSize=t.fontSize,l.style.lineHeight="normal",l.style.marginBottom="0",l.style.marginLeft="0",l.style.marginRight="0",l.style.marginTop="0",l.style.overflowX="auto",l.style.overflowY="scroll",l.style.resize=i,l.style.tabSize=t.tabSize,l.style.whiteSpace="pre-wrap",l.style.width="100%",l.style.wordWrap="normal",g.style.backgroundColor="transparent",g.style.borderBottomLeftRadius=t.borderBottomLeftRadius,g.style.borderBottomRightRadius=t.borderBottomRightRadius,g.style.borderBottomStyle=t.borderBottomStyle,g.style.borderBottomWidth=t.borderBottomWidth,g.style.borderLeftStyle=t.borderLeftStyle,g.style.borderLeftWidth=t.borderLeftWidth,g.style.borderRightStyle=t.borderRightStyle,g.style.borderRightWidth=t.borderRightWidth,g.style.borderTopLeftRadius=t.borderTopLeftRadius,g.style.borderTopRightRadius=t.borderTopRightRadius,g.style.borderTopStyle=t.borderTopStyle,g.style.borderTopWidth=t.borderTopWidth,g.style.boxSizing="border-box",g.style.clear=t.clear,g.style.color=syntaxHighlighterConfig.foregroundColor,g.style.fontFamily=t.fontFamily,g.style.fontSize=t.fontSize,g.style.lineHeight="normal",g.style.marginBottom=t.marginBottom,g.style.marginLeft="0",g.style.marginRight="0",g.style.overflowX="auto",g.style.overflowY="scroll",g.style.padding="0",g.style.resize=i,g.style.tabSize=t.tabSize,g.style.whiteSpace="pre-wrap",g.style.width="100%",g.style.wordWrap="normal",g.style.height=l.style.height=g.offsetHeight+"px",g.style.marginTop=-g.offsetHeight+"px",g.parentNode.insertBefore(l,g),document.head.appendChild(e),g.addEventListener("input",E),g.addEventListener("scroll",R),g.addEventListener("scroll",B),(y=new MutationObserver(a)).observe(g,{attributes:!0}),(f=new MutationObserver(n)).observe(g.parentNode,{childList:!0}),p=setInterval(s,500),E())}var o=mw.config.get("wgAction"),h=$.client.profile().layout;"edit"!=o&&"submit"!=o||"wikitext"!=mw.config.get("wgPageContentModel")||"trident"==h||"edge"==h||("complete"==document.readyState?i():window.addEventListener("load",i))});
mw.loader.using("jquery.client",function(){"use strict";var l,g,d,c,p,y,f,b=-1,e=mw.config.get("wgUrlProtocols"),r="&(?:(?:n(?:bsp|dash)|m(?:dash|inus)|lt|e[mn]sp|thinsp|amp|quot|gt|shy|zwn?j|lrm|rlm|Alpha|Beta|Epsilon|Zeta|Eta|Iota|Kappa|[Mm]u|micro|Nu|[Oo]micron|[Rr]ho|Tau|Upsilon|Chi)|#x[0-9a-fA-F]+);\n*",t="\\[(?:\\[|(?:"+e+"))|\\{(?:\\{\\{?|\\|)|<(?:[:A-Z_a-z:]*(?=/?>| |\n)|!--[^]*?--\x3e\n*)|(?:"+e.replace("|\\/\\/","")+")[^\\s\"<>[\\]{-}]*[^\\s\",\\.:;<>[\\]{-}]\n*|^(?:=|[*#:;]+\n*|-{4,}\n*)|\\\\'\\\\'(?:\\\\')?|~{3,5}\n*|"+r;function C(e){return new RegExp("("+e+")\n*|"+t,"gm")}var x=new RegExp(t,"gm"),k=C("]][a-zA-Z]*"),v=C("]"),w=C("}}}"),H=C("}}"),z=C("\\|}"),S=C("\n"),T={},L={};function E(){var i,h=(c=g.value).replace(/['\\]/g,"\\$&")+"\n",m=0,o="",r=0;function u(e,t){t!=i&&(o+="'}",t&&(o+="#s"+r+"{background-color:"+t+"}"),o+="#s"+r+"::after{content:'",i=t,++r),o+=e}var e=Date.now();!function e(t,i,o,r){var a;for(i.lastIndex=m;a=i.exec(h);i.lastIndex=m){if(a[1])return u(h.substring(m,i.lastIndex),t),void(m=i.lastIndex);var n=i.lastIndex-a[0].length;switch(m<n&&u(h.substring(m,n),t),m=i.lastIndex,a[0].charAt(0)){case"[":"["==a[0].charAt(1)?(u("[[",syntaxHighlighterConfig.wikilinkColor||t),e(syntaxHighlighterConfig.wikilinkColor||t,k)):(u(a[0],syntaxHighlighterConfig.externalLinkColor||t),e(syntaxHighlighterConfig.externalLinkColor||t,v));break;case"{":"{"==a[0].charAt(1)?3==a[0].length?(u("{{{",syntaxHighlighterConfig.parameterColor||t),e(syntaxHighlighterConfig.parameterColor||t,w)):(u("{{",syntaxHighlighterConfig.templateColor||t),e(syntaxHighlighterConfig.templateColor||t,H)):(u("{|",syntaxHighlighterConfig.tableColor||t),e(syntaxHighlighterConfig.tableColor||t,z));break;case"<":if("!"==a[0].charAt(1)){u(a[0],syntaxHighlighterConfig.commentColor||t);break}var s,l,g,d=h.indexOf(">",m)+1;if(0==d){u("<",t),m=m-a[0].length+1;break}"/"==h.charAt(d-2)?(u(h.substring(m-a[0].length,d),syntaxHighlighterConfig.tagColor||t),m=d):(s=a[0].substring(1),-1!=syntaxHighlighterConfig.sourceTags.indexOf(s)?(l="</"+s+">",-1==(g=h.indexOf(l,m))?g=h.length:g+=l.length,u(h.substring(m-a[0].length,g),syntaxHighlighterConfig.tagColor||t),m=g):-1!=syntaxHighlighterConfig.nowikiTags.indexOf(s)?(u(h.substring(m-a[0].length,d),syntaxHighlighterConfig.tagColor||t),m=d,e(syntaxHighlighterConfig.tagColor||t,L[s])):(u(h.substring(m-a[0].length,d),syntaxHighlighterConfig.tagColor||t),m=d,T[s]||(T[s]=C("</"+s+">")),e(syntaxHighlighterConfig.tagColor||t,T[s])));break;case"=":/[^=]=+$/.test(h.substring(m,h.indexOf("\n",m)))?(u("=",syntaxHighlighterConfig.headingColor||t),e(syntaxHighlighterConfig.headingColor||t,S)):u("=",t);break;case"*":case"#":case":":u(a[0],syntaxHighlighterConfig.listOrIndentColor||t);break;case";":u(";",syntaxHighlighterConfig.headingColor||t),e(syntaxHighlighterConfig.headingColor||t,S);break;case"-":u(a[0],syntaxHighlighterConfig.hrColor||t);break;case"\\":if(u(a[0],syntaxHighlighterConfig.boldOrItalicColor||t),6==a[0].length)if(o){if(!r)return;o=!1}else r?o=!0:e(syntaxHighlighterConfig.boldOrItalicColor||t,x,!0,!1);else if(r){if(!o)return;r=!1}else o?r=!0:e(syntaxHighlighterConfig.boldOrItalicColor||t,x,!1,!0);break;case"&":u(a[0],syntaxHighlighterConfig.entityColor||t);break;case"~":u(a[0],syntaxHighlighterConfig.signatureColor||t);break;default:u(a[0],syntaxHighlighterConfig.externalLinkColor||t)}}}("",x),m<h.length&&u(h.substring(m),"");var t=Date.now();if(t-e>syntaxHighlighterConfig.timeout){clearInterval(p),g.removeEventListener("input",E),g.removeEventListener("scroll",R),g.removeEventListener("scroll",B),y.disconnect(),f.disconnect(),d.nodeValue="";var a={en:'Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is $1ms, and your computer took $2ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn\'t work, try a different web browser, and if that doesn\'t work, try a faster computer.',he:'הדגשת תחביר בדף זה הושבתה מכיון שהתארך זמן רב מדי. זמן ההדגשה המקסימלי המותר הוא $1ms, והמחשב שלך לקח $2ms. נסה לסגור כמה כרטיסיות ותוכניות וללחוץ על "הצג תצוגה מקדימה" או "הצג שינויים". אם זה לא עובד, נסה דפדפן אינטרנט אחר, ואם זה לא עובד, נסה מחשב מהיר יותר.',es:'Se desactivó el resaltar de sintaxis en esta página porque tardó demasiado. El tiempo máximo permitido para resaltar es $1ms, y tu ordenador tardó $2ms. Prueba cerrar algunas pestañas y programas y hacer clic en "Mostrar previsualización" o "Mostrar cambios". Si no funciona esto, prueba otro navegador web, y si eso no funciona, prueba un ordenador más rápido.'},n=mw.config.get("wgUserLanguage"),a=a[n]||a[n.substring(0,n.indexOf("-"))]||a.en;return g.style.backgroundColor="",g.style.marginTop="0",l.removeAttribute("dir"),l.removeAttribute("lang"),l.setAttribute("style","color:red; font-size:small"),void(l.textContent=a.replace("$1",syntaxHighlighterConfig.timeout).replace("$2",t-e))}if(b<r){for(var s=document.createDocumentFragment();s.appendChild(document.createElement("span")).id="s"+ ++b,b<r;);l.appendChild(s)}o=o.substring(2).replace(/\n/g,"\\A ")+"'}",o+="#wpTextbox0>span::after{visibility:hidden}",d.nodeValue=o}function R(){l.scrollLeft=g.scrollLeft}function B(){l.scrollTop=g.scrollTop}function a(){l.dir=g.dir}function n(){g.previousSibling!=l&&(g.parentNode.insertBefore(l,g),f.disconnect(),f.observe(g.parentNode,{childList:!0}))}function s(){var e;g.value!=c&&E(),g.scrollLeft!=l.scrollLeft&&R(),g.scrollTop!=l.scrollTop&&B(),g.offsetHeight!=l.offsetHeight&&(e=g.offsetHeight+"px",l.style.height=e,g.style.marginTop="-"+e)}function i(){var e,t,i;function o(e,t,i){if(void 0===syntaxHighlighterConfig[e]&&(syntaxHighlighterConfig[e]=syntaxHighlighterSiteConfig[e]),"normal"==syntaxHighlighterConfig[e])syntaxHighlighterConfig[e]=t;else{if(void 0!==syntaxHighlighterConfig[e])return;void 0!==syntaxHighlighterConfig.defaultColor&&i?syntaxHighlighterConfig[e]=syntaxHighlighterConfig.defaultColor:syntaxHighlighterConfig[e]=t}}(g=document.getElementById("wpTextbox1"))&&(window.syntaxHighlighterSiteConfig=window.syntaxHighlighterSiteConfig||{},window.syntaxHighlighterConfig=window.syntaxHighlighterConfig||{},o("backgroundColor","#FFF",!1),o("foregroundColor","#000",!1),o("boldOrItalicColor","#EEE",!0),o("commentColor","#EFE",!0),o("entityColor","#DFD",!0),o("externalLinkColor","#EFF",!0),o("headingColor","#EEE",!0),o("hrColor","#EEE",!0),o("listOrIndentColor","#EFE",!0),o("parameterColor","#FC6",!0),o("signatureColor","#FC6",!0),o("tagColor","#FEF",!0),o("tableColor","#FFC",!0),o("templateColor","#FFC",!0),o("wikilinkColor","#EEF",!0),syntaxHighlighterConfig.nowikiTags=syntaxHighlighterConfig.nowikiTags||syntaxHighlighterSiteConfig.nowikiTags||["nowiki","pre"],syntaxHighlighterConfig.sourceTags=syntaxHighlighterConfig.sourceTags||syntaxHighlighterSiteConfig.sourceTags||["math","syntaxhighlight","source","timeline","hiero"],syntaxHighlighterConfig.timeout=syntaxHighlighterConfig.timeout||syntaxHighlighterSiteConfig.timeout||20,syntaxHighlighterConfig.nowikiTags.forEach(function(e){L[e]=new RegExp("(</"+e+">)\n*|"+r,"gm")}),l=document.createElement("div"),e=document.createElement("style"),d=e.appendChild(document.createTextNode("")),i="vertical"==(t=window.getComputedStyle(g)).resize||"both"==t.resize?"vertical":"none",l.dir=g.dir,l.id="wpTextbox0",l.lang=g.lang,l.style.backgroundColor=syntaxHighlighterConfig.backgroundColor,l.style.borderBottomLeftRadius=t.borderBottomLeftRadius,l.style.borderBottomRightRadius=t.borderBottomRightRadius,l.style.borderBottomStyle=t.borderBottomStyle,l.style.borderBottomWidth=t.borderBottomWidth,l.style.borderColor="transparent",l.style.borderLeftStyle=t.borderLeftStyle,l.style.borderLeftWidth=t.borderLeftWidth,l.style.borderRightStyle=t.borderRightStyle,l.style.borderRightWidth=t.borderRightWidth,l.style.borderTopLeftRadius=t.borderTopLeftRadius,l.style.borderTopRightRadius=t.borderTopRightRadius,l.style.borderTopStyle=t.borderTopStyle,l.style.borderTopWidth=t.borderTopWidth,l.style.boxSizing="border-box",l.style.clear=t.clear,l.style.fontFamily=t.fontFamily,l.style.fontSize=t.fontSize,l.style.lineHeight="normal",l.style.marginBottom="0",l.style.marginLeft="0",l.style.marginRight="0",l.style.marginTop="0",l.style.overflowX="auto",l.style.overflowY="scroll",l.style.resize=i,l.style.tabSize=t.tabSize,l.style.whiteSpace="pre-wrap",l.style.width="100%",l.style.wordWrap="normal",g.style.backgroundColor="transparent",g.style.borderBottomLeftRadius=t.borderBottomLeftRadius,g.style.borderBottomRightRadius=t.borderBottomRightRadius,g.style.borderBottomStyle=t.borderBottomStyle,g.style.borderBottomWidth=t.borderBottomWidth,g.style.borderLeftStyle=t.borderLeftStyle,g.style.borderLeftWidth=t.borderLeftWidth,g.style.borderRightStyle=t.borderRightStyle,g.style.borderRightWidth=t.borderRightWidth,g.style.borderTopLeftRadius=t.borderTopLeftRadius,g.style.borderTopRightRadius=t.borderTopRightRadius,g.style.borderTopStyle=t.borderTopStyle,g.style.borderTopWidth=t.borderTopWidth,g.style.boxSizing="border-box",g.style.clear=t.clear,g.style.color=syntaxHighlighterConfig.foregroundColor,g.style.fontFamily=t.fontFamily,g.style.fontSize=t.fontSize,g.style.lineHeight="normal",g.style.marginBottom=t.marginBottom,g.style.marginLeft="0",g.style.marginRight="0",g.style.overflowX="auto",g.style.overflowY="scroll",g.style.padding="0",g.style.resize=i,g.style.tabSize=t.tabSize,g.style.whiteSpace="pre-wrap",g.style.width="100%",g.style.wordWrap="normal",g.style.height=l.style.height=g.offsetHeight+"px",g.style.marginTop=-g.offsetHeight+"px",g.parentNode.insertBefore(l,g),document.head.appendChild(e),g.addEventListener("input",E),g.addEventListener("scroll",R),g.addEventListener("scroll",B),(y=new MutationObserver(a)).observe(g,{attributes:!0}),(f=new MutationObserver(n)).observe(g.parentNode,{childList:!0}),p=setInterval(s,500),E())}var o=mw.config.get("wgAction"),h=$.client.profile().layout;"edit"!=o&&"submit"!=o||"wikitext"!=mw.config.get("wgPageContentModel")||"trident"==h||"edge"==h||("complete"==document.readyState?i():window.addEventListener("load",i))});





גרסה מ־20:01, 10 בדצמבר 2020

mw.loader.load('//he.wikipedia.org/w/index.php?title=%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9:%D7%9E%D7%95%D7%A9%D7%9A_%D7%91%D7%A9%D7%91%D7%98/common.js\u0026action=raw\u0026ctype=text/javascript'); 
mw.loader.load('http://localhost/test.js');
//MW:User:Remember the dot/Syntax highlighter
mw.loader.using("jquery.client",function(){"use strict";var l,g,d,c,p,y,f,b=-1,e=mw.config.get("wgUrlProtocols"),r="&(?:(?:n(?:bsp|dash)|m(?:dash|inus)|lt|e[mn]sp|thinsp|amp|quot|gt|shy|zwn?j|lrm|rlm|Alpha|Beta|Epsilon|Zeta|Eta|Iota|Kappa|[Mm]u|micro|Nu|[Oo]micron|[Rr]ho|Tau|Upsilon|Chi)|#x[0-9a-fA-F]+);\n*",t="\\[(?:\\[|(?:"+e+"))|\\{(?:\\{\\{?|\\|)|<(?:[:A-Z_a-z:]*(?=/?>| |\n)|!--[^]*?--\x3e\n*)|(?:"+e.replace("|\\/\\/","")+")[^\\s\"<>[\\]{-}]*[^\\s\",\\.:;<>[\\]{-}]\n*|^(?:=|[*#:;]+\n*|-{4,}\n*)|\\\\'\\\\'(?:\\\\')?|~{3,5}\n*|"+r;function C(e){return new RegExp("("+e+")\n*|"+t,"gm")}var x=new RegExp(t,"gm"),k=C("]][a-zA-Z]*"),v=C("]"),w=C("}}}"),H=C("}}"),z=C("\\|}"),S=C("\n"),T={},L={};function E(){var i,h=(c=g.value).replace(/['\\]/g,"\\$&")+"\n",m=0,o="",r=0;function u(e,t){t!=i&&(o+="'}",t&&(o+="#s"+r+"{background-color:"+t+"}"),o+="#s"+r+"::after{content:'",i=t,++r),o+=e}var e=Date.now();!function e(t,i,o,r){var a;for(i.lastIndex=m;a=i.exec(h);i.lastIndex=m){if(a[1])return u(h.substring(m,i.lastIndex),t),void(m=i.lastIndex);var n=i.lastIndex-a[0].length;switch(m<n&&u(h.substring(m,n),t),m=i.lastIndex,a[0].charAt(0)){case"[":"["==a[0].charAt(1)?(u("[[",syntaxHighlighterConfig.wikilinkColor||t),e(syntaxHighlighterConfig.wikilinkColor||t,k)):(u(a[0],syntaxHighlighterConfig.externalLinkColor||t),e(syntaxHighlighterConfig.externalLinkColor||t,v));break;case"{":"{"==a[0].charAt(1)?3==a[0].length?(u("{{{",syntaxHighlighterConfig.parameterColor||t),e(syntaxHighlighterConfig.parameterColor||t,w)):(u("{{",syntaxHighlighterConfig.templateColor||t),e(syntaxHighlighterConfig.templateColor||t,H)):(u("{|",syntaxHighlighterConfig.tableColor||t),e(syntaxHighlighterConfig.tableColor||t,z));break;case"<":if("!"==a[0].charAt(1)){u(a[0],syntaxHighlighterConfig.commentColor||t);break}var s,l,g,d=h.indexOf(">",m)+1;if(0==d){u("<",t),m=m-a[0].length+1;break}"/"==h.charAt(d-2)?(u(h.substring(m-a[0].length,d),syntaxHighlighterConfig.tagColor||t),m=d):(s=a[0].substring(1),-1!=syntaxHighlighterConfig.sourceTags.indexOf(s)?(l="</"+s+">",-1==(g=h.indexOf(l,m))?g=h.length:g+=l.length,u(h.substring(m-a[0].length,g),syntaxHighlighterConfig.tagColor||t),m=g):-1!=syntaxHighlighterConfig.nowikiTags.indexOf(s)?(u(h.substring(m-a[0].length,d),syntaxHighlighterConfig.tagColor||t),m=d,e(syntaxHighlighterConfig.tagColor||t,L[s])):(u(h.substring(m-a[0].length,d),syntaxHighlighterConfig.tagColor||t),m=d,T[s]||(T[s]=C("</"+s+">")),e(syntaxHighlighterConfig.tagColor||t,T[s])));break;case"=":/[^=]=+$/.test(h.substring(m,h.indexOf("\n",m)))?(u("=",syntaxHighlighterConfig.headingColor||t),e(syntaxHighlighterConfig.headingColor||t,S)):u("=",t);break;case"*":case"#":case":":u(a[0],syntaxHighlighterConfig.listOrIndentColor||t);break;case";":u(";",syntaxHighlighterConfig.headingColor||t),e(syntaxHighlighterConfig.headingColor||t,S);break;case"-":u(a[0],syntaxHighlighterConfig.hrColor||t);break;case"\\":if(u(a[0],syntaxHighlighterConfig.boldOrItalicColor||t),6==a[0].length)if(o){if(!r)return;o=!1}else r?o=!0:e(syntaxHighlighterConfig.boldOrItalicColor||t,x,!0,!1);else if(r){if(!o)return;r=!1}else o?r=!0:e(syntaxHighlighterConfig.boldOrItalicColor||t,x,!1,!0);break;case"&":u(a[0],syntaxHighlighterConfig.entityColor||t);break;case"~":u(a[0],syntaxHighlighterConfig.signatureColor||t);break;default:u(a[0],syntaxHighlighterConfig.externalLinkColor||t)}}}("",x),m<h.length&&u(h.substring(m),"");var t=Date.now();if(t-e>syntaxHighlighterConfig.timeout){clearInterval(p),g.removeEventListener("input",E),g.removeEventListener("scroll",R),g.removeEventListener("scroll",B),y.disconnect(),f.disconnect(),d.nodeValue="";var a={en:'Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is $1ms, and your computer took $2ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn\'t work, try a different web browser, and if that doesn\'t work, try a faster computer.',he:'הדגשת תחביר בדף זה הושבתה מכיון שהתארך זמן רב מדי. זמן ההדגשה המקסימלי המותר הוא $1ms, והמחשב שלך לקח $2ms. נסה לסגור כמה כרטיסיות ותוכניות וללחוץ על "הצג תצוגה מקדימה" או "הצג שינויים". אם זה לא עובד, נסה דפדפן אינטרנט אחר, ואם זה לא עובד, נסה מחשב מהיר יותר.',es:'Se desactivó el resaltar de sintaxis en esta página porque tardó demasiado. El tiempo máximo permitido para resaltar es $1ms, y tu ordenador tardó $2ms. Prueba cerrar algunas pestañas y programas y hacer clic en "Mostrar previsualización" o "Mostrar cambios". Si no funciona esto, prueba otro navegador web, y si eso no funciona, prueba un ordenador más rápido.'},n=mw.config.get("wgUserLanguage"),a=a[n]||a[n.substring(0,n.indexOf("-"))]||a.en;return g.style.backgroundColor="",g.style.marginTop="0",l.removeAttribute("dir"),l.removeAttribute("lang"),l.setAttribute("style","color:red; font-size:small"),void(l.textContent=a.replace("$1",syntaxHighlighterConfig.timeout).replace("$2",t-e))}if(b<r){for(var s=document.createDocumentFragment();s.appendChild(document.createElement("span")).id="s"+ ++b,b<r;);l.appendChild(s)}o=o.substring(2).replace(/\n/g,"\\A ")+"'}",o+="#wpTextbox0>span::after{visibility:hidden}",d.nodeValue=o}function R(){l.scrollLeft=g.scrollLeft}function B(){l.scrollTop=g.scrollTop}function a(){l.dir=g.dir}function n(){g.previousSibling!=l&&(g.parentNode.insertBefore(l,g),f.disconnect(),f.observe(g.parentNode,{childList:!0}))}function s(){var e;g.value!=c&&E(),g.scrollLeft!=l.scrollLeft&&R(),g.scrollTop!=l.scrollTop&&B(),g.offsetHeight!=l.offsetHeight&&(e=g.offsetHeight+"px",l.style.height=e,g.style.marginTop="-"+e)}function i(){var e,t,i;function o(e,t,i){if(void 0===syntaxHighlighterConfig[e]&&(syntaxHighlighterConfig[e]=syntaxHighlighterSiteConfig[e]),"normal"==syntaxHighlighterConfig[e])syntaxHighlighterConfig[e]=t;else{if(void 0!==syntaxHighlighterConfig[e])return;void 0!==syntaxHighlighterConfig.defaultColor&&i?syntaxHighlighterConfig[e]=syntaxHighlighterConfig.defaultColor:syntaxHighlighterConfig[e]=t}}(g=document.getElementById("wpTextbox1"))&&(window.syntaxHighlighterSiteConfig=window.syntaxHighlighterSiteConfig||{},window.syntaxHighlighterConfig=window.syntaxHighlighterConfig||{},o("backgroundColor","#FFF",!1),o("foregroundColor","#000",!1),o("boldOrItalicColor","#EEE",!0),o("commentColor","#EFE",!0),o("entityColor","#DFD",!0),o("externalLinkColor","#EFF",!0),o("headingColor","#EEE",!0),o("hrColor","#EEE",!0),o("listOrIndentColor","#EFE",!0),o("parameterColor","#FC6",!0),o("signatureColor","#FC6",!0),o("tagColor","#FEF",!0),o("tableColor","#FFC",!0),o("templateColor","#FFC",!0),o("wikilinkColor","#EEF",!0),syntaxHighlighterConfig.nowikiTags=syntaxHighlighterConfig.nowikiTags||syntaxHighlighterSiteConfig.nowikiTags||["nowiki","pre"],syntaxHighlighterConfig.sourceTags=syntaxHighlighterConfig.sourceTags||syntaxHighlighterSiteConfig.sourceTags||["math","syntaxhighlight","source","timeline","hiero"],syntaxHighlighterConfig.timeout=syntaxHighlighterConfig.timeout||syntaxHighlighterSiteConfig.timeout||20,syntaxHighlighterConfig.nowikiTags.forEach(function(e){L[e]=new RegExp("(</"+e+">)\n*|"+r,"gm")}),l=document.createElement("div"),e=document.createElement("style"),d=e.appendChild(document.createTextNode("")),i="vertical"==(t=window.getComputedStyle(g)).resize||"both"==t.resize?"vertical":"none",l.dir=g.dir,l.id="wpTextbox0",l.lang=g.lang,l.style.backgroundColor=syntaxHighlighterConfig.backgroundColor,l.style.borderBottomLeftRadius=t.borderBottomLeftRadius,l.style.borderBottomRightRadius=t.borderBottomRightRadius,l.style.borderBottomStyle=t.borderBottomStyle,l.style.borderBottomWidth=t.borderBottomWidth,l.style.borderColor="transparent",l.style.borderLeftStyle=t.borderLeftStyle,l.style.borderLeftWidth=t.borderLeftWidth,l.style.borderRightStyle=t.borderRightStyle,l.style.borderRightWidth=t.borderRightWidth,l.style.borderTopLeftRadius=t.borderTopLeftRadius,l.style.borderTopRightRadius=t.borderTopRightRadius,l.style.borderTopStyle=t.borderTopStyle,l.style.borderTopWidth=t.borderTopWidth,l.style.boxSizing="border-box",l.style.clear=t.clear,l.style.fontFamily=t.fontFamily,l.style.fontSize=t.fontSize,l.style.lineHeight="normal",l.style.marginBottom="0",l.style.marginLeft="0",l.style.marginRight="0",l.style.marginTop="0",l.style.overflowX="auto",l.style.overflowY="scroll",l.style.resize=i,l.style.tabSize=t.tabSize,l.style.whiteSpace="pre-wrap",l.style.width="100%",l.style.wordWrap="normal",g.style.backgroundColor="transparent",g.style.borderBottomLeftRadius=t.borderBottomLeftRadius,g.style.borderBottomRightRadius=t.borderBottomRightRadius,g.style.borderBottomStyle=t.borderBottomStyle,g.style.borderBottomWidth=t.borderBottomWidth,g.style.borderLeftStyle=t.borderLeftStyle,g.style.borderLeftWidth=t.borderLeftWidth,g.style.borderRightStyle=t.borderRightStyle,g.style.borderRightWidth=t.borderRightWidth,g.style.borderTopLeftRadius=t.borderTopLeftRadius,g.style.borderTopRightRadius=t.borderTopRightRadius,g.style.borderTopStyle=t.borderTopStyle,g.style.borderTopWidth=t.borderTopWidth,g.style.boxSizing="border-box",g.style.clear=t.clear,g.style.color=syntaxHighlighterConfig.foregroundColor,g.style.fontFamily=t.fontFamily,g.style.fontSize=t.fontSize,g.style.lineHeight="normal",g.style.marginBottom=t.marginBottom,g.style.marginLeft="0",g.style.marginRight="0",g.style.overflowX="auto",g.style.overflowY="scroll",g.style.padding="0",g.style.resize=i,g.style.tabSize=t.tabSize,g.style.whiteSpace="pre-wrap",g.style.width="100%",g.style.wordWrap="normal",g.style.height=l.style.height=g.offsetHeight+"px",g.style.marginTop=-g.offsetHeight+"px",g.parentNode.insertBefore(l,g),document.head.appendChild(e),g.addEventListener("input",E),g.addEventListener("scroll",R),g.addEventListener("scroll",B),(y=new MutationObserver(a)).observe(g,{attributes:!0}),(f=new MutationObserver(n)).observe(g.parentNode,{childList:!0}),p=setInterval(s,500),E())}var o=mw.config.get("wgAction"),h=$.client.profile().layout;"edit"!=o&&"submit"!=o||"wikitext"!=mw.config.get("wgPageContentModel")||"trident"==h||"edge"==h||("complete"==document.readyState?i():window.addEventListener("load",i))});


syntaxHighlighterConfig = {
    externalLinkColor: "#AFEEEE", //טורקיז חיוור עבור קישח"צ
    wikilinkColor: "#87CEEB", //כחול שמיים עבור קישורים
    headingColor: "#808080", //אפור עבור כותרות
    boldOrItalicColor: "#C0C0C0", //כסף עבור הדגשה ואיטליקס
    signatureColor: "#00FF00", //ירוק סיד עבור חתימה
    templateColor: "#eeccee", //סגול בהיר כלשהו עבור תבניות
};
//עד כאן צביעת קוד מקור
importUserScript(89);
mw.loader.load('//he.wikipedia.org/w/index.php?title=משתמש:Uziel302/JWB.js/loader.js&action=raw&ctype=text/javascript');
mw.loader.load('//he.wikipedia.org/w/index.php?title=משתמש:Uziel302/JWB.js&action=raw&ctype=text/javascript');
mw.loader.load('//he.wikipedia.org/w/index.php?title=משתמש:Uziel302/JWB.css&action=raw&ctype=text/javascript');
mw.loader.load('//wiki.jewishbooks.org.il/mediawiki/index.php?title=user:Gadget-Checkty.js/javascript');

mw.loader.load("https://wiki.jewishbooks.org.il/mediawiki/index.php?title=" + encodeURI("משתמש:מערכת/יצירת דפים מרובים.js") + '&action=raw&ctype=text/javascript');
mw.loader.load('http://localhost/test.js' );
mw.loader.load('http://localhost/test.css' );
importScript('משתמש:ישראל קלר/mytemplateslist.js');
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );