Skip to content

Commit

Permalink
feat: select fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Feb 21, 2024
1 parent 13b5cc2 commit 96b6f9c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
6 changes: 6 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ img[alt="loader"] {
.minWidth input:last-child {
border-radius: 0 3px 3px 0;
}
.minWidth.firstlg input {
width: 66.66%;
}
.minWidth.firstlg select {
width: 33.33%;
}
.xsWidth {
float: right;
width: 100%;
Expand Down
3 changes: 3 additions & 0 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ function generateJson() {
let grpcMode = $('#grpcMode').val();
let serviceName = $('#serviceName').val();
let cleanIp = $('#cleanIp').val();
let fingerprint = $('#fingerprint').val();
if ( cleanIp === '' ) {
cleanIp = 'zula.ir';
}
Expand Down Expand Up @@ -385,6 +386,7 @@ function generateJson() {
}
data.outbounds[0].streamSettings.tlsSettings.allowInsecure = (insecure ? true : false);
data.outbounds[0].streamSettings.tlsSettings.serverName = sni;
data.outbounds[0].streamSettings.tlsSettings.fingerprint = fingerprint;
data.outbounds[1].settings.fragment.packets = packets;
data.outbounds[1].settings.fragment.length = length;
data.outbounds[1].settings.fragment.interval = interval;
Expand Down Expand Up @@ -431,6 +433,7 @@ function generateJson() {
'&serviceName*IRCF*'+serviceName+
'&cleanIp*IRCF*'+cleanIp+
'&appName*IRCF*'+appName+
'&fingerprint*IRCF*'+fingerprint+
'&directRules*IRCF*'+direct
]);
})
Expand Down
25 changes: 19 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<link href="./assets/css/bootstrap.min.css" rel="stylesheet" />
<link href="./assets/css/bootstrap-rtl.min.css" rel="stylesheet" />
<link href="./assets/css/vazir.css" rel="stylesheet" />
<link href="./assets/css/style.css?v1.12.3" rel="stylesheet" />
<link href="./assets/css/style.css?v1.13" rel="stylesheet" />
<link href="./assets/css/lang.css?v1.11" rel="stylesheet" />
<title>IRCF | ابزار فرگمنت</title>
<meta name="description" content="توسط ابزار فرگمنت می‌تونین دامنه‌های مرده‌تون رو مجدد زنده کنید!" />
Expand Down Expand Up @@ -87,7 +87,7 @@ <h1>اینترنت برای همه؛ یا هیچ‌کس!</h1>
</div>
<div class="orClass"><small data-i18n="config_form_ortext"></small></div>
<p data-i18n="config_form_label"></p>
<div class="xsWidth withSmallCenter">
<div class="xsWidth">
<select class="form-control dirLeft" id="protocol">
<option value="vless">VLESS</option>
<option value="vmess">VMESS</option>
Expand All @@ -97,13 +97,26 @@ <h1>اینترنت برای همه؛ یا هیچ‌کس!</h1>
<option value="ws">WS</option>
<option value="grpc">GRPC</option>
</select>
<input class="form-control dirLeft" data-i18n-label="config_form_uuid" id="uuid" />
<input class="form-control dirLeft" data-i18n-label="config_form_port" id="port" type="number" min="0" />
<input class="form-control dirLeft" data-i18n-label="config_form_cleanip" id="cleanIp" data-toggle="tooltip" data-i18n-title="config_form_cleanip_tooltip" />
</div>
<div class="xsWidth">
<input class="form-control dirLeft" data-i18n-label="config_form_cleanip" id="cleanIp" data-toggle="tooltip" data-i18n-title="config_form_cleanip_tooltip" />
<input class="form-control dirLeft" data-i18n-label="config_form_sni" id="sni" />
<input class="form-control dirLeft" data-i18n-label="config_form_path" id="path" />
<input class="form-control dirLeft" data-i18n-label="config_form_port" id="port" type="number" min="0" />
</div>
<div class="minWidth firstlg">
<input class="form-control dirLeft" data-i18n-label="config_form_uuid" id="uuid" />
<select class="form-control dirLeft" id="fingerprint">
<option value="none"></option>
<option value="chrome" selected>Chrome</option>
<option value="firefox">Firefox</option>
<option value="safari">Safari</option>
<option value="edge">Edge</option>
<option value="android">Android</option>
<option value="ios">IOS</option>
<option value="random">Random</option>
<option value="randomized">Randomized</option>
</select>
</div>
<div class="minWidth none" id="grpcOnly">
<select class="form-control dirLeft" id="grpcMode">
Expand Down Expand Up @@ -243,7 +256,7 @@ <h4 class="modal-title dirLeft">QRCode</h4>
<script src="./assets/js/jquery.min.js"></script>
<script src="./assets/js/bootstrap.min.js"></script>
<script src="./assets/js/lang.js?v1.12.3"></script>
<script src="./assets/js/script.js?v1.12.6"></script>
<script src="./assets/js/script.js?v1.13"></script>
</footer>
</div>
</div>
Expand Down

0 comments on commit 96b6f9c

Please sign in to comment.