Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //zearn bot: type in number of lessons to complete(refer to https://pastebin.com/yDxRFunG for info on zearn lesson logging)
- //set usedelay to false and the delay is 0 for speed complete
- //if you speed complete on your school account, you chance getting caught!
- //set the delay to something you think is realistic to your lesson completion rate. remember, there are 4 parts to a lesson. divide your total lesson time by 4 give or take 2-3 miniutes, mabye give the bot some extra time if you're extra worried.
- //change usedelay=true to usedelay=false if you don't want to use random delay(speed complete).
- //leave it open in the background so it can do it's thing, and watch yt or smth. to do it safely it'll take a while
- //copy start
- javascript:var usedelay=true,tracker=document.querySelector(".lesson-progress-tracker-activities");function setlesson(e,t){var n=document.querySelector(".current-lesson");n.querySelector(".lesson-num").innerText="Lesson "+e.toString(),n.querySelector(".lesson-title").innerText=t}function allinactive(){Array.from(tracker.children).forEach((e=>{if(e.className.split(" ").includes("current")||e.className.split(" ").includes("complete")){var t=e.querySelector("img");t.src=t.src.replace("current","upcoming"),t.src=t.src.replace("complete","upcoming"),e.querySelector(".label")&&e.querySelector(".label").remove(),e.className=e.className.replace("current","upcoming"),e.className=e.className.replace("complete","upcoming")}}))}function setactive(e,t){allinactive();var n=Array.from(tracker.children)[e],s=document.createElement("div");s.className="label",s.innerText=t,s.style="font-size:10px;font-weight:700;text-align:center;text-transform:uppercase;",n.appendChild(s);var r=n.querySelector("img");r.src=r.src.replace("upcoming","current"),n.className=n.className.replace("upcoming","current")}async function hack(){return fetch("https://www.zearn.org/").then((e=>e.text())).then((e=>(new DOMParser).parseFromString(e,"text/html"))).then((e=>Array.from(e.querySelectorAll("script")).filter((e=>e.textContent.includes("gon={}")))[0])).then((e=>eval(e.textContent))).then((z=>{if(gon.current_user){window.gon2=gon,setlesson(gon2.current_lesson.position,gon2.current_lesson.title);var p=gon.posts[0],type=p.assets.category;if("fluency"===type)return makeRequest("activity_completions.json",{activitiable_type:p.assets.link.includes("number_gym_activities")?(setactive(0,"Number Gym"),"NumberGymActivity"):(setactive(1,"Fluency"),"Fluency"),activitiable_id:p.postable_id,success:!0}).then((e=>!0));var result={};return fetch(window.location.origin+p.assets.link).then((e=>e.text())).then((e=>{const t=new RegExp("\\/\\/<!\\[CDATA\\[(.*?)\\/\\/\\]\\]>","s");return e.match(t)[1]})).then((code=>eval(code))).then((function(){var e,t;switch(console.log(p),p.assets.type){default:e="GuidedPractice",setactive(2,"Math Chat"),t={id:"temp2",is_complete:!0,taskable_id:gon.checkpoints[gon.checkpoints.length-1].id,taskable_type:"Checkpoint"};break;case"learning-lab":setactive(2,"Learning Lab"),e="GuidedPractice",t={id:"temp2",is_complete:!0,taskable_id:gon.lab_sections[gon.lab_sections.length-1].id,taskable_type:"LabSection"};break;case"tower":var n=gon.stages[gon.stages.length-1];setactive(3,"Tower of Power"),t={id:"temp2",is_complete:!1,stage_id:n.id,taskable_id:n.problem.id,taskable_type:"Problem"},e="Tower",lcompleted++}return makeRequest("results.json",t).then((n=>"Tower"===e||"GuidedPractice"===e?n.text().then((e=>{var n=JSON.parse(e);return t.id=n.id,makeRequest("results/"+n.id,{result:t,is_successfully_completed:!0},"PUT")})):makeRequest("activity_completions.json",{activitiable_type:e,activitiable_id:p.postable_id}))).then((e=>gon2.current_lesson.position))}))}async function makeRequest(e,t,n="POST"){return fetch("https://www.zearn.org/"+e,{headers:{"x-csrf-token":document.querySelector("meta[name='csrf-token']").content,"content-type":"application/json"},body:JSON.stringify(t),method:n,credentials:"include"})}alert("You need to log in for the hacks to work!")}))}function run(e,t){lcompleted<e&&hack().then((t=>{lcompleted===e?(setactive(0,"Number Gym"),setlesson(t+1,"Lessons Done!"),alert("Lessons Completed!"),window.location.reload()):setTimeout(function(){run(e,t)},t+(usedelay?(Math.floor(Math.random()*25)*1000):0));}))}window.lcompleted=0,run(parseInt(prompt("How many lessons should the bot complete?")),parseInt(prompt("How many seconds should be in between activity completion" + (usedelay?"(randomness varies by 25s)":"") + ": "))*1000);
- //copy end
Advertisement
Comments
-
- Is the code supposed to give an error when using it because when i use it there shows an error in the console when i check if it works? I don't know if its just me?
-
- WHY DOES NONE OF YOUE HACKS WORK
-
- it works for other actviitys but not tower of power can you fix it?
-
- NONE OF HIS HACKS WORK FOR TOWER OF POWER
-
- They prob got patched mate
-
- DUH
-
- HE NEEDS TO FIX
Add Comment
Please, Sign In to add comment
Advertisement