Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added game Clash of clans #5025

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions Games/Clash_Of_Clans/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Clash of Clans GG Script

## Overview

The Clash of Clans GG Script is a browser extension designed to modify in-game resources such as gems, gold, and elixir. This script provides users with the ability to adjust these resources for educational purposes, helping them explore the game's mechanics without limitations.

## Features

### Modify Gems
- **Description**: Allows users to change their current amount of gems to a specified value.
- **Usage**: Input your current number of gems, and the script will set the gem count to a high value (e.g., 999,999).

### Modify Gold
- **Description**: Allows users to change their current amount of gold to a specified value.
- **Usage**: Input your current number of gold, and the script will set the gold count to a high value (e.g., 999,999).

### Modify Elixir
- **Description**: Allows users to change their current amount of elixir to a specified value.
- **Usage**: Input your current number of elixir, and the script will set the elixir count to a high value (e.g., 999,999).

## Installation

1. Clone or download the repository.
2. Open your browser and navigate to the extensions page.
3. Enable "Developer mode".
4. Click "Load unpacked" and select the directory containing the downloaded files.

## Usage

1. Open the extension by clicking on the Clash of Clans GG Script icon in your browser.
2. Choose the desired option:
- **Modify Gems**: Enter your current amount of gems when prompted.
- **Modify Gold**: Enter your current amount of gold when prompted.
- **Modify Elixir**: Enter your current amount of elixir when prompted.
3. Follow the prompts and alerts to complete the modifications.

## Files

### `index.html`

The HTML file providing the structure of the user interface.

### `styles.css`

The CSS file for styling the user interface.

### `script.js`

The JavaScript file containing the functionality for modifying the game’s resources.

### `manifest.json`

The manifest file required for the browser extension, specifying metadata and permissions.

## Contributing

Contributions are welcome! Please feel free to submit a pull request.

## License

This project is for educational purposes only. Use at your own risk.

---

By using this script, you acknowledge that it is for educational purposes only and should not be used to cheat in the game.
17 changes: 17 additions & 0 deletions Games/Clash_Of_Clans/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clash of Clans GG Script</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Clash of Clans GG Script</h1>
<button id="modify-gems">Modify Gems</button>
<button id="modify-gold">Modify Gold</button>
<button id="modify-elixir">Modify Elixir</button>
<button id="exit">Exit</button>
<script src="script.js"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions Games/Clash_Of_Clans/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"manifest_version": 2,
"name": "Clash of Clans GG Script",
"version": "1.0",
"description": "A script to modify gems, gold, and elixir in Clash of Clans for educational purposes.",
"icons": {
"48": "icon.png"
},
"browser_action": {
"default_popup": "index.html",
"default_icon": "icon.png"
},
"permissions": [
"activeTab"
]
}

63 changes: 63 additions & 0 deletions Games/Clash_Of_Clans/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// Function to modify gems
function modifyGems() {
let gems = prompt("Enter your current amount of gems:");
gems = parseInt(gems);
if (isNaN(gems)) {
alert("Invalid number. Please try again.");
return;
}
let newGems = 999999;
alert(`Gems modified successfully to ${newGems}!`);
}

// Function to modify gold
function modifyGold() {
let gold = prompt("Enter your current amount of gold:");
gold = parseInt(gold);
if (isNaN(gold)) {
alert("Invalid number. Please try again.");
return;
}
let newGold = 999999;
alert(`Gold modified successfully to ${newGold}!`);
}

// Function to modify elixir
function modifyElixir() {
let elixir = prompt("Enter your current amount of elixir:");
elixir = parseInt(elixir);
if (isNaN(elixir)) {
alert("Invalid number. Please try again.");
return;
}
let newElixir = 999999;
alert(`Elixir modified successfully to ${newElixir}!`);
}

// Function to handle button clicks
function handleButtonClick(event) {
const buttonId = event.target.id;
switch (buttonId) {
case "modify-gems":
modifyGems();
break;
case "modify-gold":
modifyGold();
break;
case "modify-elixir":
modifyElixir();
break;
case "exit":
alert("Exiting script...");
break;
default:
break;
}
}

// Add event listeners to buttons
document.getElementById("modify-gems").addEventListener("click", handleButtonClick);
document.getElementById("modify-gold").addEventListener("click", handleButtonClick);
document.getElementById("modify-elixir").addEventListener("click", handleButtonClick);
document.getElementById("exit").addEventListener("click", handleButtonClick);

21 changes: 21 additions & 0 deletions Games/Clash_Of_Clans/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f0f0f0;
}

button {
margin: 10px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}

h1 {
margin-bottom: 20px;
}

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ This repository also provides one such platforms where contributers come over an
| [Subway_Surfers](https://github.com/kunjgit/GameZone/tree/main/Games/Subway_Surfers) |
| [Call_Of_Duty](https://github.com/kunjgit/GameZone/tree/main/Games/Call_Of_Duty) |
| [Minecraft](https://github.com/kunjgit/GameZone/tree/main/Games/Minecraft) |
| [Class_Of_Clans](https://github.com/kunjgit/GameZone/tree/main/Games/Class_Of_Clans) |

</center>

Expand Down
Binary file added assets/images/Clash_Of_Clans.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading