forked from Poheart/FACEIT-HELPER
-
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.
[Prototype] Player Blacklist for Auto-accept and Chrome option page
Still WIP but player blacklist is functional
- Loading branch information
Showing
10 changed files
with
284 additions
and
3 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,67 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | ||
<title>FACEIT HELPER</title> | ||
<!-- Bootstrap core CSS --> | ||
<link href="../lib/tether.min.css" rel="stylesheet"> | ||
<link href="../lib/bootstrap.min.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<style> | ||
body { | ||
padding-top: 5rem; | ||
background:#f5f5f5; | ||
} | ||
.headtitle { | ||
padding: 10rem 1.5rem; | ||
text-align: center; | ||
} | ||
.descbox { | ||
background-color: #eceeef; | ||
border-radius: 10px; | ||
padding: 10%; | ||
} | ||
</style> | ||
<nav class="navbar navbar-fixed-top navbar-dark bg-inverse"> | ||
<a class="navbar-brand" href="#"> | ||
<img src="icons/icon128.png" width="30" height="30" class="d-inline-block align-top rounded" alt=""> | ||
FACEIT HELPER </a> | ||
<ul class="nav navbar-nav"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="options.html?">Main</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" target="_blank" href="https://github.com/Poheart/FACEIT-HELPER">Github</a> | ||
</li> | ||
<li class="nav-item active"> | ||
<a class="nav-link" href="contact.html">Contact</a> | ||
</li> | ||
</ul> | ||
|
||
</nav> | ||
|
||
<div class="container-fluid"> | ||
<div class="headtitle"> | ||
<h1>FACEIT HELPER</h1> | ||
<p class="lead">Made with ♥ by Poheart<br> | ||
<a href="http://steamcommunity.com/id/CrazyGamer2011/" class="btn btn-outline-primary">Steam </a> | ||
<a href="https://www.poheart.net" class="btn btn-outline-warning">Web</a> | ||
<a href="https://github.com/Poheart/FACEIT-HELPER" class="btn btn-outline-danger">Github</a> | ||
<a href="https://chrome.google.com/webstore/detail/faceit-helper/bjdhcabjnhhifipbnopnfpfidkafanjf" class="btn btn-outline-success">Chrome Store</a> | ||
<hr>Thanks to the following contributors in GitHub made it possible! <br> | ||
CullenIO, nuller1joe</p> | ||
</div> | ||
|
||
|
||
</div> | ||
<!-- /.container --> | ||
<script src="../lib/jquery.min.js"></script> | ||
<script src="../lib/tether.min.js"></script> | ||
<script src="../lib/bootstrap.min.js"></script> | ||
<script src="../js/option.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
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
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,38 @@ | ||
var manifest = chrome.runtime.getManifest(); | ||
var storage = chrome.storage.sync; | ||
$(".navbar-brand").append(manifest.version); | ||
|
||
$("#blacklist_box").change(function() { | ||
if(this.checked) { | ||
$("#blacklist_textarea").prop('disabled',false); | ||
} else { | ||
$("#blacklist_textarea").prop('disabled',true); | ||
} | ||
}); | ||
|
||
function save_options() { | ||
storage.set({ | ||
blacklist_enable: $('#blacklist_box').is(':checked'), | ||
blacklist_textarea: $('#blacklist_textarea').val() | ||
}, function() { | ||
console.log("Setting saved!"); | ||
$('#settingSaved').show(); | ||
setTimeout(function () { | ||
$('#settingSaved').hide(); | ||
}, 7500); | ||
}); | ||
} | ||
|
||
function restore_options() { | ||
storage.get({ | ||
blacklist_enable: false, | ||
blacklist_textarea: '' | ||
}, function(item) { | ||
$('#blacklist_box').prop('checked', item.blacklist_enable); | ||
$('#blacklist_textarea').val(item.blacklist_textarea); | ||
$("#blacklist_textarea").prop('disabled',!item.blacklist_enable); | ||
document.dispatchEvent(new CustomEvent('FH_getChromeOptions')); | ||
}); | ||
} | ||
document.addEventListener('DOMContentLoaded', restore_options); | ||
$("#save-options").click(save_options); |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,122 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | ||
<title>FACEIT HELPER</title> | ||
<!-- Bootstrap core CSS --> | ||
<link href="lib/tether.min.css" rel="stylesheet"> | ||
<link href="lib/bootstrap.min.css" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
<style> | ||
body { | ||
padding-top: 5rem; | ||
background: #f5f5f5; | ||
} | ||
|
||
.starter-template { | ||
padding: 3rem 1.5rem; | ||
text-align: center; | ||
} | ||
|
||
.descbox { | ||
background-color: #eceeef; | ||
border-radius: 10px; | ||
padding: 10%; | ||
} | ||
</style> | ||
<nav class="navbar navbar-fixed-top navbar-dark bg-inverse"> | ||
<a class="navbar-brand" href="#"> | ||
<img src="icons/icon128.png" width="30" height="30" class="d-inline-block align-top rounded" alt=""> FACEIT HELPER </a> | ||
<ul class="nav navbar-nav"> | ||
<li class="nav-item active"> | ||
<a class="nav-link" href="options.html?">Main</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" target="_blank" href="https://github.com/Poheart/FACEIT-HELPER">Github</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="contact.html">Contact</a> | ||
</li> | ||
</ul> | ||
<span class="float-xs-right"> | ||
<a class="btn btn-danger" href="#" role="button" id="save-options">Save Configuration</a> | ||
</span> | ||
</nav> | ||
|
||
<div class="container-fluid"> | ||
<div class="alert alert-success" role="alert" id="settingSaved" style="display:none"> | ||
<strong>Setting saved!</strong> Refresh all active FACEIT.com pages for setting to apply. | ||
</div> | ||
<div class="alert alert-info" role="alert">This option page is design for advanced configuration for FACEIT HELPER | ||
<br> | ||
<strong>Basic features toggle ON/OFF are available in the navigation bar on FACEIT.com</strong> | ||
</div> | ||
<!-- Head section --> | ||
<div class="col-md-2"> | ||
<h5>General Settings</h5> | ||
</div> | ||
<div class="col-md-7"> | ||
<fieldset class="form-group"> | ||
<legend>Auto-veto enable on</legend> | ||
<div class="form-check"> | ||
<label class="form-check-label"> | ||
<input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios1" value="option1" checked> MAPS ONLY | ||
</label> | ||
</div> | ||
<div class="form-check disabled"> | ||
<label class="form-check-label"> | ||
<input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios2" value="option2" disabled> SERVERS ONLY | ||
</label> | ||
</div> | ||
<div class="form-check disabled"> | ||
<label class="form-check-label"> | ||
<input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios3" value="option3" disabled> BOTH SERVERS + MAPS | ||
|
||
</label> | ||
</div> | ||
</fieldset> | ||
</div> | ||
<div class="col-md-3"> | ||
<div class="container descbox"> | ||
<p> This is a placeholder option and will be implemented soon.</p> | ||
</div> | ||
</div> | ||
<!-- Section seperator --> | ||
<hr class="col-md-12"> | ||
<!-- Next section --> | ||
<div class="col-md-2"> | ||
<h5>Blacklisted Players</h5> | ||
</div> | ||
|
||
<div class="col-md-7"> | ||
<div class="form-check"> | ||
<label class="form-check-label"> | ||
<input class="form-check-input" type="checkbox" id="blacklist_box"> Enable Blacklist | ||
</label> | ||
</div> | ||
<div class="form-group"> | ||
<textarea class="form-control" rows="5" id="blacklist_textarea" placeholder="Player FACEIT username(seperate each user line by line)" disabled></textarea> | ||
</div> | ||
</div> | ||
<div class="col-md-3"> | ||
<div class="container descbox"> | ||
<p> Configurate Auto-accept feature to not to accept the match whenever the player(s) in the list are on your matches</p> | ||
<p class="text-danger"> This feature requires both <strong>Show Matched Player</strong> and <strong>Auto-Accept</strong> Enabled!</p> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<!-- /.container --> | ||
<script src="lib/jquery.min.js"></script> | ||
<script src="lib/tether.min.js"></script> | ||
<script src="lib/bootstrap.min.js"></script> | ||
<script src="js/option.js"></script> | ||
</body> | ||
|
||
</html> |