"+t.sub+"",t.teaser&&(o+=": "+t.teaser)):o=t.teaser,et){if(!qe[e])continue;++Xe}else if(Ze){if(!Ze.test(o)&&!Ze.test(t.file))continue}else{if(qe[e]){++Xe;continue}if(Ye[e]>=0)n=i=!0;else{s=t.capcode?(t.trip||"")+"!#"+t.capcode:t.trip;for(d in Pe)if(0==(l=Pe[d]).type&&(l.pattern.test(o)||l.pattern.test(t.file))||1==l.type&&l.pattern.test(s)||2==l.type&&l.pattern.test(t.author)){if(l.hidden){++c,l.hits+=1;continue e}a=l,i=!!l.top,l.hits+=1;break}}}Ye[e]>=0&&(n=i=!0),r.push({id:e,entry:t,pinned:n,onTop:i,hl:a})}return je=c,r}function be(e){var t,a,i,n,o,l,r,d,c,h,u,p,m,f,g,b,v,y,w,$,C,k,N,T,x,S,M,L,E;for(m="//boards."+$L.d(Re.slug)+"/"+Re.slug+"/thread/",f="i.4cdn.org/"+Re.slug+"/",x=!Fe.large,b=_e.newtab?'target="_blank" ':"",h=Re.custom_spoiler?Fe.imgspoiler+"-"+Re.slug+Re.custom_spoiler+".png":Fe.imgspoiler+".png",p="",w="",$="",t=0;o=e[t];++t){if(i=o.id,n=o.entry,r=o.hl,d=o.onTop,c=o.pinned,n.sub?(y=""+n.sub+"",n.teaser&&(y+=": "+n.teaser)):y=n.teaser,l='',ze&&(v=i+"-"+Re.slug,l+='
':'title="Watch" class="watchIcon">')),l+="
&&(C=k/N,N=k,T*=C),T>k&&(C=k/T,T=k,N*=C)),l+=g+')
',n.sticky||n.closed||n.capcodereps){if(l+='
',n.sticky&&(l+=''),n.closed&&(l+=''),n.capcodereps)for(S=n.capcodereps.split(","),a=0;M=S[a];++a)(L=He[M])&&(l+='');l+="
"}l+='
',n.bumplimit?l+="R: "+n.r+"":l+="R: "+n.r+"",c&&((u=n.r-Ye[i])>0?(l+=" (+"+u+")",Ye[i]=n.r):l+="(+0)"),n.i&&(n.imagelimit?l+=" / I: "+n.i+"":l+=" / I: "+n.i+""),d&&(E=s(i))>=0&&(l+=" / P: "+E+""),l+='',l+="
",y&&(l+='
'+y+"
"),window.partyHats?l='
'+l+'

':l+="",n.sticky?$+=l:d?w+=l:p+=l}return w=$+w,Ze&&""===p&&""===w?p='Nothing Found
':w?p=w+p+'':p+='',p}function ve(e){var t,a,i,n,o,s,l,r,d,c,h,u,p,m;for(h="//boards."+$L.d(Re.slug)+"/"+Re.slug+"/thread/",u=_e.newtab?'target="_blank" ':"",c="",p="",t=0;n=e[t];++t)a=n.id,i=n.entry,s=n.hl,l=n.onTop,r=n.pinned,o=''+(m="')+'\xbb | '+m+i.sub+' | ',i.bumplimit?o+=""+i.r+"":o+=i.r,r&&((d=i.r-Ye[a])>0?(o+=" (+"+d+")",Ye[a]=i.r):o+="(+0)"),o+=' | '+i.date+' | |
',l?p+=o:c+=o;return Ze&&""===c&&""===p?c='Nothing Found
':p?c=p+c+'':c+='',c='"}function ye(){var e,t,a,i;if(0!==Re.count){Se.hasChildNodes()&&((t=document.getElementById("th-tip"))&&document.body.removeChild(t),Se.textContent=""),Xe=0,je=0;for(a in Pe)Pe[a].hits=0;fe(i=ge()),window.text_only?Se.innerHTML=ve(i):Se.innerHTML=be(i);for(e in Ye){localStorage.setItem("4chan-pin-"+Re.slug,JSON.stringify(Ye));break}k(je),C(Xe)}}function we(e){var t=e.target;($.hasClass(t,"thumb")||window.text_only&&$.hasClass(t,"txt-date"))&&(clearTimeout(Ue),Je&&ke(),Ue=setTimeout(Ce,Fe.tipdelay,t))}function $e(){clearTimeout(Ue),Je&&ke()}function Ce(e){var t,a,i,n,o,l,r,d,c,h,u,p,m;t=Date.now()/1e3,n=e.getBoundingClientRect(),o=document.documentElement.offsetWidth,(d=e.getAttribute("data-id"))&&(c=Re.threads[d],r=(r=s(d))?'Page '+r+"":"",a=c.sub&&!window.text_only?''+c.sub+"":"Posted",a+=' by '+(c.author||Re.anon),c.trip&&(a+=' '+c.trip+""),c.capcode&&(a+=" ## "+He[c.capcode]),a+=" ",Re.flags&&c.country&&(a+=' '),a+=''+Ne(t-c.date)+" ago"+r,(!Fe.extended&&c.teaser||window.text_only)&&(a+=''+c.teaser+"
"),c.lr.date&&(a+='Last reply by '+c.lr.author,c.lr.trip&&(a+=' '+c.lr.trip+""),c.lr.capcode&&(a+=" ## "+c.lr.capcode.charAt(0).toUpperCase()+c.lr.capcode.slice(1)),c.lr.date?a+=' '+Ne(t-c.lr.date)+" ago":a+=""),(i=document.createElement("div")).id="post-preview",i.innerHTML=a,document.body.appendChild(i),m=o-n.right<(0|.3*o)?n.left-i.offsetWidth-5:n.left+n.width+5,p=document.documentElement.clientHeight,(h=(u=n.top+i.offsetHeight)>p?n.top-(u-p)-20:n.top)<0&&(h=3),(l=i.style).left=m+window.pageXOffset+"px",l.top=h+window.pageYOffset+"px",Je=!0)}function ke(){document.body.removeChild($.id("post-preview")),Je=!1}function Ne(e,t){var a,i,n;return e<2?"less than a second":t&&e<300?(0|e)+" seconds":e<60?(0|e)+" seconds":e<3600?(a=0|e/60)>1?a+" minutes":"one minute":e<86400?(i=(a=0|e/3600)>1?a+" hours":"one hour",(n=0|e/60-60*a)>1&&(i+=" and "+n+" minutes"),i):(i=(a=0|e/86400)>1?a+" days":"one day",(n=0|e/3600-24*a)>1&&(i+=" and "+n+" hours"),i)}var Te,xe,Se,Me,Le,Ee,We,Ae,Ie,De=this,Fe={orderby:"alt",large:!1,extended:!0,imgdel:"//s.4cdn.org/image/filedeleted-res.gif",imgspoiler:"//s.4cdn.org/image/spoiler",nofile:"//s.4cdn.org/image/nofile.png",smallsize:150,tipdelay:250,filterColors:[["#E0B0FF","#F2F3F4","#7DF9FF","#FFFF00"],["#FBCEB1","#FFBF00","#ADFF2F","#0047AB"],["#00A550","#007FFF","#AF0A0F","#B5BD68"]]},He={admin:"Administrator",mod:"Moderator",developer:"Developer",manager:"Manager",founder:"Founder",verified:"Verified"},Oe={83:h,82:d,88:me},Re={},Be=["orderby","large","extended"],_e={},Pe={},Je=!1,Ue=null,Ye={},qe={},Xe=0,je=0,ze=!1,Ve=!1,Ke=!1,Ge=!1,Qe=!1,Ze=!1,et=!1;window.devicePixelRatio>=2&&(Fe.imgdel.replace(".","@2x."),Fe.nofile.replace(".","@2x.")),UA.init(),te(),De.init=function(){var t,i,o,s;FC.hasMobileLayout=checkMobileLayout(),ae(_e,!0),Se=$.id("threads"),Me=$.id("qf-ctrl"),Le=$.id("teaser-ctrl"),Ee=$.id("size-ctrl"),We=$.id("order-ctrl"),$.on(Me,"click",u),$.on($.id("filters-clear-hidden"),"click",S),$.on($.id("filters-clear-hidden-bottom"),"click",S),$.on($.id("qf-clear"),"click",u),$.on($.id("settingsWindowLink"),"click",Q),$.on($.id("settingsWindowLinkBot"),"click",Q),$.on($.id("settingsWindowLinkMobile"),"click",Q),$.on($.id("filters-ctrl"),"click",O),$.on(Le,"change",he),$.on(Ee,"change",pe),$.on(We,"change",ue),$.on(Se,"mouseover",we),$.on(Se,"mouseout",$e),$.on($.id("togglePostFormLinkMobile"),"click",n),$.on(document,"click",L),se(),g(),a(),UA.hasContextMenu&&f(),window.Config={},UA.hasWebStorage&&((t=localStorage.getItem("4chan-settings"))?(t=JSON.parse(t),window.Config=t,t.disableAll||(CustomMenu.initCtrl(t.dropDownNav,t.classicNav),t.filter&&(ThreadWatcher.hasFilters=!0),t.threadWatcher&&(ze=!0,ThreadWatcher.init()),t.customMenu&&CustomMenu.apply(t.customMenuList),!1===t.dropDownNav||FC.hasMobileLayout||(Ve=!0,Ke=t.classicNav,Ge=t.autoHideNav,e()),Qe=t.altCaptcha)):UA.isMobileDevice&&!FC.hasMobileLayout?(Ve=!0,e()):CustomMenu.initCtrl(!1,!1),window.css_event&&"_special"===xe&&(s=window["fc_"+window.css_event+"_init"])&&s()),(i=document.forms.post.flag)&&(o=$.readCookie("4chan_flag"))&&(i=i.querySelector('option[value="'+o+'"]'))&&i.setAttribute("selected","selected"),ce(Fe.orderby,!0),de(Fe.large,!0),re(Fe.extended,!0),UA.dispatchEvent("4chanMainInit")},De.loadCatalog=function(e){var t;Re=e,$.addClass(document.body,xe.toLowerCase().replace(/ /g,"_")),l(),_(),oe(),UA.hasSessionStorage&&!location.hash&&(t=sessionStorage.getItem("4chan-catalog-search"))?Re.slug!=sessionStorage.getItem("4chan-catalog-search-board")&&(sessionStorage.removeItem("4chan-catalog-search"),sessionStorage.removeItem("4chan-catalog-search-board"),t=null):location.hash&&(t=location.hash.match(/#s=(.+)/))&&(t=decodeURIComponent(t[1].replace(/\+/g," "))),t?(u(),$.id("qf-box").value=t,p()):ye()},De.applyCSS=function(e,t,a){var i,n;e||(e=_e),t!==undefined&&((n=$.readCookie(t))||(n="nws_style"==t?"Yotsuba New":"Yotsuba B New"),Te=t,window.css_event&&localStorage.getItem("4chan_stop_css_event")!==`${window.css_event}-${window.css_event_v}`?(xe="_special",n=window.css_event):xe=n,(i=document.createElement("link")).type="text/css",i.id="base-css",i.rel="stylesheet",i.setAttribute("href","//s.4cdn.org/css/catalog_"+n.toLowerCase().replace(/ /g,"_")+"."+a+".css"),document.head.insertBefore(i,$.id("mobile-css"))),(i=$.id("custom-css"))&&document.head.removeChild(i),e.css&&((i=document.createElement("style")).type="text/css",i.id="custom-css",i.styleSheet?i.styleSheet.cssText=e.css:i.innerHTML=e.css,document.head.appendChild(i))}},Filter={};Filter.init=function(){this.entities=document.createElement("div"),Filter.load()},Filter.match=function(e,t){var a,i,n,o,s;for(s=!1,o=Filter.activeFilters,a=0;n=o[a];++a)if(n.boards[t])if(0==n.type){if(n.pattern===e.trip){s=!0;break}}else if(1==n.type){if(n.pattern===e.name){s=!0;break}}else if(2==n.type&&e.com){if(i===undefined&&(this.entities.innerHTML=e.com.replace(/
/g,"\n").replace(/[<[^>]+>/g,""),i=this.entities.textContent),n.pattern.test(i)){s=!0;break}}else if(4==n.type){if(n.pattern===e.id){s=!0;break}}else if(5==n.type){if(n.pattern.test(e.sub)){s=!0;break}}else if(6==n.type&&n.pattern.test(e.filename)){s=!0;break}return s},FC.getDocTopOffset=function(){return window.Config.dropDownNav&&!window.Config.autoHideNav?$.id(window.Config.classicNav?"boardNavDesktop":"boardNavMobile").offsetHeight:0},Filter.load=function(){var e,t,a,i,n,o,s,l,r,d,c,h,u,p,m,f,g;if(this.activeFilters=[],i=localStorage.getItem("4chan-filters")){i=JSON.parse(i),s=new RegExp("(\\"+["/",".","*","+","?","(",")","[","]","{","}","\\","^","$"].join("|\\")+")","g"),l=/^\/(.*)\/(i?)$/,r="(?=.*\\b",d="\\b)",h=/\\\*/g,u="[^\\s]*";try{for(o=0;a=i[o];++o)if(a.active&&""!==a.pattern){if(a.boards)for(g=a.boards.split(/[^a-z0-9]+/i),p={},e=0;t=g[e];++e)p[t]=!0;else p=!1;if(n=a.pattern,a.type&&1!=a.type&&4!=a.type)if(f=n.match(l))m=new RegExp(f[1],f[2]);else if('"'==n[0]&&'"'==n[n.length-1])m=new RegExp(n.slice(1,-1).replace(s,"\\$1"));else{for(m="",e=0,t=(c=n.split(" ")).length;e
':""),this.listNode=document.createElement("ul"),this.listNode.id="watchList",this.load(),this.build(),e.appendChild(this.listNode),document.body.appendChild(e),e.addEventListener("mouseup",this.onClick,!1),Draggable.set($.id("twHeader")),window.addEventListener("storage",this.syncStorage,!1),!FC.hasMobileLayout&&this.canAutoRefresh()&&this.refresh()},ThreadWatcher.unInit=function(){var e;(e=$.id("threadWatcher"))&&(e.removeEventListener("mouseup",this.onClick,!1),Draggable.unset($.id("twHeader")),window.removeEventListener("storage",this.syncStorage,!1),document.body.removeChild(e))},ThreadWatcher.toggleList=function(e){var t=$.id("threadWatcher");e&&e.preventDefault(),ThreadWatcher.canAutoRefresh()&&ThreadWatcher.refresh(),"none"==t.style.display?(t.style.top=window.pageYOffset+30+"px",t.style.display=""):t.style.display="none"},ThreadWatcher.syncStorage=function(e){var t;e.key&&"4chan"==(t=e.key.split("-"))[0]&&"watch"==t[1]&&e.newValue!=e.oldValue&&(ThreadWatcher.load(),ThreadWatcher.build())},ThreadWatcher.load=function(){var e;(e=localStorage.getItem("4chan-watch"))&&(this.watched=JSON.parse(e)),(e=localStorage.getItem("4chan-watch-bl"))&&(this.blacklisted=JSON.parse(e))},ThreadWatcher.build=function(){var e,t,a,i;e="";for(a in this.watched)e+='× ':(i=[],this.watched[a][3]&&i.push("archivelink"),this.watched[a][4]&&(i.push("hasYouReplies"),e+=' title="This thread has replies to your posts"'),this.watched[a][2]?e+=' class="'+(i[0]?i.join(" ")+" ":"")+'hasNewReplies">('+this.watched[a][2]+") ":e+=(i[0]?'class="'+i.join(" ")+'"':"")+">"),e+="/"+t[1]+"/ - "+this.watched[a][0]+"";ThreadWatcher.listNode.innerHTML=e},ThreadWatcher.onClick=function(e){var t=e.target;t.hasAttribute("data-id")?ThreadWatcher.toggle(t.getAttribute("data-id"),t.getAttribute("data-board")):"twPrune"!=t.id||ThreadWatcher.isRefreshing?"twClose"==t.id&&ThreadWatcher.toggleList():ThreadWatcher.refreshWithAutoWatch()},ThreadWatcher.generateLabel=function(e,t,a){var i;return i=(i=e)?i.slice(0,this.charLimit):(i=t)?i.replace(/(?:
)+/g," ").replace(/<[^>]*?>/g,"").slice(0,this.charLimit):"No."+a},ThreadWatcher.toggle=function(e,t,a,i,n){var o,s,l,r;o=e+"-"+t,r=$.id("leaf-"+e),this.watched[o]?(delete this.watched[o],r&&(r.className="watchIcon",r.title="Watch")):(s=ThreadWatcher.generateLabel(a,i,e),l=n||e,this.watched[o]=[s,l,0],r.className="unwatchIcon",r.title="Unwatch"),this.save(),this.load(),this.build()},ThreadWatcher.addRaw=function(e,t){var a,i;a=e.no+"-"+t,this.watched[a]||(i=ThreadWatcher.generateLabel(e.sub,e.com,e.no),this.watched[a]=[i,0,0])},ThreadWatcher.save=function(){var e;ThreadWatcher.sortByBoard(),localStorage.setItem("4chan-watch",JSON.stringify(ThreadWatcher.watched));for(e in ThreadWatcher.blacklisted){localStorage.setItem("4chan-watch-bl",JSON.stringify(ThreadWatcher.blacklisted));break}},ThreadWatcher.sortByBoard=function(){var e,t,a,i,n;t=ThreadWatcher,i={},n=[];for(a in t.watched)n.push(a);for(n.sort(function(e,t){return(e=e.split("-")[1])<(t=t.split("-")[1])?-1:e>t?1:0}),e=0;a=n[e];++e)i[a]=t.watched[a];t.watched=i},ThreadWatcher.canAutoRefresh=function(){var e;return!!(e=localStorage.getItem("4chan-tw-timestamp"))&&Date.now()-+e>=6e4},ThreadWatcher.setRefreshTimestamp=function(){localStorage.setItem("4chan-tw-timestamp",Date.now())},ThreadWatcher.refreshWithAutoWatch=function(){var e,t,a,i,n;if(this.hasFilters){for(Filter.load(),n={},a=0,e=0;t=Filter.activeFilters[e];++e)if(t.auto&&t.boards)for(i in t.boards)n[i]||(n[i]=!0,++a);a?($.id("twPrune").className="icon rotateIcon",this.isRefreshing=!0,this.fetchCatalogs(n,a)):this.refresh()}else this.refresh()},ThreadWatcher.fetchCatalogs=function(e,t){var a,i,n,o;n={},o={count:t},a=0;for(i in e)setTimeout(ThreadWatcher.fetchCatalog,a,i,n,o),a+=200},ThreadWatcher.parseCatalogJSON=function(e){var t;try{t=JSON.parse(e)}catch(a){console.log(a),t=[]}return t},ThreadWatcher.fetchCatalog=function(e,t,a){var i;(i=new XMLHttpRequest).open("GET","//a.4cdn.org/"+e+"/catalog.json"),i.onload=function(){a.count--,t[e]=ThreadWatcher.parseCatalogJSON(this.responseText),a.count||ThreadWatcher.onCatalogsLoaded(t)},i.onerror=function(){a.count--,a.count||ThreadWatcher.onCatalogsLoaded(t)},i.send(null)},ThreadWatcher.onCatalogsLoaded=function(e){var t,a,i,n,o,s,l,r,d;$.id("twPrune").className="icon rotateIcon",this.isRefreshing=!1,d={};for(i in e)for(o=e[i],t=0;n=o[t];++t)for(s=n.threads,a=0;l=s[a];++a)r=l.no+"-"+i,this.blacklisted[r]?d[r]=1:Filter.match(l,i)&&this.addRaw(l,i);this.blacklisted=d,this.build(!0),this.refresh()},ThreadWatcher.refresh=function(){var e,t,a,i,n;if(i=$.id("watchList").children.length){e=t=0,(n=$.id("twPrune")).className="icon rotateIcon",ThreadWatcher.isRefreshing=!0,ThreadWatcher.setRefreshTimestamp();for(a in ThreadWatcher.watched)setTimeout(ThreadWatcher.fetch,t,a,++e==i?n:null),t+=200}},ThreadWatcher.onRefreshEnd=function(e){e.className="icon refreshIcon",this.isRefreshing=!1,this.save(),this.load(),this.build()},ThreadWatcher.parseThreadJSON=function(e){var t;try{t=JSON.parse(e).posts}catch(a){console.log(a),t=[]}return t},ThreadWatcher.getTrackedReplies=function(e,t){var a=null;return(a=localStorage.getItem("4chan-track-"+e+"-"+t))&&(a=JSON.parse(a)),a},ThreadWatcher.fetch=function(e,t){var a,i,n;if(n=$.id("watch-"+e),-1==ThreadWatcher.watched[e][1])return delete ThreadWatcher.watched[e],n.parentNode.removeChild(n),void(t&&ThreadWatcher.onRefreshEnd(t));a=e.split("-"),(i=new XMLHttpRequest).onload=function(){var i,n,o,s,l,r,d,c,h;if(200==this.status){for(o=ThreadWatcher.parseThreadJSON(this.responseText),s=ThreadWatcher.watched[e][1],n=0,ThreadWatcher.watched[e][4]?l=null:(l=ThreadWatcher.getTrackedReplies(a[1],a[0]))&&(r=document.createElement("div")),i=o.length-1;i>=1&&!(o[i].no<=s);i--)if(++n,l){if(r.innerHTML=o[i].com,!(d=$.cls("quotelink",r))[0])continue;for(h=0;c=d[h];++h)if(l[c.textContent]){ThreadWatcher.watched[e][4]=1,l=null;break}}n>ThreadWatcher.watched[e][2]&&(ThreadWatcher.watched[e][2]=n),o[0].archived&&(ThreadWatcher.watched[e][3]=1)}else 404==this.status&&(ThreadWatcher.watched[e][1]=-1);t&&ThreadWatcher.onRefreshEnd(t)},t&&(i.onerror=i.onload),i.open("GET","//a.4cdn.org/"+a[1]+"/thread/"+a[0]+".json"),i.send(null)},ThreadWatcher.linkToThread=function(e,t,a){return"//"+location.host+"/"+t+"/thread/"+e+(a>0?"#p"+a:"")};var Draggable={el:null,key:null,scrollX:null,scrollY:null,dx:null,dy:null,right:null,bottom:null,set:function(e){e.addEventListener("mousedown",Draggable.startDrag,!1)},unset:function(e){e.removeEventListener("mousedown",Draggable.startDrag,!1)},startDrag:function(e){var t,a,i;this.parentNode.hasAttribute("data-shiftkey")&&!e.shiftKey||(e.preventDefault(),t=Draggable,a=document.documentElement,t.el=this.parentNode,t.key=t.el.getAttribute("data-trackpos"),i=t.el.getBoundingClientRect(),t.dx=e.clientX-i.left,t.dy=e.clientY-i.top,t.right=a.clientWidth-i.width,t.bottom=a.clientHeight-i.height,"fixed"!=getComputedStyle(t.el,null).position?(t.scrollX=window.pageXOffset,t.scrollY=window.pageYOffset):t.scrollX=t.scrollY=0,t.offsetTop=FC.getDocTopOffset(),document.addEventListener("mouseup",t.endDrag,!1),document.addEventListener("mousemove",t.onDrag,!1))},endDrag:function(){document.removeEventListener("mouseup",Draggable.endDrag,!1),document.removeEventListener("mousemove",Draggable.onDrag,!1),Draggable.key&&window.Config&&(window.Config[Draggable.key]=Draggable.el.style.cssText,localStorage.setItem("4chan-settings",JSON.stringify(window.Config))),delete Draggable.el},onDrag:function(e){var t,a,i;t=e.clientX-Draggable.dx+Draggable.scrollX,a=e.clientY-Draggable.dy+Draggable.scrollY,i=Draggable.el.style,t<1?(i.left="0",i.right=""):Draggable.rightEdit]',!CustomMenu.dropDownNav||CustomMenu.classicNav||FC.hasMobileLayout?((i=$.cls("boardList"))[0]&&i[0].appendChild(a),i[1]&&i[1].appendChild(a.cloneNode(!0))):(i=$.id("boardSelectMobile").parentNode).insertBefore(a,i.lastChild)},CustomMenu.reset=function(){var e,t,a,i,n;for(a=$.cls("boardList"),i=$.cls("customBoardList"),n=$.cls("show-all-boards"),e=0;t=n[e];++e)t.removeEventListener("click",CustomMenu.reset,!1);for(e=i.length-1;t=i[e];e--)a[e].style.display=null,t.parentNode.removeChild(t)},CustomMenu.apply=function(e){var t,a,i,n,o,s,l;if(e){for(s=e.split(/[^0-9a-z]/i),(l=document.createElement("span")).className="customBoardList",t=0;n=s[t];++t)t?l.appendChild(document.createTextNode(" / ")):l.appendChild(document.createTextNode("[")),(a=document.createElement("a")).textContent=n,a.href="//boards."+$L.d(n)+"/"+n+("f"!==n?"/catalog":""),l.appendChild(a);if(l.appendChild(document.createTextNode("]")),!CustomMenu.dropDownNav||CustomMenu.classicNav||FC.hasMobileLayout){for(l.appendChild(document.createTextNode(" [")),(a=document.createElement("a")).textContent="\u2026",a.title="Show all",a.className="show-all-boards pointer",l.appendChild(a),l.appendChild(document.createTextNode("] ")),i=l.cloneNode(!0),o=$.cls("boardList"),t=0;a=o[t];++t)a.style.display="none",a.parentNode.insertBefore(t?i:l,a);for(o=$.cls("show-all-boards"),t=0;a=o[t];++t)a.addEventListener("click",CustomMenu.reset,!1)}else(a=$.cls("customBoardList")[0])&&a.parentNode.removeChild(a),(o=$.id("boardSelectMobile"))&&o.parentNode.insertBefore(l,o.nextSibling)}else!CustomMenu.dropDownNav||CustomMenu.classicNav||FC.hasMobileLayout||(a=$.cls("customBoardList")[0])&&a.parentNode.removeChild(a)},CustomMenu.onClick=function(e){var t;(t=e.target)!=document&&(t.hasAttribute("data-close")?CustomMenu.closeEditor():t.hasAttribute("data-save")&&CustomMenu.save($.id("customMenu").hasAttribute("data-standalone")))},CustomMenu.showEditor=function(e){var t,a;(t=document.createElement("div")).id="customMenu",t.className="panel",t.setAttribute("data-close","1"),!0===e&&t.setAttribute("data-standalone","1"),t.innerHTML='',document.body.appendChild(t),t.style.top=window.pageYOffset+(0|document.documentElement.clientHeight/2-t.offsetHeight/2)+"px",$.removeClass($.id("backdrop"),"hidden"),(a=CustomMenu.getConfig()).customMenuList&&($.id("customMenuBox").value=a.customMenuList),t.addEventListener("click",CustomMenu.onClick,!1)},CustomMenu.closeEditor=function(){var e;(e=$.id("customMenu"))&&(e.removeEventListener("click",CustomMenu.onClick,!1),document.body.removeChild(e),$.addClass($.id("backdrop"),"hidden"))},CustomMenu.save=function(e){var t,a;(t=$.id("customMenuBox"))&&!0===e&&(CustomMenu.apply(t.value),(a=CustomMenu.getConfig()).customMenu=!0,a.customMenuList=t.value,localStorage.setItem("4chan-settings",JSON.stringify(a))),CustomMenu.closeEditor()},CustomMenu.getConfig=function(){var e;return(e=localStorage.getItem("4chan-settings"))?JSON.parse(e):{}};var StickyNav={thres:5,pos:0,timeout:null,el:null,init:function(e){this.el=e?$.id("boardNavDesktop"):$.id("boardNavMobile"),$.addClass(this.el,"autohide-nav"),window.addEventListener("scroll",this.onScroll,!1)},destroy:function(e){this.el=e?$.id("boardNavDesktop"):$.id("boardNavMobile"),$.removeClass(this.el,"autohide-nav"),window.removeEventListener("scroll",this.onScroll,!1)},onScroll:function(){clearTimeout(StickyNav.timeout),StickyNav.timeout=setTimeout(StickyNav.checkScroll,50)},checkScroll:function(){var e;e=window.pageYOffset,Math.abs(StickyNav.pos-e)<=StickyNav.thres||(e