Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*javascript:fetch('https://momentous-spurious-handsaw.glitch.me/proxy?url=https://pastebin.com/raw/h66nbLTM').then(response=>{return response.json()}).then(data=>{eval(data)})*/
- var w;
- w = window.open('https://www.blooket.com/');
- setTimeout(() => {
- w.document.body.appendChild(w.document.createElement('script'))
- .textContent = `
- document.body.insertAdjacentHTML('beforeend', \`
- <div class='gui2'>
- <div class="hack-checkbox">
- <label for='' style='text-decoration-line:underline'>Utils</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <label for='enemySpeedMultiplier'>Enemy Speed Multiplier: </label>
- <input id='enemySpeedMultiplier' class='input-field'>
- </div>
- <br>
- <div class="hack-checkbox">
- <label for='' style='text-decoration-line:underline'>Global</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <input id='autoAnswer' class='hotkey' type='checkbox'>
- <label for='autoAnswer' class="slider"></label>
- <label for='autoAnswer'>Auto Answer</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <input id='autoGetQuestion' class='hotkey' type='checkbox'>
- <label for='autoGetQuestion' class="slider"></label>
- <label for='autoGetQuestion'>Auto Get Question</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <input id='autoNextQuestion' class='hotkey' type='checkbox'>
- <label for='autoNextQuestion' class="slider"></label>
- <label for='autoNextQuestion'>Auto Next Question</label>
- </div>
- <br>
- <div class='gamemode towerdefense' style='display:none;'>
- <div class="hack-checkbox">
- <label for='' style='text-decoration-line:underline'>Tower Defense</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <label for='Health'>Health: </label>
- <input id='Health' class='input-field'>
- </div>
- <br>
- <div class="hack-checkbox">
- <label for='Tokens'>Tokens: </label>
- <input id='Tokens' class='input-field'>
- </div>
- <br>
- <div class="hack-checkbox">
- <label for='Damage'>Damage: </label>
- <input id='Damage' class='input-field'>
- </div>
- <br>
- <div class="hack-checkbox">
- <label for='Round'>Round: </label>
- <input id='Round' class='input-field'>
- </div>
- <br>
- <div class="hack-checkbox">
- <input id='autoNextRound' class='hotkey' type='checkbox'>
- <label for='autoNextRound' class="slider"></label>
- <label for='autoNextRound'>Auto Next Round</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <input id='autoKillEnemies' class='hotkey' type='checkbox'>
- <label for='autoKillEnemies' class="slider"></label>
- <label for='autoKillEnemies'>Auto Kill Enemies</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <input id='regeneratingHealth' class='hotkey' type='checkbox'>
- <label for='regeneratingHealth' class="slider"></label>
- <label for='regeneratingHealth'>Regenerating Health</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <label id='maxtowers' class='button'>Max Towers</label>
- <label id='killenemies' class='button'>Kill Enemies</label>
- </div>
- <br>
- </div>
- <div class='gamemode goldquest' style='display:block;'>
- <div class="hack-checkbox">
- <label for='' style='text-decoration-line:underline'>Gold Quest</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <input id='alwaysTriple' class='hotkey' type='checkbox'>
- <label for='alwaysTriple' class="slider"></label>
- <label for='alwaysTriple'>Always Triple</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <input id='autoRevealChests' class='hotkey' type='checkbox'>
- <label for='autoRevealChests' class="slider"></label>
- <label for='autoRevealChests'>Auto Reveal Chests</label>
- </div>
- <br>
- <div class="hack-checkbox">
- <label id='alltriple' class='button'>All Triple</label>
- <label id='revealchests' class='button'>Reveal Chests</label>
- </div>
- <br>
- </div>
- </div>
- <style>
- .gui2 {
- width: 250px;
- border-radius: 20px;
- border: 2px solid #fff;
- padding: 20px;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- background: rgba(0, 0, 0, 0.5);
- backdrop-filter: blur(8px);
- animation: fadeIn 0.5s ease-out;
- z-index: 9999999999;
- }
- .hack-checkbox {
- display: flex;
- align-items: center;
- }
- .hack-checkbox input[type='checkbox'] {
- display: none;
- }
- .hack-checkbox .slider {
- position: relative;
- width: 40px;
- height: 20px;
- background-color: #ccc;
- border-radius: 20px;
- cursor: pointer;
- }
- .hack-checkbox .slider:before {
- position: absolute;
- content: "";
- height: 16px;
- width: 16px;
- left: 2px;
- bottom: 2px;
- background-color: #fff;
- border-radius: 50%;
- transition: 0.4s;
- }
- input[type='checkbox']:checked + .slider:before {
- transform: translateX(20px);
- }
- input {
- }
- .hack-checkbox label {
- margin-left: 10px;
- color: #fff;
- font-family: Arial, sans-serif;
- }
- .slider-controls {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .slider-controls label {
- color: #fff;
- font-family: Arial, sans-serif;
- }
- .slider-controls input[type='range'] {
- width: 100%;
- -webkit-appearance: none;
- height: 5px;
- border-radius: 10px;
- background: #bbb;
- outline: none;
- opacity: 0.7;
- -webkit-transition: .2s;
- transition: opacity .2s;
- }
- .slider-controls input[type='range']::-webkit-slider-thumb {
- -webkit-appearance: none;
- appearance: none;
- width: 20px;
- height: 20px;
- border-radius: 50%;
- background: #fff;
- cursor: pointer;
- }
- .slider-controls input[type='range']::-moz-range-thumb {
- width: 20px;
- height: 20px;
- border-radius: 50%;
- background: #fff;
- cursor: pointer;
- }
- .slider-controls output {
- color: #fff;
- font-family: Arial, sans-serif;
- }
- .button {
- cursor: pointer;
- background: rgba(0, 0, 0, .2);
- border-radius: 15px;
- padding: 5px;
- }
- .input-field {
- width: 25px;
- padding: 10px;
- border: 1px solid #ccc;
- border-radius: 5px;
- font-size: 16px;
- outline: none;
- height: .05px;
- }
- .input-field:focus {
- border-color: dodgerblue;
- box-shadow: 0 0 5px rgba(0, 0, 255, 0.5);
- }
- .input-field::placeholder {
- color: #aaa;
- }
- </style>
- \`);
- var config = {
- utils: {
- enemySpeedMult: 1
- },
- global: {
- autoAnswer: false,
- autoGetQuestions: false,
- autoNextQuestion: false
- },
- TowerDefense: {
- health: null,
- tokens: null,
- damage: null,
- round: null,
- enemySpeedMultiplier: 1,
- autoNextRound: false,
- autoKillEnemies: false,
- regeneratingHealth: false,
- maxAllTowers: function() {
- getFuncs().towers.forEach(tower => {
- tower.damage = 10000;
- tower.level = 10000;
- tower.range = 10000;
- });
- },
- clearEnemies: function() {
- getFuncs().enemies.forEach(enemy => {
- enemy.health = 0;
- enemy.alive = false;
- });
- },
- get health() {
- return getFuncs().state.health;
- },
- get tokens() {
- return getFuncs().state.tokens;
- },
- get damage() {
- return getFuncs().dmg;
- },
- get round() {
- return getFuncs().state.round;
- },
- set health(t) {
- getFuncs().state.health = t;
- },
- set tokens(t) {
- getFuncs().state.tokens = t;
- },
- set damage(t) {
- getFuncs().dmg = t;
- },
- set round(t) {
- getFuncs().state.round = t;
- },
- get enemySpeedMultiplier() {
- return config.utils.enemySpeedMult
- },
- set enemySpeedMultiplier(t) {
- config.utils.enemySpeedMult = t;
- getFuncs().enemies.forEach(enemy => {
- enemy.speed = enemy.speed * t;
- });
- }
- },
- GoldQuest: {
- autoRevealChests: false,
- alwaysTriple: false,
- revealChests: function() {
- let i = 0;
- document.querySelectorAll('img[class*="chest"]').forEach(e => {
- e.parentElement.textContent = getFuncs().state.choices[i].text;
- i++
- });
- },
- makeAllChestsTriple: function() {
- getFuncs().state.choices.forEach(t => {
- t.type = 'multiply';
- t.val = 3;
- t.text = 'Triple Gold!';
- t.blook = 'Unicorn';
- });
- }
- },
- GameMode: null,
- get GameMode() {
- return window.location.host.split('.')[0];
- }
- };
- if (!Object.prototype.filter) {
- Object.defineProperty(Object.prototype, 'filter', {
- value: function(callback, thisArg) {
- const filteredObj = {};
- for (const key in this) {
- if (this.hasOwnProperty(key) && callback.call(thisArg, this[key], key, this)) {
- filteredObj[key] = this[key];
- };
- };
- return filteredObj;
- },
- enumerable: false,
- writable: true,
- configurable: true
- });
- };
- function getFuncs() {
- return Object.values(document.querySelector('#app > div > div'))[1]?.children[1]?._owner?.stateNode;
- };
- document.querySelectorAll('.gamemode').forEach(e => {
- });
- if (Array.from(document.querySelectorAll('.gamemode')).filter(t => t.style.display == 'block').length == 0) {
- try {
- document.querySelector(\`.\${config.GameMode}\`).style.display = 'block';
- } catch (error) {
- console.log('cheat for this specific gamemode hasn\\'t been created or you are not in a match right now');
- };
- };
- var f, r = true;
- function a() {
- if (r) {
- f = requestAnimationFrame(a);
- if (config.global.autoAnswer && document.querySelector('div[class*="questionText"]')) {
- try {
- Array.from(document.querySelectorAll('div[class*="answerText"]')).filter(t => t.firstChild.textContent == getFuncs().memoizedState.question.correctAnswers[0])[1].click();
- } catch (error) {
- Array.from(document.querySelectorAll('div[class*="answerText"]')).filter(t => t.firstChild.textContent == getFuncs().state.question.correctAnswers[0])[1].click();
- };
- };
- if (config.global.autoGetQuestions && document.querySelector('div[class*="modalButton"]')?.firstChild) document.querySelector('div[class*="modalButton"]')?.firstChild.click();
- if (config.global.autoNextQuestion && document.querySelector('div[class*="nextText"]')) document.querySelector('div[class*="nextText"]').click();
- };
- switch (config.GameMode) {
- case 'towerdefense':
- if (getFuncs()?.state) {
- if (config.TowerDefense.regeneratingHealth && getFuncs().state.health < 100000) getFuncs().state.health = 100000;
- if (config.TowerDefense.autoNextRound && document.querySelector('#nextRound')) nextRound.click();
- if (config.TowerDefense.autoKillEnemies && getFuncs().enemies) config.TowerDefense.clearEnemies();
- };
- case 'goldquest':
- if (getFuncs()?.state) {
- if (config.GoldQuest.alwaysTriple) {
- if (getFuncs()?.state?.choices.length == 3) {
- config.GoldQuest.makeAllChestsTriple();
- };
- };
- if (config.GoldQuest.autoRevealChests) {
- if (getFuncs()?.state?.choices.length == 3) {
- config.GoldQuest.revealChests();
- };
- };
- };
- };
- };
- try {
- a();
- } catch (error) {
- r = false;
- cancelAnimationFrame(f);
- console.log(error);
- };
- document.getElementById('enemySpeedMultiplier').addEventListener('input', function() {
- config.TowerDefense.enemySpeedMultiplier = parseFloat(this.value);
- });
- document.getElementById('autoAnswer').addEventListener('change', function() {
- config.global.autoAnswer = this.checked;
- });
- document.getElementById('autoGetQuestion').addEventListener('change', function() {
- config.global.autoGetQuestions = this.checked;
- });
- document.getElementById('autoNextQuestion').addEventListener('change', function() {
- config.global.autoNextQuestion = this.checked;
- });
- document.getElementById('Health').addEventListener('input', function() {
- config.TowerDefense.health = parseFloat(this.value);
- });
- document.getElementById('Tokens').addEventListener('input', function() {
- config.TowerDefense.tokens = parseFloat(this.value);
- });
- document.getElementById('Damage').addEventListener('input', function() {
- config.TowerDefense.damage = parseFloat(this.value);
- });
- document.getElementById('Round').addEventListener('input', function() {
- config.TowerDefense.round = parseFloat(this.value);
- });
- document.getElementById('autoNextRound').addEventListener('change', function() {
- config.TowerDefense.autoNextRound = this.checked;
- });
- document.getElementById('autoKillEnemies').addEventListener('change', function() {
- config.TowerDefense.autoKillEnemies = this.checked;
- });
- document.getElementById('regeneratingHealth').addEventListener('change', function() {
- config.TowerDefense.regeneratingHealth = this.checked;
- });
- document.getElementById('alwaysTriple').addEventListener('change', function() {
- config.GoldQuest.alwaysTriple = this.checked;
- });
- document.getElementById('autoRevealChests').addEventListener('change', function() {
- config.GoldQuest.autoRevealChests = this.checked;
- });
- document.getElementById('maxtowers').addEventListener('click', function() {
- config.TowerDefense.maxAllTowers();
- });
- document.getElementById('killenemies').addEventListener('click', function() {
- config.TowerDefense.clearEnemies();
- });
- document.getElementById('alltriple').addEventListener('click', function() {
- config.GoldQuest.makeAllChestsTriple();
- });
- document.getElementById('revealchests').addEventListener('click', function() {
- config.GoldQuest.revealChests();
- });
- document.querySelector('.gui2').style.display = 'block';
- document.addEventListener('keyup', (e) => {
- if (e.key == '\`') {
- document.querySelector('.gui2').style.display = document.querySelector('.gui2').style.display == 'none' ? 'block' : 'none';
- };
- });
- `;
- }, 1000);
- console.log(w)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement