программа по борьбе с дерьмом

программа по борьбе с дерьмом2

当前为 2024-09-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name программа по борьбе с дерьмом
  3. // @version 2.5
  4. // @description программа по борьбе с дерьмом2
  5. // @author Vitao (github@InBuildTime)
  6. // @match https://pt.khanacademy.org/*
  7. // @grant none
  8. // @namespace https://greasyfork.org/users/1319848
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. function showConfirmationMessage(text, duration = 8000) {
  15. const messageDiv = document.createElement('div');
  16. messageDiv.innerHTML = text;
  17.  
  18. const blurDiv = document.createElement('div');
  19. Object.assign(blurDiv.style, {
  20. position: 'fixed',
  21. top: '0',
  22. left: '0',
  23. width: '100%',
  24. height: '100%',
  25. backdropFilter: 'blur(10px)',
  26. zIndex: '9999',
  27. backgroundColor: 'rgba(0, 0, 0, 0.5)'
  28. });
  29.  
  30. Object.assign(messageDiv.style, {
  31. position: 'fixed',
  32. top: '50%',
  33. left: '50%',
  34. transform: 'translate(-50%, -50%)',
  35. backgroundColor: 'rgba(255, 255, 255, 0.9)',
  36. padding: '20px 40px',
  37. borderRadius: '12px',
  38. zIndex: '10000',
  39. fontSize: '26px',
  40. fontFamily: 'Arial, sans-serif',
  41. textAlign: 'center',
  42. boxShadow: '0 8px 16px rgba(0, 0, 0, 0.3)',
  43. opacity: '1',
  44. transition: 'opacity 1s, transform 1s',
  45. backgroundImage: 'linear-gradient(135deg, #6a11cb 0%, #2575fc 100%)',
  46. color: 'white',
  47. border: '5px solid',
  48. borderColor: 'rgba(0, 170, 255, 1)',
  49. boxShadow: '0 0 15px rgba(0, 170, 255, 0.7)',
  50. animation: 'pulseNeon 2s infinite',
  51. display: 'flex',
  52. flexDirection: 'column',
  53. alignItems: 'center'
  54. });
  55.  
  56. const button = document.createElement('button');
  57. button.textContent = 'Entendi';
  58. Object.assign(button.style, {
  59. marginTop: '20px',
  60. padding: '10px 20px',
  61. fontSize: '20px',
  62. color: 'white',
  63. backgroundColor: 'rgba(0, 255, 0, 0.9)',
  64. border: '5px solid',
  65. borderColor: 'rgba(0, 255, 0, 1)',
  66. borderRadius: '8px',
  67. boxShadow: '0 0 15px rgba(0, 255, 0, 0.7)',
  68. cursor: 'pointer',
  69. transition: 'transform 0.3s',
  70. animation: 'pulseGreenNeon 2s infinite'
  71. });
  72.  
  73. button.onmouseover = function() {
  74. button.style.transform = 'scale(1.1)';
  75. };
  76.  
  77. button.onmouseout = function() {
  78. button.style.transform = 'scale(1)';
  79. };
  80.  
  81. button.onclick = function() {
  82. messageDiv.style.opacity = '0';
  83. messageDiv.style.transform = 'translate(-50%, -50%) scale(0.8)';
  84. blurDiv.style.opacity = '0';
  85.  
  86. setTimeout(() => {
  87. if (messageDiv.parentNode) {
  88. messageDiv.parentNode.removeChild(messageDiv);
  89. }
  90. if (blurDiv.parentNode) {
  91. blurDiv.parentNode.removeChild(blurDiv);
  92. }
  93. }, 1000);
  94. };
  95.  
  96. messageDiv.appendChild(button);
  97.  
  98. const styleSheet = document.createElement("style");
  99. styleSheet.type = "text/css";
  100. styleSheet.innerText = `
  101. @keyframes pulseNeon {
  102. 0%, 100% {
  103. box-shadow: 0 0 15px rgba(0, 170, 255, 0.7);
  104. }
  105. 50% {
  106. box-shadow: 0 0 30px rgba(0, 170, 255, 1);
  107. }
  108. }
  109. @keyframes pulseGreenNeon {
  110. 0%, 100% {
  111. box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
  112. }
  113. 50% {
  114. box-shadow: 0 0 30px rgba(0, 255, 0, 1);
  115. }
  116. }
  117. `;
  118. document.head.appendChild(styleSheet);
  119.  
  120. document.body.appendChild(blurDiv);
  121. document.body.appendChild(messageDiv);
  122. }
  123.  
  124. function setLanguageToRussian() {
  125. document.documentElement.lang = 'ru';
  126. const lang = 'ru';
  127. const meta = document.createElement('meta');
  128. meta.name = 'lang';
  129. meta.content = lang;
  130. document.head.appendChild(meta);
  131. }
  132.  
  133. setLanguageToRussian();
  134. showConfirmationMessage(
  135. '🚀 Bypass Adicionado!<br><br><small style="font-size: 18px;">⚠️ Atenção: O Script pode não funcionar corretamente, se ouver erros estarei arrumando.</small>',
  136. 8000
  137. );
  138.  
  139. let originalJSONParse = JSON.parse;
  140. JSON.parse = function (a, t) {
  141. let n = originalJSONParse(a, t);
  142. try {
  143. if (n && n.data && n.data.assessmentItem && n.data.assessmentItem.item && n.data.assessmentItem.item.itemData) {
  144. n.data.assessmentItem.item.itemData = "{\"answerArea\":{\"calculator\":false,\"chi2Table\":false,\"periodicTable\":false,\"tTable\":false,\"zTable\":false},\"hints\":[{\"content\":\"$\\\\\\\\begin{align}\\\\n\\\\\\\\left(\\\\\\\\dfrac{z^{4}}{6^{2}}\\\\\\\\right)^{-3}&=\\\\\\\\dfrac{\\\\\\\\left(z^{4}\\\\\\\\right)^{-3}}{\\\\\\\\left(6^{2}\\\\\\\\right)^{-3}}\\\\n\\\\\\\\end{align}$\",\"images\":{},\"replace\":false,\"widgets\":{}},{\"content\":\"$\\\\\\\\begin{align}\\\\n\\\\\\\\phantom{\\\\\\\\left(\\\\\\\\dfrac{z^{4}}{6^{2}}\\\\\\\\right)^{-3}}&=\\\\\\\\dfrac{z^{(4)(-3)}}{6^{(2)(-3)}}\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n&=\\\\\\\\dfrac{z^{-12}}{6^{-6}}\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n&=\\\\\\\\dfrac{6^{6}}{z^{12}}\\\\n\\\\\\\\end{align}$\",\"images\":{},\"replace\":false,\"widgets\":{}}],\"itemDataVersion\":{\"major\":0,\"minor\":1},\"question\":{\"content\":\"Khan Academy NetWork, @by Victor[[☃ radio 1]]\",\"images\":{},\"widgets\":{\"radio 1\":{\"alignment\":\"default\",\"graded\":true,\"options\":{\"choices\":[{\"content\":\"Resposta\",\"correct\":true},{\"content\":\"💀\",\"correct\":false}],\"deselectEnabled\":false,\"displayCount\":null,\"hasNoneOfTheAbove\":false,\"multipleSelect\":false,\"onePerLine\":true,\"randomize\":false},\"static\":false,\"type\":\"radio\",\"version\":{\"major\":1,\"minor\":0}}}}}";
  145. }
  146. } catch (error) {
  147. console.error("Erro no módulo:", error);
  148. }
  149. return n;
  150. };
  151.  
  152. })();