forked from Sulagna-Dutta-Roy/GGExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Sulagna-Dutta-Roy#2146 from arunimaChintu/Temple
Added Temple Run Game
- Loading branch information
Showing
4 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>Temple Run GG Script</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<h1>Temple Run GG Script</h1> | ||
<button id="modify-coins">Modify Coins</button> | ||
<button id="modify-gems">Modify Gems</button> | ||
<button id="unlock-characters">Unlock All Characters</button> | ||
<button id="exit">Exit</button> | ||
<script src="script.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"manifest_version": 2, | ||
"name": "Temple Run GG Script", | ||
"version": "1.0", | ||
"description": "A script to modify coins, gems, and unlock characters in Temple Run for educational purposes.", | ||
"icons": { | ||
"48": "icon.png" | ||
}, | ||
"browser_action": { | ||
"default_popup": "index.html", | ||
"default_icon": "icon.png" | ||
}, | ||
"permissions": [ | ||
"activeTab" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Function to modify coins | ||
function modifyCoins() { | ||
let coins = prompt("Enter your current amount of coins:"); | ||
coins = parseInt(coins); | ||
if (isNaN(coins)) { | ||
alert("Invalid number. Please try again."); | ||
return; | ||
} | ||
let newCoins = 999999; | ||
alert(`Coins modified successfully to ${newCoins}!`); | ||
} | ||
|
||
// 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 = 9999; | ||
alert(`Gems modified successfully to ${newGems}!`); | ||
} | ||
|
||
// Function to unlock all characters | ||
function unlockAllCharacters() { | ||
alert("All characters unlocked!"); | ||
} | ||
|
||
// Function to handle button clicks | ||
function handleButtonClick(event) { | ||
const buttonId = event.target.id; | ||
switch (buttonId) { | ||
case "modify-coins": | ||
modifyCoins(); | ||
break; | ||
case "modify-gems": | ||
modifyGems(); | ||
break; | ||
case "unlock-characters": | ||
unlockAllCharacters(); | ||
break; | ||
case "exit": | ||
alert("Exiting script..."); | ||
break; | ||
default: | ||
break; | ||
} | ||
} | ||
|
||
// Add event listeners to buttons | ||
document.getElementById("modify-coins").addEventListener("click", handleButtonClick); | ||
document.getElementById("modify-gems").addEventListener("click", handleButtonClick); | ||
document.getElementById("unlock-characters").addEventListener("click", handleButtonClick); | ||
document.getElementById("exit").addEventListener("click", handleButtonClick); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|