Use [math][/math] tags for inline, and [eqn][/eqn] tags for block equations.
',document.body.appendChild(e),e=$.id("input-tex-preview"),$.on(e,"keyup",QR.onTeXChanged)},QR.closeTeXPreview=function(){var e;(e=$.id("input-tex-preview"))&&($.off(e,"keyup",QR.onTeXChanged),(e=$.id("tex-preview-cnt")).parentNode.removeChild(e))},QR.onTeXChanged=function(){clearTimeout(QR.timeoutTeX),QR.timeoutTeX=setTimeout(QR.processTeX,50)},QR.processTeX=function(){var e,t;!QR.processingTeX&&window.MathJax&&(e=$.id("input-tex-preview"))&&((t=$.id("output-tex-preview")).textContent=e.value,QR.processingTeX=!0,MathJax.Hub.Queue(["Typeset",MathJax.Hub,t],["onTeXReady",QR]))},QR.onTeXReady=function(){QR.processingTeX=!1},QR.validateCT=function(){var e,t;QR.captchaWidgetCnt&&((e=Main.getCookie("_ct"))?QR.ctTimeout||(e=e.split(".")[1],(t=(0|Date.now()/1e3)-e)>=QR.ctTTL?QR.setCTTag():QR.setCTTag(QR.ctTTL-t)):QR.ctTimeout&&QR.setCTTag())},QR.setCTTag=function(e){if(!window.t_captcha){var t=QR.captchaWidgetCnt;QR.clearCTTimeout(),e&&e>0?(QR.ctTimeout=setTimeout(QR.setCTTag,1e3*e),t.style.opacity="0.25",$.on(t,"mouseover",QR.onCTMouseOver),$.on(t,"mouseout",QR.onCTMouseOut)):(t.style.opacity="",$.off(t,"mouseover",QR.onCTMouseOver),$.off(t,"mouseout",QR.onCTMouseOut))}},QR.onCTMouseOver=function(){QR.onCTMouseOut(),QR.ctTipTimeout=setTimeout(Tip.show,Tip.delay,QR.captchaWidgetCnt,"Verification not required for your next post.")},QR.onCTMouseOut=function(){clearTimeout(QR.ctTipTimeout),Tip.hide()},QR.clearCTTimeout=function(){clearTimeout(QR.ctTimeout),QR.ctTimeout=null},QR.addReplyLink=function(){var e,t;e=$.cls("navLinks")[2],(t=document.createElement("div")).className="open-qr-wrap",t.innerHTML='[Post a Reply]',e.insertBefore(t,e.firstChild)},QR.lock=function(){QR.showPostError("This thread is closed.","closed",!0)},QR.unlock=function(){QR.hidePostError("closed")},QR.syncStorage=function(e){var t;e.key&&"4chan"==(t=e.key.split("-"))[0]&&"cd"==t[1]&&e.newValue&&Main.board==t[2]&&QR.startCooldown()},QR.onOpenInPainterClick=function(e){var t,a,i,n;if(QR.canvasLoading)Feedback.error("An image is already being loaded.");else{if(n=+e.getAttribute("data-pid"),i=+e.getAttribute("data-tid"),!n||!i)return!1;if(!(a=$.qs("#f"+n+' a[class="fileThumb"]')))return!1;if(!1===/\.(png|jpg)$/.test(a.href))return!1;QR.canvasLoading=!0,(t=new Image).crossOrigin="Anonymous",t.onload=QR.onPainterCanvasLoaded,t.onerror=QR.onPainterCanvasError,t._pid=n,Feedback.notify("Loading\u2026",0),t.src=a.href.replace("is2.4chan.org","i.4cdn.org"),QR.show(i)}},QR.onPainterCanvasError=function(){QR.canvasLoading=!1,Feedback.error("Couldn't load the image.",5e3)},QR.onPainterCanvasLoaded=function(){Feedback.hideMessage(),QR.canvasLoading=!1,QR.currentTid&&(this.naturalWidth<1||this.naturalHeight<1||(Tegaki.startTimeStamp&&Tegaki.destroy(),Keybinds.enabled=!1,QR.painterSrc=this._pid,Tegaki.open({onDone:QR.onPainterDone,onCancel:QR.onPainterCancel,saveReplay:!1,width:1,height:1}),Tegaki.onOpenImageLoaded.call(this)))},QR.openPainter=function(){var e,t,a,i;e=+(a=$.tag("input",$.id("qr-painter-ctrl")))[0].value,t=+a[1].value,e<1||t<1||(i=$.cls("oe-r-cb",$.id("qr-painter-ctrl"))[0],Keybinds.enabled=!1,window.Tegaki.open({onDone:QR.onPainterDone,onCancel:QR.onPainterCancel,saveReplay:i&&i.checked,width:e,height:t}))},QR.onPainterDone=function(){var e,t;Keybinds.enabled=!0,QR.painterData=Tegaki.flatten().toDataURL("image/png"),Tegaki.saveReplay&&(QR.replayBlob=Tegaki.replayRecorder.toBlob()),QR.painterTime=0,Tegaki.startTimeStamp&&(Tegaki.hasCustomCanvas&&!QR.painterSrc||(QR.painterTime=Math.round((Date.now()-Tegaki.startTimeStamp)/1e3))),(e=$.id("qrFile"))&&(e.style.visibility="hidden"),t=$.id("qr-painter-ctrl"),(e=$.tag("button",t)[0])&&(e.textContent="Edit"),(e=$.tag("button",t)[1])&&(e.disabled=!1);for(e of $.tag("input",t))e.disabled=!0},QR.onPainterCancel=function(){var e,t;Keybinds.enabled=!0,QR.painterData=null,QR.painterSrc=null,QR.replayBlob=null,QR.painterTime=0,(e=$.id("qrFile"))&&(e.style.visibility=""),t=$.id("qr-painter-ctrl"),(e=$.tag("button",t)[0])&&(e.textContent="Draw"),(e=$.tag("button",t)[1])&&(e.disabled=!0);for(e of $.tag("input",t))e.disabled=!1},QR.quotePost=function(e,t){QR.noCooldown||!(Main.threadClosed||!Main.tid&&Main.isThreadClosed(e))?(QR.show(e),QR.addQuote(t)):alert("This thread is closed")},QR.addQuote=function(e){var t,a,i,n;a=(n=$.tag("textarea",document.forms.qrPost)[0]).selectionStart,i=UA.getSelection(),t=e?">>"+e+"\n":"",i&&(t+=">"+i.trim().replace(/[\r\n]+/g,"\n>")+"\n"),n.value?n.value=n.value.slice(0,a)+t+n.value.slice(n.selectionEnd):n.value=t,UA.isOpera&&(a+=t.split("\n").length),n.selectionStart=n.selectionEnd=a+t.length,n.selectionStart==n.value.length&&(n.scrollTop=n.scrollHeight),n.focus()},QR.show=function(e){var t,a,i,n,o,r,s,d,l,c,p,h,u,g,m,f;if(window.checkIncognito&&window.checkIncognito(),QR.currentTid)return Main.tid||QR.currentTid==e||($.id("qrTid").textContent=$.id("qrResto").value=QR.currentTid=e,$.byName("com")[1].value="",QR.startCooldown()),void(Main.hasMobileLayout&&($.id("quickReply").style.top=window.pageYOffset+25+"px"));for(QR.currentTid=e,n=$.id("postForm"),(i=document.createElement("div")).id="quickReply",i.className="extPanel reply",i.setAttribute("data-trackpos","QR-position"),Main.hasMobileLayout?i.style.top=window.pageYOffset+28+"px":Config["QR-position"]?i.style.cssText=Config["QR-position"]:(i.style.right="0px",i.style.top="10%"),i.innerHTML='
'+(window.math_tags?'TeX':"")+'Reply to Thread No.'+e+'
A space separated list of boards on which the filter will be active. Leave blank to apply to all boards.
Auto-watching:
Enabling the "Auto" option will automatically add matched threads to the Thread Watcher when it is manually refreshed. This only works when the "Boards" field is not empty, and searches catalog JSON for the selected boards(s).
Shortcut:
If you have Keyboard shortcuts enabled, pressing F will add the selected text to your filters.
',document.body.appendChild(t),Config.customMenuList&&($.id("customMenuBox").value=Config.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))},CustomMenu.save=function(e){var t;(t=$.id("customMenuBox"))&&(Config.customMenuList=t.value,!0===e&&(CustomMenu.apply(Config.customMenuList),Config.customMenu=!0,Config.save())),CustomMenu.closeEditor()};var Draggable={el:null,key:null,scrollX:null,scrollY:null,dx:null,dy:null,right:null,bottom:null,offsetTop: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=Main.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&&(Config[Draggable.key]=Draggable.el.style.cssText,Config.save()),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.rightitalics signify bump/image limit has been met",!0]},"Filters & Post Hiding":{filter:['Filter and highlight specific threads/posts [Edit]',"Enable pattern-based filters"],threadHiding:['Thread hiding [Clear History]',"Hide entire threads by clicking the minus button",!0],hideStubs:["Hide thread stubs","Don't display stubs of hidden threads"]},Navigation:{threadExpansion:["Thread expansion","Expand threads inline on board indexes",!0],dropDownNav:["Use persistent drop-down navigation bar",""],classicNav:["Use traditional board list","",!1,!0],autoHideNav:["Auto-hide on scroll","",!1,!0],customMenu:['Custom board list [Edit]',"Only show selected boards in top and bottom board lists"],alwaysDepage:["Always use infinite scroll","Enable infinite scroll by default, so reaching the bottom of the board index will load subsequent pages",!0],topPageNav:["Page navigation at top of page","Show the page switcher at the top of the page, hold Shift and drag to move"],stickyNav:["Navigation arrows","Show top and bottom navigation arrows, hold Shift and drag to move"],keyBinds:['Use keyboard shortcuts [Show]',"Enable handy keyboard shortcuts for common actions"]},"Images & Media":{imageExpansion:["Image expansion","Enable inline image expansion, limited to browser width",!0],fitToScreenExpansion:["Fit expanded images to screen","Limit expanded images to both browser width and height"],imageHover:["Image hover","Mouse over images to view full size, limited to browser size"],imageHoverBg:["Set a background color for transparent images","",!1,!0],revealSpoilers:["Don't spoiler images","Show image thumbnail and original filename instead of spoiler placeholders",!0],unmuteWebm:["Un-mute WebM audio","Un-mute sound automatically for WebM playback",!0],noPictures:["Hide thumbnails","Don't display thumbnails while browsing",!0],embedYouTube:["Embed YouTube links","Embed YouTube player into replies"],embedSoundCloud:["Embed SoundCloud links","Embed SoundCloud player into replies"]},Miscellaneous:{linkify:["Linkify URLs","Make user-posted links clickable",!0],darkTheme:["Use a dark theme","Use the Tomorrow theme for nighttime browsing",!0,!1,!0],customCSS:['Custom CSS [Edit]',"Include your own CSS rules",!0],IDColor:["Color user IDs","Assign unique colors to user IDs on boards that use them",!0],compactThreads:["Force long posts to wrap","Long posts will wrap at 75% browser width"],centeredThreads:["Center threads","Align threads to the center of page",!1],localTime:["Convert dates to local time","Convert 4chan server time (US Eastern Time) to your local time",!0],forceHTTPS:["Always use HTTPS","Rewrite 4chan URLs to always use HTTPS",!0]}},SettingsMenu.save=function(){var e,t,a,i,n;for(n={},$.extend(n,Config),t=$.id("settingsMenu").getElementsByClassName("menuOption"),e=0;a=t[e];++e)i=a.getAttribute("data-option"),Config[i]="checkbox"==a.type?a.checked:a.value;Config.save(n),UA.dispatchEvent("4chanSettingsSaved"),SettingsMenu.close(),location.href=location.href.replace(/#.+$/,"")},SettingsMenu.toggle=function(){$.id("settingsMenu")?SettingsMenu.close():SettingsMenu.open()},SettingsMenu.open=function(){var e,t,a,i,n,o,r,s,d;if(Main.firstRun&&((d=$.id("settingsTip"))&&d.parentNode.removeChild(d),(d=$.id("settingsTipBottom"))&&d.parentNode.removeChild(d),Config.save()),(o=document.createElement("div")).id="settingsMenu",o.className="UIPanel",n='
',Main.hasMobileLayout){a={};for(t in SettingsMenu.options){s={},r=SettingsMenu.options[t];for(i in r)r[i][2]&&(s[i]=r[i]);for(e in s){a[t]=s;break}}}else a=SettingsMenu.options;for(t in a){r=a[t],n+='
'+t+'
';for(i in r)r[i][4]&&!Main.hasMobileLayout||(n+="