More languages
More actions
No edit summary |
minified again |
||
| Line 1: | Line 1: | ||
function ModifySidebar(e,t,i,n){try{switch(t){case"languages":var a="p-lang";break;case"toolbox":a="p-tb";break;case"navigation":a="p-navigation";break;default:a="p-"+t}if("add"==e){var o=document.getElementById(a).getElementsByTagName("div")[0].getElementsByTagName("ul")[0],l=document.createElement("a"),s=document.createElement("li");l.appendChild(document.createTextNode(i)),l.setAttribute("href",n),s.appendChild(l),s.className="plainlinks",o.appendChild(s)}if("remove"==e)for(var r=document.getElementById(a).getElementsByTagName("div")[0].getElementsByTagName("ul")[0],c=r.getElementsByTagName("li"),d=0;d<c.length;d++)c[d].getElementsByTagName("a")[0].innerHTML!=i&&c[d].getElementsByTagName("a")[0].href!=n||r.removeChild(c[d])}catch(e){return}}function CustomizeModificationsOfSidebar(){ModifySidebar("add","toolbox","List of uploaded files","https://en.prolewiki.org/wiki/Special:ListFiles")}!function(){var e="[hide]",t="[show]";function i(i,n){var a,o=document.getElementById("NavToggle"+i),l=document.getElementById("NavFrame"+i);if(n.preventDefault(),!l||!o)return!1;if(o.firstChild.data===e){for(a=l.firstChild;null!==a;a=a.nextSibling)($(a).hasClass("NavContent")||$(a).hasClass("NavPic"))&&(a.style.display="none");o.firstChild.data=t}else if(o.firstChild.data===t){for(a=l.firstChild;null!==a;a=a.nextSibling)($(a).hasClass("NavContent")||$(a).hasClass("NavPic"))&&(a.style.display="block");o.firstChild.data=e}}mw.hook("wikipage.content").add((function(n){var a,o,l,s,r,c=0;n.find("div.NavFrame").each((function(n,d){for(c++,(l=document.createElement("a")).className="NavToggle",l.setAttribute("id","NavToggle"+c),l.setAttribute("href","#"),$(l).on("click",$.proxy(i,null,c)),r=$(d).hasClass("collapsed"),o=d.firstChild;null!==o&&!r;o=o.nextSibling)($(o).hasClass("NavPic")||$(o).hasClass("NavContent"))&&"none"===o.style.display&&(r=!0);if(r)for(o=d.firstChild;null!==o;o=o.nextSibling)($(o).hasClass("NavPic")||$(o).hasClass("NavContent"))&&(o.style.display="none");for(s=document.createTextNode(r?t:e),l.appendChild(s),a=0;a<d.childNodes.length;a++)$(d.childNodes[a]).hasClass("NavHead")&&(l.style.color=d.childNodes[a].style.color,d.childNodes[a].appendChild(l));d.setAttribute("id","NavFrame"+c)}))}))}(),jQuery(CustomizeModificationsOfSidebar),$((function(){var e=$(".citizen-drawer");if(e.length){var t=[{cls:"sidebar-library",href:"/wiki/ProleWiki:Library",title:"Library"},{cls:"sidebar-essays",href:"/wiki/ProleWiki:Essays",title:"Essays"}];mw.user.isAnon()||t.push({cls:"sidebar-upload",href:"/wiki/Special:Upload",title:"Upload file"});for(var i=t.length-1;i>=0;i--){var n=t[i];e.after('<a class="citizen-header__item '+n.cls+'" href="'+n.href+'" title="'+n.title+'"><div class="citizen-header__button"></div></a>')}}!function(){var e=$("h2, h3, h4, h5").find(".mw-headline");function t(e){var t=document.getElementById(e);t&&window.scrollTo({top:t.offsetTop,behavior:"smooth"})}e.length&&(e.each((function(){var e=$(this),i=e.attr("id");if(i){var n=$('<a href="#'+i+'" class="heading-hyperlink citizen-ui-icon mw-ui-icon-wikimedia-link" title="Direct link to this section" aria-label="Direct link to this section" data-no-preview="true"></a>');n.on("click",(function(e){e.preventDefault(),e.stopPropagation(),t(i),history.replaceState(null,null,"#"+i)})),e.append(n)}})),$(document).on("click",'a[href^="#"]:not(.heading-hyperlink)',(function(e){var i=this.href,n=i.substring(i.indexOf("#")+1);n&&(e.preventDefault(),t(n),history.replaceState(null,null,"#"+n))})))}(),$("#renderingProgress").length&&setTimeout((function(){location.reload()}),5e3)})),$((function(){!function(){var e=document.documentElement,t=5===(new Date).getMonth(),i=[{value:"day",label:"Light",className:"skin-citizen-light"},{value:"os",label:"Auto",className:"skin-citizen-auto"},{value:"night",label:"Dark",className:"skin-citizen-dark"},{value:"sepia",label:"Sepia",className:"skin-citizen-sepia",labelId:"sepia-style-label"}];function n(t){for(var n=0;n<i.length;n++)e.classList.remove(i[n].className);for(var a=0;a<i.length;a++)if(i[a].value===t){e.classList.add(i[a].className);break}localStorage.setItem("skin-theme-clientpref",t)}t&&i.push({value:"trans",label:"Trans",className:"skin-citizen-trans",labelId:"trans-style-label"});var a=localStorage.getItem("skin-theme-clientpref")||"day";function o(){var e=document.getElementById("skin-client-prefs-skin-theme");if(!e)return setTimeout(o,100);var t=e.querySelector("form"),n=t.querySelector(".citizen-client-prefs-radio");if(n)for(var l=0;l<i.length;l++){var s=i[l],r="skin-client-pref-skin-theme-value-"+s.value;if(!document.getElementById(r)){var c=n.cloneNode(!0),d=c.querySelector("input"),u=c.querySelector("label");d.id=r,d.value=s.value,d.name="skin-client-pref-skin-theme-group",d.checked=a===s.value,u.setAttribute("for",r),u.textContent=s.label,s.labelId&&(u.id=s.labelId),t.appendChild(c)}}}"trans"!==a||t||(a="day"),n(a),$(document).on("change",'input[name="skin-client-pref-skin-theme-group"]',(function(){n(this.value)})),o()}(),function(){var e=document.documentElement,t="skin-font-clientpref",i="skin-client-prefs-citizen-feature-custom-font-size",n=[{value:"sans",label:"Sans",className:"font-sans"},{value:"serif",label:"Serif",className:"font-serif"},{value:"dyslexic",label:"Accessibility",className:"font-dyslexic"}],a=localStorage.getItem(t)||"sans";function o(i){for(var a=0;a<n.length;a++)e.classList.remove(n[a].className);if("sans"!==i)for(var o=0;o<n.length;o++)if(n[o].value===i){e.classList.add(n[o].className);break}localStorage.setItem(t,i)}function l(){if(!document.getElementById("skin-client-prefs-font")){var e=document.getElementById("citizen-client-prefs");if(!e)return setTimeout(l,100);var t=document.createElement("div");t.className="mw-portlet mw-portlet-js citizen-menu",t.id="skin-client-prefs-font",t.innerHTML='<div class="citizen-menu__heading">Typeface</div><div class="citizen-menu__content"><ul class="citizen-menu__content-list"><li class="mw-list-item mw-list-item-js"><form></form></li></ul></div>';var o=document.getElementById(i);o?o.nextSibling?o.parentNode.insertBefore(t,o.nextSibling):o.parentNode.appendChild(t):e.appendChild(t);var s=document.querySelector(".citizen-client-prefs-radio"),r=t.querySelector("form");if(s&&r)for(var c=0;c<n.length;c++){var d=n[c],u="skin-client-pref-font-value-"+d.value,m=s.cloneNode(!0),h=m.querySelector("input"),f=m.querySelector("label");h.id=u,h.value=d.value,h.name="skin-client-pref-font-group",h.checked=a===d.value,f.setAttribute("for",u),f.textContent=d.label,f.className=f.className+" "+d.className,f.id=d.value+"-font-label",r.appendChild(m)}}}o(a),$(document).on("change",'input[name="skin-client-pref-font-group"]',(function(){o(this.value)})),l()}()})),"ontouchstart"in window||navigator.maxTouchPoints>0||$((function(){var e,t,i,n,a,o=document.documentElement,l=!1;"ontouchstart"in window||$(document).on("keydown",(function(e){48!==e.keyCode&&96!==e.keyCode||$(e.target).is("input, textarea, [contenteditable]")||(l=!l,o.classList.toggle("reading-mode",l),l&&window._paq&&_paq.push(["trackGoal",12]))})),e=$('<div id="hover-line"></div>').css({position:"fixed",left:0,width:"100%",height:"1.5em",pointerEvents:"none",zIndex:1,transition:"top 0.1s ease, background-color 0.3s ease",display:"none",backgroundColor:"var(--color-hoverline, rgba(255,255,150,0.2))"}).appendTo("body"),$(document).on("mousemove",(function(t){if(l){var i=document.elementFromPoint(t.clientX,t.clientY);if(i)if($(i).closest("p, li")[0]){var n;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(t.clientX,t.clientY);else if(document.caretPositionFromPoint){var a=document.caretPositionFromPoint(t.clientX,t.clientY);a&&((n=document.createRange()).setStart(a.offsetNode,a.offset),n.collapse(!0))}if(n){var o=n.getBoundingClientRect();o&&0!==o.height?e.css({top:o.top+"px",height:o.height+"px",display:"block"}):e.hide()}else e.hide()}else e.hide();else e.hide()}else e.hide()})),t=$('<div id="reading-progress-wrapper"></div>').css({position:"fixed",bottom:0,left:0,width:"100%",height:"12px",zIndex:9999,pointerEvents:"auto"}).appendTo("body"),i=$('<div id="reading-progress-bar"></div>').css({position:"absolute",bottom:0,left:0,height:"4px",backgroundColor:"var(--color-progress-bar)",width:"0%",transition:"width 0.1s ease-out",pointerEvents:"none"}).appendTo(t),n=$('<div id="reading-progress-tooltip"></div>').css({position:"fixed",padding:"2px 6px",backgroundColor:"#333",color:"#fff",fontSize:"1em",borderRadius:"3px",pointerEvents:"none",zIndex:1e4,display:"none"}).appendTo("body"),a=0,$(window).on("scroll",(function(){if(l){t.show();var e=$(window).scrollTop(),n=$(document).height(),o=$(window).height(),s=Math.min(100,e/(n-o)*100);Math.abs(s-a)>.5&&(i.width(s+"%"),a=s)}else t.hide()})),t.hover((function(){l&&n.show()}),(function(){n.hide()})),t.on("mousemove",(function(e){if(l){var t=$(window).scrollTop(),i=$(document).height(),a=$(window).height(),o=Math.min(100,t/(i-a)*100);n.text(Math.round(o)+"%").css({left:e.clientX+8+"px",bottom:"16px"})}}))})),mw.loader.using(["ext.visualEditor.desktopArticleTarget.init"]).then((function(){mw.hook("ve.activationComplete").add((function(){var e=setInterval((function(){var t=$(".ve-init-mw-welcomeDialog-content");if(t.length&&(clearInterval(e),!t.data("custom-appended"))){t.append('<br><br>Please read our <strong><a href="/wiki/Principles">Principles</a></strong> and <strong><a href="/wiki/Encyclopedic_tone_guide">Encyclopedic tone guide</a><strong> first to make sure your edit is approved!'),t.data("custom-appended",!0);var i=OO.ui.WindowManager.static.currentWindow;i&&"function"==typeof i.updateSize&&i.updateSize()}}),200)}))})),$((function(){var e=$("#wpBio");if(e.length){var t="form-bio-autosave",i=$('<div id="autosave-status" style="font-size:0.8em;color:gray;height:1.2em;margin-top:5px;"></div>'),n="";e.after(i);var a=localStorage.getItem(t);a&&(e.val(a),n=a,o("Restored previous work")),e.on("input",(function(){var i=e.val();i!==n&&(o("Saving..."),setTimeout((function(){localStorage.setItem(t,i),n=i,o("Saved locally")}),2e3))})),e.closest("form").on("submit",(function(){localStorage.removeItem(t)}))}function o(e){i.text(e).stop().fadeIn().delay(3e3).fadeOut()}})),$((function(){var e=$("#joinUs"),t=$("#homepage-testimonial");if(e.length&&t.length){var i=['<span>"The ProleWiki community is very welcoming and diverse, with a genuine curiosity towards a broad spectrum of topics, plus a democratic and empathetic approach to learning and decision-making."</span><br><a href="https://en.prolewiki.org/wiki/Comrade:ComradeTrash">ComradeTrash</a>','<span>"Working with ProleWiki has given me the space and drive to learn more, both as a communist and as a professional. I never feel throttled or unable to voice my ideas to the project, and then make them into reality."</span><br><a href="https://en.prolewiki.org/wiki/Comrade:CriticalResist">CriticalResist</a>','<span>"ProleWiki is a lively environment for self-directed socialist education. They are very supportive of indigenous peoples globally, which in this era is hard to find, so among socialists ProleWiki are very principled. The editorship strives for quality."</span><br><a href="https://en.prolewiki.org/wiki/Comrade:Charhapiti">Charhapiti</a>','<span>"As a trans woman, I have never felt more accepted by any other community but that of ProleWiki. It is one of the few leftist spaces online which is principled enough to truly uphold its stance as a consistent ally of the queer community."</span><br><a href="https://en.prolewiki.org/wiki/Comrade:https://en.prolewiki.org/wiki/Comrade:Local_Gay_Communist_-_LGC">Local Gay Communist - LGC'];e.height()>=375&&t.html(i[Math.floor(Math.random()*i.length)]).show()}})); | |||
var | |||
$( | |||
} | |||
} | |||
Revision as of 08:34, 5 August 2025
function ModifySidebar(e,t,i,n){try{switch(t){case"languages":var a="p-lang";break;case"toolbox":a="p-tb";break;case"navigation":a="p-navigation";break;default:a="p-"+t}if("add"==e){var o=document.getElementById(a).getElementsByTagName("div")[0].getElementsByTagName("ul")[0],l=document.createElement("a"),s=document.createElement("li");l.appendChild(document.createTextNode(i)),l.setAttribute("href",n),s.appendChild(l),s.className="plainlinks",o.appendChild(s)}if("remove"==e)for(var r=document.getElementById(a).getElementsByTagName("div")[0].getElementsByTagName("ul")[0],c=r.getElementsByTagName("li"),d=0;d<c.length;d++)c[d].getElementsByTagName("a")[0].innerHTML!=i&&c[d].getElementsByTagName("a")[0].href!=n||r.removeChild(c[d])}catch(e){return}}function CustomizeModificationsOfSidebar(){ModifySidebar("add","toolbox","List of uploaded files","https://en.prolewiki.org/wiki/Special:ListFiles")}!function(){var e="[hide]",t="[show]";function i(i,n){var a,o=document.getElementById("NavToggle"+i),l=document.getElementById("NavFrame"+i);if(n.preventDefault(),!l||!o)return!1;if(o.firstChild.data===e){for(a=l.firstChild;null!==a;a=a.nextSibling)($(a).hasClass("NavContent")||$(a).hasClass("NavPic"))&&(a.style.display="none");o.firstChild.data=t}else if(o.firstChild.data===t){for(a=l.firstChild;null!==a;a=a.nextSibling)($(a).hasClass("NavContent")||$(a).hasClass("NavPic"))&&(a.style.display="block");o.firstChild.data=e}}mw.hook("wikipage.content").add((function(n){var a,o,l,s,r,c=0;n.find("div.NavFrame").each((function(n,d){for(c++,(l=document.createElement("a")).className="NavToggle",l.setAttribute("id","NavToggle"+c),l.setAttribute("href","#"),$(l).on("click",$.proxy(i,null,c)),r=$(d).hasClass("collapsed"),o=d.firstChild;null!==o&&!r;o=o.nextSibling)($(o).hasClass("NavPic")||$(o).hasClass("NavContent"))&&"none"===o.style.display&&(r=!0);if(r)for(o=d.firstChild;null!==o;o=o.nextSibling)($(o).hasClass("NavPic")||$(o).hasClass("NavContent"))&&(o.style.display="none");for(s=document.createTextNode(r?t:e),l.appendChild(s),a=0;a<d.childNodes.length;a++)$(d.childNodes[a]).hasClass("NavHead")&&(l.style.color=d.childNodes[a].style.color,d.childNodes[a].appendChild(l));d.setAttribute("id","NavFrame"+c)}))}))}(),jQuery(CustomizeModificationsOfSidebar),$((function(){var e=$(".citizen-drawer");if(e.length){var t=[{cls:"sidebar-library",href:"/wiki/ProleWiki:Library",title:"Library"},{cls:"sidebar-essays",href:"/wiki/ProleWiki:Essays",title:"Essays"}];mw.user.isAnon()||t.push({cls:"sidebar-upload",href:"/wiki/Special:Upload",title:"Upload file"});for(var i=t.length-1;i>=0;i--){var n=t[i];e.after('<a class="citizen-header__item '+n.cls+'" href="'+n.href+'" title="'+n.title+'"><div class="citizen-header__button"></div></a>')}}!function(){var e=$("h2, h3, h4, h5").find(".mw-headline");function t(e){var t=document.getElementById(e);t&&window.scrollTo({top:t.offsetTop,behavior:"smooth"})}e.length&&(e.each((function(){var e=$(this),i=e.attr("id");if(i){var n=$('<a href="#'+i+'" class="heading-hyperlink citizen-ui-icon mw-ui-icon-wikimedia-link" title="Direct link to this section" aria-label="Direct link to this section" data-no-preview="true"></a>');n.on("click",(function(e){e.preventDefault(),e.stopPropagation(),t(i),history.replaceState(null,null,"#"+i)})),e.append(n)}})),$(document).on("click",'a[href^="#"]:not(.heading-hyperlink)',(function(e){var i=this.href,n=i.substring(i.indexOf("#")+1);n&&(e.preventDefault(),t(n),history.replaceState(null,null,"#"+n))})))}(),$("#renderingProgress").length&&setTimeout((function(){location.reload()}),5e3)})),$((function(){!function(){var e=document.documentElement,t=5===(new Date).getMonth(),i=[{value:"day",label:"Light",className:"skin-citizen-light"},{value:"os",label:"Auto",className:"skin-citizen-auto"},{value:"night",label:"Dark",className:"skin-citizen-dark"},{value:"sepia",label:"Sepia",className:"skin-citizen-sepia",labelId:"sepia-style-label"}];function n(t){for(var n=0;n<i.length;n++)e.classList.remove(i[n].className);for(var a=0;a<i.length;a++)if(i[a].value===t){e.classList.add(i[a].className);break}localStorage.setItem("skin-theme-clientpref",t)}t&&i.push({value:"trans",label:"Trans",className:"skin-citizen-trans",labelId:"trans-style-label"});var a=localStorage.getItem("skin-theme-clientpref")||"day";function o(){var e=document.getElementById("skin-client-prefs-skin-theme");if(!e)return setTimeout(o,100);var t=e.querySelector("form"),n=t.querySelector(".citizen-client-prefs-radio");if(n)for(var l=0;l<i.length;l++){var s=i[l],r="skin-client-pref-skin-theme-value-"+s.value;if(!document.getElementById(r)){var c=n.cloneNode(!0),d=c.querySelector("input"),u=c.querySelector("label");d.id=r,d.value=s.value,d.name="skin-client-pref-skin-theme-group",d.checked=a===s.value,u.setAttribute("for",r),u.textContent=s.label,s.labelId&&(u.id=s.labelId),t.appendChild(c)}}}"trans"!==a||t||(a="day"),n(a),$(document).on("change",'input[name="skin-client-pref-skin-theme-group"]',(function(){n(this.value)})),o()}(),function(){var e=document.documentElement,t="skin-font-clientpref",i="skin-client-prefs-citizen-feature-custom-font-size",n=[{value:"sans",label:"Sans",className:"font-sans"},{value:"serif",label:"Serif",className:"font-serif"},{value:"dyslexic",label:"Accessibility",className:"font-dyslexic"}],a=localStorage.getItem(t)||"sans";function o(i){for(var a=0;a<n.length;a++)e.classList.remove(n[a].className);if("sans"!==i)for(var o=0;o<n.length;o++)if(n[o].value===i){e.classList.add(n[o].className);break}localStorage.setItem(t,i)}function l(){if(!document.getElementById("skin-client-prefs-font")){var e=document.getElementById("citizen-client-prefs");if(!e)return setTimeout(l,100);var t=document.createElement("div");t.className="mw-portlet mw-portlet-js citizen-menu",t.id="skin-client-prefs-font",t.innerHTML='<div class="citizen-menu__heading">Typeface</div><div class="citizen-menu__content"><ul class="citizen-menu__content-list"><li class="mw-list-item mw-list-item-js"><form></form></li></ul></div>';var o=document.getElementById(i);o?o.nextSibling?o.parentNode.insertBefore(t,o.nextSibling):o.parentNode.appendChild(t):e.appendChild(t);var s=document.querySelector(".citizen-client-prefs-radio"),r=t.querySelector("form");if(s&&r)for(var c=0;c<n.length;c++){var d=n[c],u="skin-client-pref-font-value-"+d.value,m=s.cloneNode(!0),h=m.querySelector("input"),f=m.querySelector("label");h.id=u,h.value=d.value,h.name="skin-client-pref-font-group",h.checked=a===d.value,f.setAttribute("for",u),f.textContent=d.label,f.className=f.className+" "+d.className,f.id=d.value+"-font-label",r.appendChild(m)}}}o(a),$(document).on("change",'input[name="skin-client-pref-font-group"]',(function(){o(this.value)})),l()}()})),"ontouchstart"in window||navigator.maxTouchPoints>0||$((function(){var e,t,i,n,a,o=document.documentElement,l=!1;"ontouchstart"in window||$(document).on("keydown",(function(e){48!==e.keyCode&&96!==e.keyCode||$(e.target).is("input, textarea, [contenteditable]")||(l=!l,o.classList.toggle("reading-mode",l),l&&window._paq&&_paq.push(["trackGoal",12]))})),e=$('<div id="hover-line"></div>').css({position:"fixed",left:0,width:"100%",height:"1.5em",pointerEvents:"none",zIndex:1,transition:"top 0.1s ease, background-color 0.3s ease",display:"none",backgroundColor:"var(--color-hoverline, rgba(255,255,150,0.2))"}).appendTo("body"),$(document).on("mousemove",(function(t){if(l){var i=document.elementFromPoint(t.clientX,t.clientY);if(i)if($(i).closest("p, li")[0]){var n;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(t.clientX,t.clientY);else if(document.caretPositionFromPoint){var a=document.caretPositionFromPoint(t.clientX,t.clientY);a&&((n=document.createRange()).setStart(a.offsetNode,a.offset),n.collapse(!0))}if(n){var o=n.getBoundingClientRect();o&&0!==o.height?e.css({top:o.top+"px",height:o.height+"px",display:"block"}):e.hide()}else e.hide()}else e.hide();else e.hide()}else e.hide()})),t=$('<div id="reading-progress-wrapper"></div>').css({position:"fixed",bottom:0,left:0,width:"100%",height:"12px",zIndex:9999,pointerEvents:"auto"}).appendTo("body"),i=$('<div id="reading-progress-bar"></div>').css({position:"absolute",bottom:0,left:0,height:"4px",backgroundColor:"var(--color-progress-bar)",width:"0%",transition:"width 0.1s ease-out",pointerEvents:"none"}).appendTo(t),n=$('<div id="reading-progress-tooltip"></div>').css({position:"fixed",padding:"2px 6px",backgroundColor:"#333",color:"#fff",fontSize:"1em",borderRadius:"3px",pointerEvents:"none",zIndex:1e4,display:"none"}).appendTo("body"),a=0,$(window).on("scroll",(function(){if(l){t.show();var e=$(window).scrollTop(),n=$(document).height(),o=$(window).height(),s=Math.min(100,e/(n-o)*100);Math.abs(s-a)>.5&&(i.width(s+"%"),a=s)}else t.hide()})),t.hover((function(){l&&n.show()}),(function(){n.hide()})),t.on("mousemove",(function(e){if(l){var t=$(window).scrollTop(),i=$(document).height(),a=$(window).height(),o=Math.min(100,t/(i-a)*100);n.text(Math.round(o)+"%").css({left:e.clientX+8+"px",bottom:"16px"})}}))})),mw.loader.using(["ext.visualEditor.desktopArticleTarget.init"]).then((function(){mw.hook("ve.activationComplete").add((function(){var e=setInterval((function(){var t=$(".ve-init-mw-welcomeDialog-content");if(t.length&&(clearInterval(e),!t.data("custom-appended"))){t.append('<br><br>Please read our <strong><a href="/wiki/Principles">Principles</a></strong> and <strong><a href="/wiki/Encyclopedic_tone_guide">Encyclopedic tone guide</a><strong> first to make sure your edit is approved!'),t.data("custom-appended",!0);var i=OO.ui.WindowManager.static.currentWindow;i&&"function"==typeof i.updateSize&&i.updateSize()}}),200)}))})),$((function(){var e=$("#wpBio");if(e.length){var t="form-bio-autosave",i=$('<div id="autosave-status" style="font-size:0.8em;color:gray;height:1.2em;margin-top:5px;"></div>'),n="";e.after(i);var a=localStorage.getItem(t);a&&(e.val(a),n=a,o("Restored previous work")),e.on("input",(function(){var i=e.val();i!==n&&(o("Saving..."),setTimeout((function(){localStorage.setItem(t,i),n=i,o("Saved locally")}),2e3))})),e.closest("form").on("submit",(function(){localStorage.removeItem(t)}))}function o(e){i.text(e).stop().fadeIn().delay(3e3).fadeOut()}})),$((function(){var e=$("#joinUs"),t=$("#homepage-testimonial");if(e.length&&t.length){var i=['<span>"The ProleWiki community is very welcoming and diverse, with a genuine curiosity towards a broad spectrum of topics, plus a democratic and empathetic approach to learning and decision-making."</span><br><a href="https://en.prolewiki.org/wiki/Comrade:ComradeTrash">ComradeTrash</a>','<span>"Working with ProleWiki has given me the space and drive to learn more, both as a communist and as a professional. I never feel throttled or unable to voice my ideas to the project, and then make them into reality."</span><br><a href="https://en.prolewiki.org/wiki/Comrade:CriticalResist">CriticalResist</a>','<span>"ProleWiki is a lively environment for self-directed socialist education. They are very supportive of indigenous peoples globally, which in this era is hard to find, so among socialists ProleWiki are very principled. The editorship strives for quality."</span><br><a href="https://en.prolewiki.org/wiki/Comrade:Charhapiti">Charhapiti</a>','<span>"As a trans woman, I have never felt more accepted by any other community but that of ProleWiki. It is one of the few leftist spaces online which is principled enough to truly uphold its stance as a consistent ally of the queer community."</span><br><a href="https://en.prolewiki.org/wiki/Comrade:https://en.prolewiki.org/wiki/Comrade:Local_Gay_Communist_-_LGC">Local Gay Communist - LGC'];e.height()>=375&&t.html(i[Math.floor(Math.random()*i.length)]).show()}}));