-
-
Save abrudz/822acc9c8cf0206d4eadb3849268c839 to your computer and use it in GitHub Desktop.
https://github.com/abrudz/aplcart/blob/master/aplcart.js but with invisible variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ㅤ=ㅤ=>{ | |
history.replaceState({},document.title,location.pathname+(ㅤ.value?"?ㅤ="+encodeURIComponent(ㅤ.value):"")) | |
ㅤ=location.toString().replace("#","").replace(/^https:\/\/aplcart\.info\//,"https://aplcart.info") | |
ㅤ(navigator.clipboard.writeText(ㅤ).catch(ㅤ=>prompt("Query URL:",ㅤ))) | |
} | |
ㅤ=ㅤ=>ㅤ.focus() | |
ㅤ=ㅤ=>{ | |
var ㅤ=new URLSearchParams(location.search) | |
ㅤ.className=0==ㅤ.get("ㅤ")?"ㅤ":0==ㅤ.get("ㅤ")?"ㅤ":0==ㅤ.get("ㅤ")?"ㅤ":window.getComputedStyle(ㅤ).content[1] | |
um.href="/quiz?"+ㅤ.className | |
if(ㅤ.get("self")!=null){document.querySelectorAll("[target]").forEach(ㅤ=>ㅤ.target="_self");um.href+="&self"} | |
fetch("table.tsv").then(ㅤ=>ㅤ.text()).then(ㅤ=>{ | |
ps=ㅤ.replace(/[<>&'"]/ㅤ,ㅤ=>({'<':'<','>':'>','&':'&',"'":''','"':'"'}[ㅤ])).trim().split(/\ㅤ?\ㅤ/ㅤ).splice(1).map(ㅤ=>ㅤ.split("\ㅤ")) | |
ㅤ=ps.map(ㅤ=>ㅤ[0]) | |
ㅤ=ps.map(ㅤ=>ㅤ[1]) | |
ㅤ=ps.map(ㅤ=>ㅤ[7]) | |
ㅤ=ps.map(ㅤ=>ㅤ[8]) | |
ㅤ=ㅤ.split(/\ㅤ?\ㅤ/ㅤ).splice(1).map(ㅤ=>ㅤ.toLowerCase().replace(/https:\ㅤ+\ㅤ/,"(>)").replace(/https:\ㅤ+$/,"(?)")) | |
ㅤ="" | |
for(var ㅤ=0;ㅤ<ㅤ.length;ㅤ++){ㅤ+='<tr><td>'+(ㅤ[ㅤ]?'<ㅤ href="'+ㅤ[ㅤ]+'" target="_blank" title="Try it online!"></ㅤ>':'')+ㅤ[ㅤ]+'</td><td>'+(ㅤ[ㅤ]?'<ㅤ href="'+ㅤ[ㅤ]+'" target="_blank" title="Documentation">?</ㅤ>':'')+ㅤ[ㅤ]+'</td></tr>'} | |
ㅤ.innerHTML=ㅤ | |
ㅤ(ㅤ(ㅤ.value=ㅤ.get("ㅤ")))})} | |
ㅤ=ㅤ=>{ | |
var ㅤ,ㅤ=ㅤ.value.split(' '),ㅤ=ㅤ.rows,ㅤ=0 | |
for(var ㅤ=0;ㅤ<ㅤ.length;ㅤ++){ | |
for(var ㅤ=0;ㅤ<ㅤ.length;ㅤ++){ㅤ=ㅤ[ㅤ];ㅤ=(ㅤ[0]+ㅤ[wl=ㅤ.length-1]=="//"?(new RegExp(ㅤ.slice(1,wl),"iu")).test(ㅤ[ㅤ]):ㅤ[ㅤ].indexOf(ㅤ[ㅤ].toLowerCase())>-1);if(!ㅤ)break} | |
ㅤ+=!(ㅤ[ㅤ].hidden=!ㅤ)} | |
ㅤ.textContent=ㅤ+" of "+ㅤ.length} | |
ㅤ=ㅤ=>{qs=ㅤ.selectionStart;qe=ㅤ.selectionEnd | |
if((ㅤ=ㅤ.value)[0]+ㅤ[vl=ㅤ.length-1]=="//"){ㅤ.value=ㅤ.slice(1,vl);ㅤ.selectionStart=qs-1;ㅤ.selectionEnd=qe-1 | |
}else{ㅤ.value="/"+ㅤ+"/";ㅤ.selectionStart=qs+1;ㅤ.selectionEnd=qe+1};ㅤ()} | |
ㅤ=ㅤ=>{ㅤ(ㅤ.className=ㅤ?ㅤ:"wbg"[1+"wb".indexOf(ㅤ.className)]);um.href="/quiz?"+ㅤ.className} | |
ㅤ=ㅤ=>ㅤ(ㅤ(ㅤ.value="")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment