Advertisement
BenSyt

Zearn hacks with reload delay(will not be updated as often)

Nov 22nd, 2022 (edited)
2,266
2
Never
6
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 2 0
  1. //Zearn universal hack(all hacks in one bookmark, when clicked will complete whatever you are currently on.):
  2. //COPY START
  3. javascript:async function SHA1(e){let t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-1",t),s=Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("");return s}var post=gon.posts[0].assets,type=post.category,comptext="",e={event_type:comptext="guided-practice"===type?"lesson_completed":"independent-practice"===type?"tower_completed":"fluency"===type&post.link.includes("number_gym_activities")?"nga_completed":"fluency_completed",subject_id:gon.posts[0].postable_id,success:!0},r=gon.current_user?gon.current_user.id:0,n=e.event_type,i=r+"."+e.subject_id+"-"+n;SHA1(i).then((function(t){e.confirmation=t,Dent.utils.Store.dispatch("userEvents/create",{event:e});setTimeout(function(){window.location.reload();},250)}));
  4. //COPY END
  5. //Make sure to click twice or reload after clicking to go the next section!
  6. //To run from console, remove javascript: from beginning, or else will give errors!
  7. //To customize reload delay time, change the value on the line before line 4 from 250 to any number you like.
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement