Google Classroom Error For Everybody

Error (No Need To Do Work!!)

  1. // ==UserScript==
  2. // @name Google Classroom Error For Everybody
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Error (No Need To Do Work!!)
  6. // @author GSRHackZ
  7. // @match https://classroom.google.com/*
  8. // @grant none
  9. // @license MIT
  10. // @compatible chrome
  11. // @compatible firefox
  12. // @compatible opera
  13. // @compatible safari
  14. // ==/UserScript==
  15. let fakeError=setInterval(function(){
  16. const phrases=[
  17. "Trying To Fix Errror....",
  18. "Error X4j#r has occured, reloading...",
  19. "(Fatal Error Has Occured) Error Code: #X0000",
  20. ]
  21. setTimeout(function(){alert(phrases[Math.floor(Math.random() * phrases.length)]);location.reload();},2000)
  22. let classes_container=document.getElementsByClassName("JwPp0e")[0]
  23. classes_container.innerHTML="";
  24. document.getElementsByClassName("bg6sud")[0].innerText="";
  25. if(classes_container.innerHTML.includes("R4EiSb")==false){
  26. clearInterval(fakeError);
  27. document.getElementsByClassName("GmuOkf")[0].onclick=function(evt){
  28. evt.preventDefault();
  29. location.reload();
  30. }
  31. console.log('%c classes were not detected, fakeError may start', 'color: springgreen; text-shadow:2px 2px 10px black;display:block;');
  32. classes_container.innerHTML=`
  33. <div id='container'>
  34. <h1 id="title">oops..</h1><br/>
  35. <p>An unexpected error has occured<br/>Please try again later...<p><br/>
  36. <img id="error-img"><br/>
  37. <a href="/">Retry</a>
  38. </div>`;
  39.  
  40.  
  41. var container=document.getElementById("container");
  42. var title=document.getElementById("title");
  43. var img=document.getElementById("error-img");
  44. var imgs=[
  45. "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTMEt3g7qRMG6sSQNGeIOLGss9NAEwqp2RJXw&usqp=CAU",
  46. "https://optinmonster.com/wp-content/uploads/2018/06/11-brilliant-404-pages-to-turn-lost-visitors-into-loyal-customers-2.png"
  47. ]
  48. container.style=`
  49. width:450px;
  50. height:400px;
  51. font-size:16px;
  52. padding-top:30px;
  53. margin: 0 auto;
  54. border: 1px solid lightgrey;
  55. border-radius:5px;
  56. opacity:100%;
  57. text-align:center;
  58. margin-top:100px;
  59. transition:all 1.7s;
  60. `
  61. title.style=`
  62. color:red;
  63. font-size:30px;
  64. margin-left:-10px;
  65. margin-bottom:20px;
  66. `
  67. img.style=`
  68. width:350px;
  69. border-radius:10px;
  70. height:200px;
  71. margin-bottom:10px;
  72. `
  73. }
  74. img.src=imgs[Math.floor(Math.random()*imgs.length)]
  75. },1700)
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.