Size
6.4 KB
Version
1.0.2
Created
Mar 31, 2026
Updated
17 days ago
1// ==UserScript==
2// @name Veck.io Ultimate Hack
3// @description Get 1,000,000 coins and unlock all weapons in Veck.io
4// @version 1.0.2
5// @match https://*.veck.io/*
6// @icon https://veck.io/favicon/favicon.ico
7// ==/UserScript==
8(function() {
9 'use strict';
10
11 // Function to find and modify coin values in the game
12 function addCoins() {
13 // Look for common coin/currency variable names in the game
14 const coinVariables = [
15 'coins', 'coin', 'currency', 'money', 'balance',
16 'playerCoins', 'playerMoney', 'gameCoins', 'gameCurrency'
17 ];
18
19 // Try to find and modify coin values in various game objects
20 for (let objName of ['window', 'player', 'game', 'state', 'store']) {
21 if (window[objName]) {
22 for (let varName of coinVariables) {
23 if (window[objName][varName] !== undefined) {
24 try {
25 window[objName][varName] = 1000000;
26 console.log(`Successfully set ${objName}.${varName} to 1000000`);
27 } catch (e) {
28 console.log(`Could not modify ${objName}.${varName}`);
29 }
30 }
31
32 // Also check for uppercase variations
33 const upperVarName = varName.charAt(0).toUpperCase() + varName.slice(1);
34 if (window[objName][upperVarName] !== undefined) {
35 try {
36 window[objName][upperVarName] = 1000000;
37 console.log(`Successfully set ${objName}.${upperVarName} to 1000000`);
38 } catch (e) {
39 console.log(`Could not modify ${objName}.${upperVarName}`);
40 }
41 }
42 }
43 }
44 }
45
46 // Try to find nested coin properties
47 function findAndSetCoins(obj, path = '') {
48 if (!obj || typeof obj !== 'object') return;
49
50 for (let key in obj) {
51 if (typeof obj[key] === 'number' &&
52 (key.toLowerCase().includes('coin') ||
53 key.toLowerCase().includes('currency') ||
54 key.toLowerCase().includes('money'))) {
55 try {
56 obj[key] = 1000000;
57 console.log(`Successfully set ${path}${key} to 1000000`);
58 } catch (e) {
59 console.log(`Could not modify ${path}${key}`);
60 }
61 } else if (typeof obj[key] === 'object' && obj[key] !== null) {
62 findAndSetCoins(obj[key], `${path}${key}.`);
63 }
64 }
65 }
66
67 findAndSetCoins(window);
68 }
69
70 // Function to unlock all weapons
71 function unlockWeapons() {
72 // Common weapon/unlock variable names
73 const weaponVariables = [
74 'weapons', 'weapon', 'guns', 'gun', 'ammo', 'unlocked',
75 'playerWeapons', 'ownedWeapons', 'weaponInventory',
76 'hasWeapon', 'weaponOwned', 'weaponUnlocked'
77 ];
78
79 // Try to find and modify weapon values
80 for (let objName of ['window', 'player', 'game', 'state', 'store', 'inventory']) {
81 if (window[objName]) {
82 // Set all weapon-related arrays/objects to unlocked state
83 for (let varName of weaponVariables) {
84 if (window[objName][varName] !== undefined) {
85 try {
86 // If it's an array, fill it with weapon data
87 if (Array.isArray(window[objName][varName])) {
88 // Just ensure it's not empty
89 if (window[objName][varName].length === 0) {
90 window[objName][varName] = [1, 1, 1, 1, 1]; // Generic weapon data
91 }
92 console.log(`Successfully processed weapon array ${objName}.${varName}`);
93 }
94 // If it's an object, set all properties to true/unlocked
95 else if (typeof window[objName][varName] === 'object' && window[objName][varName] !== null) {
96 for (let key in window[objName][varName]) {
97 window[objName][varName][key] = true;
98 }
99 console.log(`Successfully unlocked all weapons in ${objName}.${varName}`);
100 }
101 // If it's a boolean, set to true
102 else if (typeof window[objName][varName] === 'boolean') {
103 window[objName][varName] = true;
104 console.log(`Successfully set ${objName}.${varName} to true`);
105 }
106 } catch (e) {
107 console.log(`Could not modify ${objName}.${varName}`);
108 }
109 }
110 }
111
112 // Try to set all properties that might be related to weapon ownership
113 for (let key in window[objName]) {
114 if (typeof window[objName][key] === 'boolean' &&
115 (key.toLowerCase().includes('weapon') ||
116 key.toLowerCase().includes('gun') ||
117 key.toLowerCase().includes('unlock') ||
118 key.toLowerCase().includes('ammo'))) {
119 try {
120 window[objName][key] = true;
121 console.log(`Successfully set ${objName}.${key} to true`);
122 } catch (e) {
123 console.log(`Could not modify ${objName}.${key}`);
124 }
125 }
126 }
127 }
128 }
129 }
130
131 // Run both hacks when the page loads
132 function runHacks() {
133 addCoins();
134 unlockWeapons();
135 }
136
137 // Run the hacks when the page loads
138 if (document.readyState === 'loading') {
139 document.addEventListener('DOMContentLoaded', runHacks);
140 } else {
141 runHacks();
142 }
143
144 // Also run periodically in case values get reset
145 setInterval(runHacks, 5000);
146})();