Skip to content

Commit

Permalink
1.2
Browse files Browse the repository at this point in the history
Added a options page with case selector
  • Loading branch information
Shkyyl committed Apr 22, 2023
1 parent 4a45fe4 commit a6580ec
Show file tree
Hide file tree
Showing 22 changed files with 429 additions and 28 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# KeyChamp
Extension for joining free case battle on key-drop automatically.
KeyChamp is a extension which automatically joins the free case battle for you.The extension help you reach a case battle faster, no more wasting your time trying to join free case battle and getting mad.
KeyChamp is a extension which automatically joins the free case battle for you.The extension help you reach a case battle faster, no more wasting your time trying to join free case battle and getting mad.
Use my code 'tutek' on [Keydrop](https://key-drop.com/?code=tutek)
## How to install extension
- Download [extension.zip](https://github.com/Shkyyl/KeyChamp/releases/)
- Extract
Expand All @@ -12,16 +13,20 @@
- Click on extension
- Click Join Case Battle and wait
## How to change cases you want to join
1. Go to extension folder
2. Open popup.js with code or text editor
3. On line 3 there is ``const TARGETS = [...];`` if you want to add some case just add comma and then write your wanted case in single quotation marks like this ``'MILSPEC'``
`` ⚠️ Use uppercase for cases names``
1. Click on extension
2. Click settings icon
3. Select cases you want
## How to increase efficiency of extension
1. Open extension folder
2. Open popup.js with text or code editor
3. Change the number of cases script catch in the line 10 and 11 after splice function
``... splice(0, here --> 3))`` by default it's 3
## TODO
- everything
- full automatic

## Support/Contact
[Leave a ⭐ for more updates](https://github.com/Shkyyl/KeyChamp/stargazers)
If you want to support me use my code 'tutek' on [Keydrop](https://key-drop.com/?code=tutek) or in DM ⬇️⬇️⬇️
If you want to support me text me in DM ⬇️⬇️⬇️
Feel free to contact me, this are my socials:
[Twitter](https://twitter.com/ShkyylDev)
[Reddit](https://www.reddit.com/user/Unique-Evening-3255)
Binary file added extension/img/cases/SERENITY.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/beast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/ceres.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/cobra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/diablo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/energy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/iceblast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/joy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/milspec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/progress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/rocketracoon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/tech.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/teeth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension/img/cases/toxic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "KeyChamp",
"version": "1.1",
"version": "1.2",
"manifest_version": 3,
"author": "Shkyyl",
"description": "This extension automatically joins the free case battle",
"permissions": [
"scripting",
"activeTab",
"tabs"
"tabs",
"storage"
],
"host_permissions": [
"*://key-drop.com/*"
Expand All @@ -19,6 +21,11 @@
"16": "img/16.png",
"48": "img/48.png",
"128": "img/128.png"
},
"options_ui":
{
"open_in_tab": true,
"page": "options.html"
}


Expand Down
129 changes: 129 additions & 0 deletions extension/options.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Settings - KeyChamp</title>
<script src="settings.js"></script>
<link rel="stylesheet" href="optionstyle.css">
</head>
<body>
<div class="page">
<div class="sidebar">
<a class="title">KeyChamp</a>
<img src="img/128.png" class="logo">
<div class="nav">
<a>General</a>
</div>
<div class="madeby">
<a>Made by Shkyyl</a><br>
<a href="https://github.com/Shkyyl" target="_blank" class="link">Github</a>
</div>
</div>
<div class="inner">
<div class="content">
<h1>Cases List</h1>
<div class="cases" id="case-list">
<label for="milspec">
<div class="setting s-disabled" data-case="MILSPEC">
<img src="img/cases/milspec.png"class="case-img">
<a>Milspec</a>
<input type="checkbox" name="milspec" id="milspec" class="case-checkbox">
</div>
</label>
<label for="beast">
<div class="setting s-disabled" data-case="BEAST">
<img src="img/cases/beast.png"class="case-img">
<a>Beast</a>
<input type="checkbox" name="beast" id="beast" class="case-checkbox">
</div>
</label>
<label for="diablo">
<div class="setting s-disabled" data-case="DIABLO">
<img src="img/cases/diablo.png"class="case-img">
<a>Diablo</a>
<input type="checkbox" name="diablo" id="diablo" class="case-checkbox">
</div>
</label>
<label for="energy">
<div class="setting s-disabled" data-case="ENERGY">
<img src="img/cases/energy.png"class="case-img">
<a>Energy</a>
<input type="checkbox" name="energy" id="energy" class="case-checkbox">
</div>
</label>
<label for="iceblast">
<div class="setting s-disabled" data-case="ICE BLAST">
<img src="img/cases/iceblast.png"class="case-img">
<a>Ice Blast</a>
<input type="checkbox" name="iceblast" id="iceblast" class="case-checkbox">
</div>
</label>
<label for="rocketracoon" >
<div class="setting s-disabled" data-case="ROCKET RACOON">
<img src="img/cases/rocketracoon.png"class="case-img">
<a>Rocket Racoon</a>
<input type="checkbox" name="rocketracoon" id="rocketracoon" class="case-checkbox">
</div>
</label>
<label for="tech">
<div class="setting s-disabled" data-case="TECH">
<img src="img/cases/tech.png"class="case-img">
<a>Tech</a>
<input type="checkbox" name="tech" id="tech" class="case-checkbox">
</div>
</label>
<label for="teeth">
<div class="setting s-disabled" data-case="TEETH">
<img src="img/cases/teeth.png"class="case-img">
<a>Teeth</a>
<input type="checkbox" name="teeth" id="teeth" class="case-checkbox">
</div>
</label>
<label for="toxic">
<div class="setting s-disabled" data-case="TOXIC">
<img src="img/cases/toxic.png"class="case-img">
<a>Toxic</a>
<input type="checkbox" name="toxic" id="toxic" class="case-checkbox">
</div>
</label>
<label for="progress">
<div class="setting s-disabled" data-case="PROGRESS">
<img src="img/cases/progress.png"class="case-img">
<a>Progress</a>
<input type="checkbox" name="progress" id="progress" class="case-checkbox">
</div>
</label>
<label for="serenity" >
<div class="setting s-disabled" data-case="SERENITY">
<img src="img/cases/SERENITY.png"class="case-img">
<a>Serenity</a>
<input type="checkbox" name="serenity" id="serenity" class="case-checkbox">
</div>
</label>
<label for="joy">
<div class="setting s-disabled" data-case="JOY">
<img src="img/cases/joy.png"class="case-img">
<a>Joy</a>
<input type="checkbox" name="joy" id="joy" class="case-checkbox">
</div>
</label>
<label for="ceres">
<div class="setting s-disabled" data-case="CERES">
<img src="img/cases/ceres.png"class="case-img">
<a>Ceres</a>
<input type="checkbox" name="ceres" id="ceres" class="case-checkbox">
</div>
</label>
<label for="cobra">
<div class="setting s-disabled" data-case="COBRA">
<img src="img/cases/cobra.png"class="case-img">
<a>Cobra</a>
<input type="checkbox" name="cobra" id="cobra" class="case-checkbox">
</div>
</label>
</div>
</div>
</div>
</div>
</body>
</html>
139 changes: 139 additions & 0 deletions extension/optionstyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
html{
height: 100%;
}
*{
font-family:sans-serif;
font-weight: bold;
box-sizing: border-box;
padding: 0;
margin: 0;
color: white;
}
body{
background-color: #212121;
overflow: hidden;
height: 100%;
}
.inner{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: start;
}
.sidebar{

display: flex;
flex-direction: column;
align-items: center;
padding: 48px 0 48px 0;
height: 100%;
width: 240px;
background-color: #1E1E1E;
color: #FFFFFF;
gap: 10px;
}
.title{
font-size: 32px;
}
.icon{
display: flex;
justify-content: center;
align-items: center;
width: 85px;
height: 85px;
}
.page{
display: flex;
flex: 0 0 auto;
height: 100%;
overflow: hidden;
}
.logo{
position: relative;
width: 64px;
height: 64px;
margin: 0px auto;
}
.nav{
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 15px;
padding: 24px 0;
width: 100%;
flex-grow: 1;
}
.nav a{
width: 100%;
font-size: 24px;
padding: 15px 38px;
background-color: #4d4d4d;
}
.madeby{
margin-bottom: auto;
text-align: center;
}
.madeby a{
text-decoration: none;
}
.link{
color: #0fff00;
}
.hero{
width: 100%;
height: 100%;
}
.content{
position: relative;
padding: 50px 18px;
overflow: hidden;
height: 100%;
flex-wrap: wrap;
}
.cases{
margin-top: 50px;
display: flex;
flex-direction: row;
gap: 20px;
flex-wrap: wrap;
}
label{
text-align: center;
cursor: pointer;
}
label img{
border-radius: 15px;
pointer-events: none;
-webkit-user-drag: none;
-webkit-user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
label div a{
font-size: 28px;
display: block;
border-radius: 15px;
pointer-events: none;
-webkit-user-drag: none;
-webkit-user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;

}
.settings-cb{
display: flex;
}
.case-checkbox {
display: none;
}
.setting.s-disabled{
opacity: 0.25;
}
.settings.s-active{
opacity: 1;
}
13 changes: 12 additions & 1 deletion extension/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
<script src="popup.js"></script>
</head>
<body>
<button class="btn" id="join-button"><span>Join Case Battle</span></button>
<div class="main">
<h1>KeyChamp</h1>
<button class="btn-options" id="options-button"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-settings"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg></button>
</div>
<div class="holder">
<button class="btn" id="join-button"><span>Join Case Battle</span></button>
</div>
<div class="madeby">
<div>
<p>Use code tutek</p>
</div>
</div>
</body>
</html>
Loading

0 comments on commit a6580ec

Please sign in to comment.