From aae8a7dc1a7c7f47420a96f6e6fe105da2f57717 Mon Sep 17 00:00:00 2001 From: rideride Date: Wed, 17 Apr 2024 04:29:33 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20co3carbo?= =?UTF-8?q?nate/live-counting-extension@ea7e7a3b84c54a5d380a8b14675c28e42f?= =?UTF-8?q?297cac=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 61dd720..5162109 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -(()=>{var o={564:(o,t,_)=>{var a,s,d=_(761),m=_(317).C,l=$("#header .user a[href]").html(),g=function(){for(var e=window.location.pathname.split("/"),n=e.length-1;n>=0;n--){var o=e[n].trim();if(o.length>0)return o.replace(/^.*\/([^/]*)/,"$1")}}();const c=_(855),h=["TOP_20","greenpeppercat"],u=new Array(h.length).fill(!0),p=_(103),f=Object.keys(p);[].push(localStorage.getItem("ignoredppl"));var k,b,w,y=0,v=-1,E="",x=0,S="",T=!0,L=0,C=0;setTimeout((function(){C=1}),1e3),g==c.SLOW&&($("#liveupdate-description").append("

"),document.title="[live] Slow counting (one count per hour)",$(".save-button button.btn").click((function(){var e=new Date;e.setHours(e.getHours()+1),$("#countdownslow").css("background","#e2ffdb");var n=setInterval((function(){var o=(new Date).getTime(),t=e-o,i=Math.floor(t%36e5/6e4),_=Math.floor(t%6e4/1e3);document.getElementById("countdownslow").innerHTML=i+"m "+_+"s",document.title="["+i+"m] Slow counting (one count per hour)",t<0&&(clearInterval(n),document.getElementById("countdownslow").innerHTML="You can post now!",$("#countdownslow").css("background","#ffaeae"),document.title="[!!] Slow counting (one count per hour)")}),1e3)})));var B="",M="",D="",O="",A=null,N=null,R="",j="",I="",P=($("#header .user a[href]").html(),0),z={};function F(){let e;switch(g){case c.BACKWARDS:e=["900","800","700","600","500","400","300","200","100","000"];break;case c.BASE2:e=["0010000000","0100000000","0110000000","1000000000","1010000000","1100000000","1110000000","0000000000"];break;case c.BASE3:e=["010000","020000","100000","110000","120000","200000","210000","220000","000000"];break;case c.BASE4:e=["02000","10000","12000","20000","22000","30000","32000","00000"];break;default:e=["100","200","300","400","500","600","700","800","900","000"]}return e}function Y(e){let n=null,o=null;if(""===e)return n;var t=function(e){"v"==(e=e.trim())[0]&&(e=e.slice(1));for(var n=[],o="",t=!1,i=0;;){if((i>=e.length||/[a-zA-Z]/.test(e[i])||"\n"===e[i]||/[0-9]/.test(e[i])!=t)&&(o.length>0&&(n.push({is_digit_group:t,token:o}),o=""),t=!t),i>=e.length)return{tokens:n,comment:null};if(/[a-zA-Z]/.test(e[i])||"\n"===e[i]||!t&&o.length>2)return{tokens:n,comment:e.slice(i)};o+=e[i],i++}}(e),i=t.tokens,_=t.comment;i.length>0&&!i[0].is_digit_group&&(i=i.slice(1)),i.length>0&&!i[i.length-1].is_digit_group&&(i=i.slice(0,i.length-1));for(let e=1;e0&&[null,".",",",", "," "].includes(o)){var a="",r="";for(let e=0;e-1){var q=window.location.href;throw q=q.replace("updates/","?after=LiveUpdate_"),$(".liveupdate-listing").prepend("context"),$("#contexter").attr("href",q).css("text-align","center").css("margin-bottom","15px").css("color","#369").css("background","#eee").css("display","block"),new Error}var U,H,G,K,W,V,X,J,Q,Z,ee,ne,oe,te,ie,_e,ae,re,se,de,me,le,ge,ce,he=function(){function e(){for(var e=[],n=0;n1){if("number"==typeof(_=e({path:"/"},t.defaults,_)).expires){var r=new Date;r.setMilliseconds(r.getMilliseconds()+864e5*_.expires),_.expires=r}try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}return i=o.write?o.write(i,n):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,encodeURI),document.cookie=[n,"=",i,_.expires?"; expires="+_.expires.toUTCString():"",_.path?"; path="+_.path:"",_.domain?"; domain="+_.domain:"",_.secure?"; secure":""].join("")}n||(a={});for(var s=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,m=0;m\n\n\t/* General styles */\n\t#lc-body, #lc-body .liveupdate-listing {\n\t\tmin-width: 0px;\n\t}\n\n\t/* Prevent the button row from always showing up when screen is small */\n\t#lc-body li.liveupdate ul.buttonrow {\n\t\tdisplay: none !important;\n\t}\n\n\t#lc-body li.liveupdate:hover ul.buttonrow {\n\t\tdisplay: block !important;\n\t}\n\n\t/* Disable the transition entrance fade effect when an update is sent */\n\t#lc-body li.liveupdate * {\n\t\ttransition: none;\n\t}\n\n\t");$("head").append(n),e.add=function(e){n.append(e)},e.replace=function(e,o){var t=n.html().replace(e,o);n.html(t)},"14ny3ur3axhd4"==g&&e.add(".river {display:none!important;}")}(G||(G={})),function(e){var n=$('\n\t\t

\n\t\t\tLive Counting Extension v1.7.0 \n\t\t

\n\t'),o=$("

Basic

"),t=$("

Advanced

"),i=$("

Advanced 2

"),_=$('[-]'),a=$('[-]'),r=$('[-]'),s=$('[-]'),m=$('[-]'),l=$("
"),g=$("
"),c=$("
"),h=$("
"),u=$("
");n.append(_),l.append(g),o.append(r),t.append(s),i.append(m),g.append(o,c,t,h,i,u),d.OPTIONS_ELEMENT.append(n,l),d.OPTIONS_ELEMENT.detach().prependTo(d.SIDEBAR_ELEMENT),d.SIDEBAR_ELEMENT.insertAfter("#new-update-form"),d.SIDEBAR_ELEMENT.addClass("large-sidebar");var p=l.innerWidth(),f=l.offset().left;function k(e,n,o){e.on("click",(function(){"none"==n.css("display")?(e.html("[-]"),n.slideDown(500),U.save.collapsed[o]=!1):(e.html("[+]"),n.slideUp(500),U.save.collapsed[o]=!0),U.update()})),U.save.collapsed[o]&&e.trigger("click")}k(_,l,0),k(a,g,1),k(r,c,2),k(s,h,3),k(m,u,4),G.add("\n\n\t/* Subheadings */\n\t#live-counting-extension h2 {\n\t\tcolor: #4F4F4F;\n\t\tfont-size: 14px;\n\t\tfont-weight: bold;\n\t\tmargin: 8px 0px;\n\t}\n\n\t/* Toggle triggers */\n\t/* Don't specify #live-counting-extension for this, because the first trigger is actually outside the #live-counting-extension element */\n\t\n\t.toggle-trigger {\n\t\tcursor: pointer;\n\t\tcolor: #656565;\n\t\tfont-weight: normal;\n\t}\n\n\n\t/* Labels */\n\t#live-counting-extension label {\n\t\tdisplay: block;\n\t\tmargin-bottom: 10px;\n\t\tline-height: 160%;\n\t}\n\t\n\t"),e.addCheckbox=function(e){e.hasOwnProperty("section")||(e.section="Basic"),e.hasOwnProperty("onchange")||(e.onchange=null),e.hasOwnProperty("default")||(e.default=!1),e.hasOwnProperty("help")||(e.help="");var n=e.label,o=e.section,t=e.onchange,i=e.default,_=e.help,a=i;U.saveDefaultOptions&&!U.save.options.hasOwnProperty(n)?(U.save.options[n]=a,U.update()):a=U.save.options[n];var r=$('"),s=c;return"Basic"==o?s=c:"Advanced"==o?s=h:"Advanced 2"==o&&(s=u),s.append($("").attr("title",_).prepend(r)),r.on("change",(function(){U.save.options[n]=r.prop("checked"),U.update(),null!=t&&t.call(r)})),i!=a&&r.trigger("change"),r},e.addSelect=function(e){e.hasOwnProperty("section")||(e.section="Basic"),e.hasOwnProperty("onchange")||(e.onchange=null),e.hasOwnProperty("default")||(e.default=0),e.hasOwnProperty("help")||(e.help="");var n,o=e.label,t=e.options,i=e.section,_=e.onchange,a=e.default,r=e.help,s=t[a],d=s;U.saveDefaultOptions&&!U.save.options.hasOwnProperty(o)?(U.save.options[o]=d,U.update()):d=U.save.options[o];var m=$("");"Basic"==i?n=c:"Advanced"==i?n=h:"Advanced 2"==i&&(n=u),n.append($("").attr("title",r).append(m)),m.css("max-width",p-(m.offset().left-f)+"px");for(var l="",g=0;g"+t[g]+"";return m.html(l),m.on("change",(function(){U.save.options[o]=m.val(),U.update(),null!=_&&_.call(m)})),s!=d&&m.trigger("change"),m};var b=$("
\n\t\t

options

\n\t\t
\n\t
"),w=b.children(".md");b.css("display","none").css("margin-top","20px"),d.SIDEBAR_ELEMENT.children(".sidebar-expand").after(b),$(window).on("load resize",(function(){window.innerWidth<=700?(d.SIDEBAR_ELEMENT.removeClass("large-sidebar"),"none"==b.css("display")&&(b.css("display",""),l.detach().appendTo(w))):(d.SIDEBAR_ELEMENT.addClass("large-sidebar"),"none"!=b.css("display")&&(b.css("display","none"),l.detach().insertAfter(n)))})),G.add(".large-sidebar {margin-top: -25%!important;} #liveupdate-options { font-size: 10px!important; margin-top: 0px;} aside.sidebar section { border-top: none; } ")}(K||(K={})),W||(W={}),V=!0,K.addCheckbox({label:"ENABLE DAILY HOC COLORED NAMES",default:!0,section:"Advanced 2",help:"Enables the daily HoC colored usernames.",onchange:function(){V=this.prop("checked"),T=V}}),function(e){var n=!0;K.addCheckbox({label:"ENABLE REPLY TIMES",default:!0,section:"Advanced 2",help:"Enables LCE reply times.",onchange:function(){n=this.prop("checked")}});var o=_(902);m.addListener("new",(e=>{if(!n)return;var t=e.node.find(".body").prev().attr("href"),i=t.substring(t.indexOf("updates/")+8);i=i.substring(15,18)+i.substring(9,13)+i.substring(0,8),i=parseInt(i,16);var _=e.node.find(".body").parent().nextAll(".liveupdate:first").children().first().attr("href"),a=_.substring(_.indexOf("updates/")+8);a=a.substring(15,18)+a.substring(9,13)+a.substring(0,8);var r=i-(a=parseInt(a,16));if(r/=1e4,r=Math.round(r),"Off"!=d.BODY_ELEMENT.attr("data-LastCount")){function s(e,n){let o=e.toString(),t=parseInt(o,n);return t++,o=t.toString(n),BigInt(o)}1==isNaN(Number(D))&&(M=B),R=e.node.find(".body > .md").text(),j=(j=e.node.find(".body > .author").text()).trim().replace("/u/",""),g==c.DOUBLE_COUNTING&&(I="");let y=Y(R)[0];if(B=null===y?null:BigInt(y),(D=function(e){if(""===e)return B;let n;switch(g){case c.BASE2:n=s(e,2);break;case c.BASE3:n=s(e,3);break;case c.BASE4:n=s(e,4);break;case c.BACKWARDS:n=e-1n;break;default:n=e+1n}return n}(M))==B&&I!=j&&null!=D||1==isNaN(Number(D))){$("#lastcountcount").text(B.toLocaleString()),$("#lastcountuser").text(j),O=y.substr(y.length-function(){let e;switch(g){case c.BASE2:e=10;break;case c.BASE3:e=6;break;case c.BASE4:e=5;break;default:e=3}return e}());let v=F(),E=v.length;if(null===A&&(A=Array(E).fill(""),N=Array(E).fill("")),v.includes(O)){let x=v.indexOf(O);if(x==E-1&&""!=A[x]){let T=(i-A[x])/1e3,C=Math.round(T/10);$("#lcbot_speed").text(C)}let S=(x+E-1)%E;if(A[x]=i,""!=A[S]){let q=(A[x]-A[S])/1e3,U=Math.round(q/10);N[x]=U,$("#split"+x).text(U),z[B]=U,$("#split69").text(JSON.stringify(z,null,"\t"))}}P=0,I=j,M=B,g==c.MAIN&&"true"==d.BODY_ELEMENT.attr("data-KpartAlert")&&("granted"===Notification.permission?"000"!=B.toString().substr(5)||document.hasFocus()||new Notification("New K Alert!",{body:"New K: "+B}):"denied"!==Notification.permission&&Notification.requestPermission().then((e=>{console.log(e)})))}else 30==++P&&(document.getElementById("lastcountdesc").innerHTML="Click to reset?",document.getElementById("lastcountdesc").style.background="#ef7070")}var m=t.substring(t.indexOf("updates/")+8),l="https://old.reddit.com/live/"+g+"/updates/"+m,h="#7dd4fa",u="#000000";L=0,"Default"==d.BODY_ELEMENT.attr("data-darkMode")?$("#lc-body").hasClass("res-nightmode")&&(L=1,u="#ddd"):"On"==d.BODY_ELEMENT.attr("data-darkMode")?(L=1,u="#ddd"):"Off"==d.BODY_ELEMENT.attr("data-darkMode")&&(L=0);let p=r;if("true"==d.BODY_ELEMENT.attr("data-halfColors")&&(p=2*r),r<=-500?h="linear-gradient(to right,red,orange,yellow,green,blue,indigo,violet)":r<1?h=L?"#727200":"#f2ee0e":p<100?h=L?"#4d0000":"#ef7070":p<200?h=L?"#980000":"#ffaeae":p<300?h=L?"#654700":"#ffebba":p<400?h=L?"#216e00":"#cfffba":p<500?h=L?"#003b0b":"#a2e8af":p<600?h=L?"#006b53":"#adffed":p<700?h=L?"#004183":"#add6ff":p<800?h=L?"#14006c":"#bcadff":p<900?h=L?"#460060":"#e9adff":p<1e3?h=L?"#6e0064":"#ffadf8":p>=1e3&&(h=L?"#2a2a2a":"#ededed"),r in o&&"false"==d.BODY_ELEMENT.attr("data-disableSpecialTimes")){var f=e.authorNode.text().substring(3);if("123"==r&&(1==Math.round(Math.random())&&"davidjl123"!=f||"dominodan123"==f)&&(r="123-2"),"404"==r&&(1==Math.round(Math.random())&&"Tranquilsunrise"!=f||"KingCaspianX"==f)&&(r="404-2"),h=o[r].bgcolor,u=o[r].fontcolor,f==o[r].user){var b=e.node.find(".body > .author").text();e.node.find(".body").append(""),document.getElementById("fakeauthor").innerHTML=b,e.node.find(".body > .author").css("fontSize","0px"),document.getElementById("fakeauthor").style.cssText="font-size: 13px; color: transparent; background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet); -webkit-background-clip: text!important;"}r=o[r].words}if(e.node.find(".body").prepend("
"+r+"
"),g==c.BARS||g==c.ONE_PER_MINUTE){let H=Math.round(i/1e4);var w=new Date(H).toISOString().substring(11,23);$("#"+m).text(w)}"Match Reply Time"==d.BODY_ELEMENT.attr("data-BackgroundColor")&&e.node.find(".body").parent().css("background",h),window.innerWidth>=700?$(".river").css("position","absolute").css("margin-left","-135px").css("font-size","9px").css("margin-top","4px").css("width","120px").css("text-align","right").css("max-width","120px"):$(".river").css("position","absolute").css("margin-left","-10px").css("font-size","9px").css("margin-top","-16px").css("width","120px").css("text-align","right").css("max-width","120px"),"none"==$('#lc-body[data-DisplayMode="Minimal"] #liveupdate-statusbar').css("display")&&$(".river").css("margin-left","-141px"),"Off"!=d.BODY_ELEMENT.attr("data-automaticallyClearTime")&&(k="After 60s"==d.BODY_ELEMENT.attr("data-automaticallyClearTime")?6e4:d.BODY_ELEMENT.attr("data-customClearTime"),$(".river").delay(k).hide(500)),$(".river").mouseover((function(){this.style.background="transparent",this.style.color="transparent",this.style.cursor="pointer"})),$(".river").mouseout((function(){$(this).css("background",$(this).attr("colortest")),$(this).css("color",$(this).attr("elcolor"))}))})),$(window).on("load resize",(function(){window.innerWidth>=700?($("div.river").css("position","absolute").css("margin-left","-135px").css("font-size","9px").css("margin-top","4px").css("width","120px").css("text-align","right").css("max-width","120px"),$("#idlecontainer").css("position","absolute")):($("div.river").css("position","absolute").css("margin-left","-10px").css("font-size","9px").css("margin-top","-16px").css("width","120px").css("text-align","right").css("max-width","120px"),$("#idlecontainer").css("position","initial"))}))}(X||(X={})),J||(J={}),d.BODY_ELEMENT.attr("data-halfColors",!1),K.addCheckbox({label:"HALF REPLY TIME COLORS",default:!1,section:"Advanced 2",help:"Halves the reply time colors, so they increase by increments of 50 rather than 100.",onchange:function(){d.BODY_ELEMENT.attr("data-halfColors",this.prop("checked"))}}),Q||(Q={}),d.BODY_ELEMENT.attr("data-darkMode","Default"),K.addSelect({label:"NIGHT MODE REPLY TIMES",options:["Default","On","Off"],section:"Advanced 2",default:0,help:"Changes the background of reply times to better match RES night mode. Default = looks at RES, On = forced on, Off = forced off, even if RES night mode enabled",onchange:function(){d.BODY_ELEMENT.attr("data-darkMode",this.val())}}),Z||(Z={}),d.BODY_ELEMENT.attr("data-automaticallyClearTime","Off"),d.BODY_ELEMENT.attr("data-customClearTime",U.save.customClearTime),K.addSelect({label:"CLEAR REPLY TIMES",options:["Off","After 60s","Custom"],section:"Advanced 2",customClearTime:2e3,default:0,help:"Automatically clears LCE reply times after a certain amount of time.",onchange:function(){$(this).click((function(){$(this).data("clicked",!0)})),d.BODY_ELEMENT.attr("data-automaticallyClearTime",this.val()),"Custom"==this.val()&&1==C&&(k=parseInt(window.prompt("Enter your custom time in milliseconds. 60 seconds = 60000 for example"),10),/^[0-9.,]+$/.test(k)&&(U.save.customClearTime=k,d.BODY_ELEMENT.attr("data-customClearTime",k),U.update()))}}),ee||(ee={}),d.BODY_ELEMENT.attr("data-customStricken","Off"),d.BODY_ELEMENT.attr("data-customStrickenColor",U.save.customStrickenColor),K.addSelect({label:"CUSTOM STRICKEN",options:["Off","No Inverse","Inverse"],section:"Advanced 2",default:0,help:"Applies custom styles to stricken counts.",onchange:function(){if($(this).click((function(){$(this).data("clicked",!0)})),d.BODY_ELEMENT.attr("data-customStricken",this.val()),"Off"!=this.val()&&1==C){var e=d.BODY_ELEMENT.attr("data-customStrickenColor");b=window.prompt("Enter your custom background color.","#ddd"),U.save.customStrickenColor=b,d.BODY_ELEMENT.attr("data-customStrickenColor",b),U.update(),G.replace("\n\n\t/* Custom Stricken */\n\t#lc-body[data-customStricken='No Inverse'] .liveupdate.stricken{\n\tbackground:"+e+"!important;\n\t}\n#lc-body[data-customStricken='Inverse'] .liveupdate.stricken{\n\tbackground:"+e+"!important;-webkit-filter: invert(100%);filter: invert(100%);\n\t}","\n\n\t/* Custom Stricken */\n\t#lc-body[data-customStricken='No Inverse'] .liveupdate.stricken{\n\tbackground:"+d.BODY_ELEMENT.attr("data-customStrickenColor")+"!important;\n\t}\n#lc-body[data-customStricken='Inverse'] .liveupdate.stricken{\n\tbackground:"+d.BODY_ELEMENT.attr("data-customStrickenColor")+"!important;-webkit-filter: invert(100%);filter: invert(100%);\n\t}")}}}),G.add("\n\n\t/* Custom Stricken */\n\t#lc-body[data-customStricken='No Inverse'] .liveupdate.stricken{\n\tbackground:"+d.BODY_ELEMENT.attr("data-customStrickenColor")+"!important;\n\t}\n#lc-body[data-customStricken='Inverse'] .liveupdate.stricken{\n\tbackground:"+d.BODY_ELEMENT.attr("data-customStrickenColor")+"!important;-webkit-filter: invert(100%);filter: invert(100%);\n\t}"),ne||(ne={}),d.BODY_ELEMENT.attr("data-disableSpecialTimes",!1),K.addCheckbox({label:"DISABLE SPECIAL TIMES",default:!1,section:"Advanced 2",help:"Disables special reply times, and only shows the exact millisecond time.",onchange:function(){d.BODY_ELEMENT.attr("data-disableSpecialTimes",this.prop("checked"))}}),oe||(oe={}),d.BODY_ELEMENT.attr("data-BackgroundColor","Off"),d.BODY_ELEMENT.attr("data-customBackgroundColor",U.save.customBackgroundColor),K.addSelect({label:"BACKGROUND COLOR",options:["Off","Match Reply Time","Custom"],section:"Advanced 2",default:0,help:"Changes the background color of new posts.",onchange:function(){if($(this).click((function(){$(this).data("clicked",!0)})),d.BODY_ELEMENT.attr("data-BackgroundColor",this.val()),"Custom"==this.val()&&1==C){var e=d.BODY_ELEMENT.attr("data-customBackgroundColor");w=window.prompt("Enter your custom background color.","#ddd"),U.save.customBackgroundColor=w,d.BODY_ELEMENT.attr("data-customBackgroundColor",w),G.replace("\n\n\t/* Custom Background */\n\t#lc-body[data-BackgroundColor='Custom'] .liveupdate{\n\tbackground:"+e+"!important;\n\t}\n}","\n\n\t/* Custom Background */\n\t#lc-body[data-BackgroundColor='Custom'] .liveupdate{\n\tbackground:"+d.BODY_ELEMENT.attr("data-customBackgroundColor")+"!important;\n\t}\n}"),U.update()}}}),G.add("\n\n\t/* Custom Background */\n\t#lc-body[data-BackgroundColor='Custom'] .liveupdate{\n\tbackground:"+d.BODY_ELEMENT.attr("data-customBackgroundColor")+"!important;\n\t}\n}"),function(e){d.BODY_ELEMENT.attr("data-LastCount","Off");var n=0;let o=F(),t="

Last count:

/u/

";for(let e=0;e"+o[e]+":

";t+="

Last K:

Dump [+]:

",$('
'+t+"
").insertBefore("#liveupdate-header"),$("#idlecontainer").css({display:"none",position:"absolute",left:"1%",width:"115px",background:"transparent"}),$("#split69").css({display:"none"}),$("#lastcountdesc").hover((function(){document.getElementById("lastcountdesc").innerHTML="Click to reset",document.getElementById("lastcountdesc").style.cursor="pointer"}),(function(){document.getElementById("lastcountdesc").innerHTML="Last count:"})),$("#lastcountdesc").click((function(){B="",M="",D="",R="",j="",I="",document.getElementById("lastcountdesc").innerHTML="Last count:",document.getElementById("lastcountdesc").style.background=""})),$("#split69").click((function(){$("#split69").text(JSON.stringify(z,null,"\t"))})),$("#dumptoggle").on("click",(function(){0==n?(n++,document.getElementById("dumptoggle").innerHTML="Dump [-]:",$("#split69").css({display:"initial"})):(n--,document.getElementById("dumptoggle").innerHTML="Dump [+]:",$("#split69").css({display:"none"}))})),K.addSelect({label:"LAST COUNT",options:["Off","On","On + Splits"],section:"Advanced 2",default:0,help:"Tracks recent counts and can show speedrun splits by hundreds. Not perfectly accurate.",onchange:function(){d.BODY_ELEMENT.attr("data-LastCount",this.val()),"On"==d.BODY_ELEMENT.attr("data-LastCount")&&($("#idlecontainer").css("display","initial"),$("#splits").css("display","none")),"On + Splits"==d.BODY_ELEMENT.attr("data-LastCount")&&($("#idlecontainer").css("display","initial"),$("#splits").css("display","initial")),"Off"==d.BODY_ELEMENT.attr("data-LastCount")&&$("#idlecontainer").css("display","none")}}),"On"==d.BODY_ELEMENT.attr("data-LastCount")&&($("#idlecontainer").css("display","initial"),$("#splits").css("display","none")),"On + Splits"==d.BODY_ELEMENT.attr("data-LastCount")&&$("#idlecontainer").css("display","initial")}(oe||(oe={})),function(e){d.BODY_ELEMENT.attr("data-submitShortcut","Ctrl+Enter");var n=$("#new-update-form textarea"),o=$("#RESConsoleVersion"),t=$("#new-update-form .save-button button");K.addSelect({label:"SUBMIT SHORTCUT",options:["Off","Ctrl+Enter","Enter"],section:"Advanced",default:1,help:"Changes the submit shortcut. May not work well with RES.",onchange:function(){d.BODY_ELEMENT.attr("data-submitShortcut",this.val())}}),n.on("keydown",(function(e){if("Off"!=d.BODY_ELEMENT.attr("data-submitShortcut")){if("Ctrl+Enter"==d.BODY_ELEMENT.attr("data-submitShortcut")){if(o.length>0&&+o.text().replace(/\D/g,"")>=478)return;13==e.keyCode&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),t.trigger("click"))}"Enter"==d.BODY_ELEMENT.attr("data-submitShortcut")&&13==e.keyCode&&(e.preventDefault(),t.trigger("click"))}}))}(te||(te={})),ie||(ie={}),_e=$("#new-update-form textarea"),$("body").on("keydown",(function(e){32==e.keyCode&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),_e.focus())})),ae||(ae={}),$("#new-update-form .save-button button").mousedown((function(e){e.preventDefault()})),function(e){var n=_(732),o=n.overrides;"VitaminB16"==l&&(o.b66b="white"),E=o;for(var t=(S=n.defaults).length-1;t>0;t--){var i=Math.floor(Math.random()*(t+1)),a=S[t];S[t]=S[i],S[i]=a}var r=0,s=!0;K.addCheckbox({label:"COLORED USERNAMES",default:!0,help:"Makes the username in each message gain a unique color.\n\nCertain users who have specified their preferred username colors to /u/co3_carbonaate get that fixed color all the time. Otherwise, your color will be random and appear differently for everyone using the extension.",onchange:function(){s=this.prop("checked")}}),m.addListener("new",(e=>{if(s&&("MaybeNotWrong"!=e.author&&"co3_carbonate"!=e.author&&"rschaosid"!=e.author&&"piyushsharma301"!=e.author&&"LeinadSpoon"!=e.author&&"artbn"!=e.author||e.authorNode.css("font-weight","bold"),u[0]&&e.author==h[0]&&e.authorNode.html('/u/TOP_20'),u[1]&&e.author==h[1]&&e.authorNode.html("Kailee"),o.hasOwnProperty(e.author)||(o[e.author]=S[r],++r==S.length&&(r=0)),e.authorNode.css("color",o[e.author]),[c.LC_CHATS_OLD,c.LC_CHATS].includes(g))){var n=e.hrefNode.attr("href");n=n.trim().replace("/u/",""),e.hrefNode.css("color",o[n]).css("fontStyle","initial").css("fontSize","13px"),"MaybeNotWrong"!=n&&"co3_carbonate"!=n&&"rschaosid"!=n&&"piyushsharma301"!=n&&"LeinadSpoon"!=n&&"artbn"!=n||e.hrefNode.css("font-weight","bold")}})),[c.LC_CHATS_OLD,c.LC_CHATS].includes(g)&&($('a[href*="/u/"]').each((function(){var e=$(this).attr("href");e=e.trim().replace("/u/",""),$(this).css("color",o[e]).css("fontStyle","initial").css("fontSize","13px"),"MaybeNotWrong"!=e&&"co3_carbonate"!=e&&"rschaosid"!=e&&"piyushsharma301"!=e&&"LeinadSpoon"!=e&&"artbn"!=e||$(this).css("font-weight","bold")})),m.addListener("loaded",(()=>{$('a[href*="/u/"]').each((function(){var e=$(this).attr("href");e=e.trim().replace("/u/",""),$(this).css("color",o[e]).css("fontStyle","initial").css("fontSize","13px"),"MaybeNotWrong"!=e&&"co3_carbonate"!=e&&"rschaosid"!=e&&"piyushsharma301"!=e&&"LeinadSpoon"!=e&&"artbn"!=e||$(this).css("font-weight","bold")}))})));var d=0;$(".author").each((function(){var e=$(this).text().trim().replace("/u/","");o.hasOwnProperty(e)||(o[e]=S[d],++d==S.length&&(d=0)),$(this).css("color",o[e]),"MaybeNotWrong"!=e&&"co3_carbonate"!=e&&"rschaosid"!=e&&"piyushsharma301"!=e&&"LeinadSpoon"!=e&&"artbn"!=e||$(this).css("font-weight","bold")})),m.addListener("loaded",(()=>{$(".author").each((function(){var e=$(this).text().trim().replace("/u/","");o.hasOwnProperty(e)||(o[e]=S[d],++d==S.length&&(d=0)),$(this).css("color",o[e]),"MaybeNotWrong"!=e&&"co3_carbonate"!=e&&"rschaosid"!=e&&"piyushsharma301"!=e&&"LeinadSpoon"!=e&&"artbn"!=e||$(this).css("font-weight","bold")}))})),G.add('li > div > a[href="/user/MaybeNotWrong"].author.blink {animation: blinkerm linear 2;} @keyframes blinkerm {50% { opacity:0; } 100%{ opacity:1; } }'),G.add('li > div > a[href="/user/ItzTaken"].author.takenblink {animation: takenblinkerm linear 2;} @keyframes takenblinkerm {50% { opacity:0; } 100%{ opacity:1; } }')}(re||(re={})),se||(se={}),de=!0,me=!1,(le=K.addCheckbox({label:"CLEAR PAST MESSAGES (REDUCES LAG)",default:!0,help:"Frequently clears past messages from the page, which drastically negates lag and reduces the need to refresh constantly.",onchange:function(){de=this.prop("checked")}})).click((function(){me=!0,setTimeout((function(){me=!1}),5e3)})),m.addListener("new",(()=>{if(0==window.scrollY&&0==me&&(de||le.prop("checked",!0).trigger("change")),de){var e=d.UPDATES_ELEMENT.children(".liveupdate");e.length>50&&e.slice(50).remove()}})),m.addListener("loaded",(()=>{de&&le.prop("checked",!1).trigger("change")})),function(e){d.BODY_ELEMENT.attr("data-DisplayMode","Normal");var n=$('');n.on("click",(function(){o.children('option[value="Normal"]').prop("selected",!0).trigger("change")})),n.css({marginBottom:"20px",display:"none",margin:"0 auto"}),d.CONTENT_ELEMENT.prepend(n);var o=K.addSelect({label:"DISPLAY MODE",options:["Normal","Minimal"],help:"Changes the display interface of the page to your preference.",onchange:function(){var e=this.val();n.css("display","Normal"==e?"none":"block"),d.BODY_ELEMENT.attr("data-DisplayMode",e)}});G.add("\n\n\t/* Display Minimal */\n\t#lc-body[data-DisplayMode='Minimal'] #idlecontainer {left: -40%!important;} #lc-body[data-DisplayMode='Minimal'] #header,\n\t#lc-body[data-DisplayMode='Minimal'] #liveupdate-statusbar,\n\t#lc-body[data-DisplayMode='Minimal'] .markdownEditor-wrapper,\n\t#lc-body[data-DisplayMode='Minimal'] li.liveupdate time.live-timestamp,\n\t#lc-body[data-DisplayMode='Minimal'] #liveupdate-options, \n\t#lc-body[data-DisplayMode='Minimal'] aside.sidebar {\n\t\tdisplay: none;\n\t}\n\n\t#lc-body[data-DisplayMode='Minimal'] #liveupdate-header,\n\t#lc-body[data-DisplayMode='Minimal'] #new-update-form {\n\t\tmargin-left: 0px;\n\t}\n\n\t#lc-body[data-DisplayMode='Minimal'] li.liveupdate ul.buttonrow {\n\t\tmargin: 0 0 2em 0px !important;\n\t}\n\n\t#lc-body[data-DisplayMode='Minimal'] div.content {\n\t\tmax-width: "+Math.max(450,$("#new-update-form textarea").outerWidth())+"px;\n\t}\n\n\t")}(ge||(ge={}));var ue,pe,fe,ke,be,we,ye,ve,Ee,xe,Se,Te,Le,Ce,Be,Me,De,Oe=0;!function(e){var n="",o=!0,t="";function i(){n=d.UPDATE_TEXTAREA.val()}K.addSelect({label:"REMOVE SUBMISSION LAG",options:["Enabled","No Clear","Disabled"],default:0,help:"Upon submitting a message, the textbox is immediately cleared to allow you to enter new contents without waiting for your previous submission to be processed.\n\nYou can also stop Reddit from clearing the textbox.",onchange:function(){t=this.val(),o="Enabled"==t,"No Clear"==t&&(0==Oe&&$.ajaxSetup({dataFilter:function(e,n){return'{"jquery": [[0, 1, "call", ["#new-update-form"]], [1, 2, "attr", "find"], [2, 3, "call", [".status"]], [3, 4, "attr", "hide"], [4, 5, "call", []], [5, 6, "attr", "html"], [6, 7, "call", [""]], [7, 8, "attr", "end"], [8, 9, "call", []], [1, 10, "attr", "find"], [10, 11, "call", ["textarea"]], [11, 12, "attr", "attr"], [12, 13, "call", ["rows", 3]], [13, 14, "attr", "html"], [14, 15, "call", [""]], [15, 16, "attr", "val"], [16, 17, "call", [""]]], "success": true}'==e&&(e='{"jquery": [[0, 1, "call", ["#new-update-form"]], [1, 2, "attr", "find"], [2, 3, "call", [".status"]], [3, 4, "attr", "hide"], [4, 5, "call", []], [5, 6, "attr", "html"] ], "success": true}'),e}}),Oe++)}}),G.add("\n\n\t.liveupdate-listing li.liveupdate.preview {\n\t\topacity: 0.75;\n\t}\n\t.liveupdate-listing li.liveupdate.preview .live-timestamp {\n\t\tvisibility: hidden;\n\t}\n\n\t"),d.SUBMIT_BUTTON.on("click",(function(e){o&&setTimeout((function(){0!=d.UPDATE_TEXTAREA.val().length&&(d.UPDATE_TEXTAREA.val(""),d.UPDATE_TEXTAREA.on("keydown keyup input",i))}),0)}));var _=new MutationObserver((function(e){o&&1==e.length&&"display: inline;"==e[0].oldValue&&"display: none;"==d.SUBMIT_ERROR.attr("style")&&(d.UPDATE_TEXTAREA.off("keydown keyup input",i),d.UPDATE_TEXTAREA.val(n),n="")}));d.SUBMIT_ERROR.length>0&&_.observe(d.SUBMIT_ERROR.get(0),{attributes:!0,attributeOldValue:!0,attributeFilter:["style"]})}(ce||(ce={})),ue||(ue={}),d.BODY_ELEMENT.attr("data-DisableUsernameLinks","false"),K.addCheckbox({label:"DISABLE USERNAME LINKS",section:"Advanced",help:"Disables the redirection to a user's profile upon clicking on his/her username. This is convenient to prevent yourself from accidentally going to one's profile page when trying to strike or delete a message.",onchange:function(){d.BODY_ELEMENT.attr("data-DisableUsernameLinks",this.prop("checked").toString())}}),G.add("\n\n\t#lc-body[data-DisableUsernameLinks='true'] li.liveupdate > .body > .author {\n\t\tpointer-events: none;\n\t\tcursor: auto;\n\t}\n\n\t"),pe||(pe={}),ye=$(''),d.HEAD_ELEMENT.append(ye),K.addCheckbox({label:"MAKE ALL LINKS OPEN IN A NEW TAB",default:!0,section:"Advanced",help:"Makes all links on the page open in a new tab.",onchange:function(){this.prop("checked")?ye.attr("target","_blank"):ye.attr("target","_self")}}),function(e){var n=!0;K.addCheckbox({label:"DISABLE OBSTRUCTIVE BROWSER SHORTCUTS",default:!0,section:"Advanced",help:"Disables certain obstructive browser keyboard shortcuts. This currently disables the following: Ctrl+0 (Zoom Reset), Ctrl+[1-9] (Switch Tabs)",onchange:function(){n=this.prop("checked")}}),$(document).on("keydown",(function(e){n&&(e.ctrlKey||e.metaKey)&&(48==e.keyCode&&e.preventDefault(),e.keyCode>=49&&e.keyCode<=57&&e.preventDefault(),e.keyCode>=96&&e.keyCode<=105&&e.preventDefault())}))}(fe||(fe={}));for(let Xe=0;Xe
Daily [+]100k [+]
#UserCounts
#UserCounts
').insertBefore("#liveupdate-resources .md")):$("#wholetable").html('
Daily [+]100k [+]
#UserCounts
#UserCounts
'),(o=o.map((function(e,n){let o="=3&&(o+=" class=collapsedo");var t=[e.author,e.counts].join(""),i="";return 1==e.has_wrc_req&&(i=" title='Has WRC requirements' style='font-style:italic;'"),o+=">"+(n+1)+"/u/"+t+"",o}))).push("Counts today:"+s.toLocaleString()+""),o.push("Latest count:"+r.toLocaleString()+""),t=t.map(n),(_=_.map((function(e,n){let o="=3&&(o+=" class=collapsedo2");var t=[e.author,e.counts].join(""),i="";return 1==e.has_wrc_req&&(i=" title='Has WRC requirements' style='font-style:italic;'"),o+=">"+(n+1)+"/u/"+t+"",o}))).push("Counts:"+d.toLocaleString()+""),_.push("Latest count:"+r.toLocaleString()+""),i=i.map(n),t=(t=(t=(t=(t=t.join("")).replace(/[A-Za-z]/g,"")).replace(/[-]/g,"")).replace(/[_]/g,"")).replace(/[0-9]+/g,""),i=(i=(i=(i=(i=i.join("")).replace(/[A-Za-z]/g,"")).replace(/[-]/g,"")).replace(/[_]/g,"")).replace(/[0-9]+/g,""),0==t.length&&0==i.length&&"number"==typeof d&&"number"==typeof r&&"number"==typeof s?($("#loadtest").append(o.join("")),$("#loadtest2").append(_.join("")),$("#loadtest tbody:nth-child(5)").append("divide"),$(".authoro").each((function(){if($(this).attr("href","https://reddit.com"+$(this).text()),1==T){var e=$(this).attr("href");e=e.trim().replace("https://reddit.com/u/",""),E.hasOwnProperty(e)||(E[e]=S[x],++x==S.length&&(x=0)),$(this).css("color",E[e]),$(this).text()=="/u/"+l&&$(this).parent().parent().css("font-weight","bold")}})),0==y?($("#loadtest").css("display","inline-table"),document.getElementById("dailyenabler").innerHTML="Daily [+]",$(".collapsedo").css({display:"none"})):1==y?($("#loadtest").css("display","inline-table"),document.getElementById("dailyenabler").innerHTML="Daily [-]",$(".collapsedo").css({display:"table-row"})):-1==y&&(document.getElementById("dailyenabler").innerHTML="Daily",$("#loadtest").css("display","none")),0==v?($("#loadtest2").css("display","inline-table"),document.getElementById("dailyenabler2").innerHTML="100k [+]",$(".collapsedo2").css({display:"none"})):1==v?($("#loadtest2").css("display","inline-table"),document.getElementById("dailyenabler2").innerHTML="100k [-]",$(".collapsedo2").css({display:"table-row"})):-1==v&&(document.getElementById("dailyenabler2").innerHTML="100k",$("#loadtest2").css("display","none")),$("#dailyenabler").on("click",(function(){-1==y&&(y=1,document.getElementById("dailyenabler2").innerHTML="100k",$("#loadtest2").css("display","none")),0==y?(y++,v=-1,$("#loadtest").css("display","inline-table"),$("#loadtest2").css("display","none"),document.getElementById("dailyenabler").innerHTML="Daily [-]",$(".collapsedo").css({display:"table-row"})):1==y&&(y--,v=-1,$("#loadtest").css("display","inline-table"),$("#loadtest2").css("display","none"),document.getElementById("dailyenabler").innerHTML="Daily [+]",$(".collapsedo").css({display:"none"}))})),$("#dailyenabler2").on("click",(function(){-1==v&&(v=1,document.getElementById("dailyenabler").innerHTML="Daily",$("#loadtest").css("display","none")),0==v?(v++,y=-1,$("#loadtest2").css("display","inline-table"),$("#loadtest").css("display","none"),document.getElementById("dailyenabler2").innerHTML="100k [-]",$(".collapsedo2").css({display:"table-row"})):1==v&&(v--,y=-1,$("#loadtest2").css("display","inline-table"),$("#loadtest").css("display","none"),document.getElementById("dailyenabler2").innerHTML="100k [+]",$(".collapsedo2").css({display:"none"}))}))):$("#loadtest").append("Error verifying data, please PM /u/rideride")};$.ajax({method:"GET",dataType:"json",cache:!1,url:"https://raw.githubusercontent.com/MaybeNotWrong/lc-sep/master/data.txt",success:m,error:function(e){}}),setInterval((function(){$.ajax({method:"GET",dataType:"json",cache:!1,url:"https://raw.githubusercontent.com/MaybeNotWrong/lc-sep/master/data.txt",success:m,error:function(e){}})}),15e3),G.add(" #loadtest tbody tr:nth-child(2) td:nth-child(1){background: gold;color: black;}#loadtest tbody tr:nth-child(3) td:nth-child(1){background: silver;color: black;}#loadtest tbody tr:nth-child(4) td:nth-child(1){background: #cd7f32;color: black;}#loadtest{border: 1px solid black;width: 100%;text-align: center;}#loadtest tr td{border: 1px solid black;max-width: 223px;}#loadtest{overflow: hidden;height: 100%;}#loadtest{color: #000;font-size: inherit;font-weight: normal;}#dailyenabler{cursor: pointer;color: #000;font-size: 14px;font-weight: bold;margin-bottom: 3px;}.tablenames{font-weight: bold;}"),G.add(" #loadtest2 tbody tr:nth-child(2) td:nth-child(1){background: gold;color: black;}#loadtest2 tbody tr:nth-child(3) td:nth-child(1){background: silver;color: black;}#loadtest2 tbody tr:nth-child(4) td:nth-child(1){background: #cd7f32;color: black;}#loadtest2{border: 1px solid black;width: 100%;text-align: center;}#loadtest2 tr td{border: 1px solid black;max-width: 223px;}#loadtest2{overflow: hidden;height: 100%;}#loadtest2{color: #000;font-size: inherit;font-weight: normal;}#dailyenabler2{cursor: pointer;color: #000;font-size: 14px;font-weight: bold;margin-bottom: 3px;}.tablenames2{font-weight: bold;}"),G.add("#mini{border: 1px solid black;width: 100%;text-align: center;}#mini tr td{border: 1px solid black;max-width: 223px;}#mini{overflow: hidden;height: 100%;}#mini{color: #000;font-size: inherit;font-weight: normal;}")}}(ke||(ke={})),we||(we={}),d.BODY_ELEMENT.attr("data-ContentPosition","Center"),K.addSelect({label:"CONTENT POSITION",options:["Left","Center","Right"],section:"Advanced",default:1,help:"Adjusts the position of the main content section.",onchange:function(){d.BODY_ELEMENT.attr("data-ContentPosition",this.val())}}),G.add("\n\n\t#lc-body[data-ContentPosition='Left'] div.content {\n\t\tmargin: 0;\n\t}\n\t#lc-body[data-ContentPosition='Center'] div.content {\n\t\tmargin: 0 auto;\n\t}\n\t#lc-body[data-ContentPosition='Right'] div.content {\n\t\tfloat: right;\n\t}\n\n\t"),new(0,_(679).G)(K),ve||(ve={}),xe=!1,K.addCheckbox({label:"IGNORE",section:"Advanced",default:!1,help:"Adjusts the position of the options.",onchange:function(){1==(xe=this.prop("checked"))?(Ee=!0,$("#ignorestuff").css("display","initial")):(Ee=!1,$("#ignorestuff").css("display","none"))}}),$('