Skip to content

Commit

Permalink
v1.0.9.8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
andryou committed Dec 12, 2017
2 parents 273c52c + eecbf7d commit 4d6d9ab
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 2,344 deletions.
1 change: 1 addition & 0 deletions html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ <h4 id="sectionname">General Settings</h4>
<tr><td class="col-sm-4"><label for="useragentspoof" class="i18_useragentspoof">User-Agent Spoof:</label></td><td><select id="useragentspoof" class="savechange form-control">
<option value="off" class="i18_off">-Off-</option>
<option value="custom" class="i18_custom">Custom</option>
<option value="chrome63">Chrome 63.0.3239.84</option>
<option value="chrome62">Chrome 62.0.3202.94</option>
<option value="chrome55">Chrome 55.0.2883.87</option>
<option value="chrome50">Chrome 50.0.2661.102</option>
Expand Down
2 changes: 1 addition & 1 deletion html/updated.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</div>
<hr>
<div class="panel panel-success">
<div class="panel-heading"><h3>Updated to v<span id="versionno"></span>! (Tuesday, December 5, 2017)</h3></div>
<div class="panel-heading"><h3>Updated to v<span id="versionno"></span>! (Tuesday, December 12, 2017)</h3></div>
<div class="panel-body">
<p>In this release you will find the following updates:</p>
<ul>
Expand Down
4 changes: 2 additions & 2 deletions js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ function saveCheckbox(id) {
bkg.saveSetting(id, document.getElementById(id).checked);
}
function saveElement(id) {
bkg.saveSetting(id, $("#"+id).val().replace(/\|/g, ''));
bkg.saveSetting(id, $("#"+id).val().replace(/[~|]/g, ''));
}
function saveList(id) {
localStorage[id] = JSON.stringify($("#"+id).val().split("\n"));
Expand Down Expand Up @@ -499,7 +499,7 @@ function saveOptions() {
userAgents = userAgents.split("\n");
var sanitizedAgent;
for (var i=0, userAgentNum=userAgents.length; i<userAgentNum; i++) {
sanitizedAgent = $.trim(userAgents[i].replace(/\|/g, ''));
sanitizedAgent = $.trim(userAgents[i].replace(/[~|]/g, ''));
if (sanitizedAgent) validUserAgents.push(sanitizedAgent);
}
$("#useragent").val(validUserAgents.join("\n"));
Expand Down
4 changes: 3 additions & 1 deletion js/scriptsafe.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ function genUserAgent(force) {
else if (localStorage['useragentspoof_os'] == 'openbsd64') os = 'X11; U; OpenBSD i686';
else if (localStorage['useragentspoof_os'] == 'openbsd32') os = 'X11; U; OpenBSD i686';
else if (localStorage['useragentspoof_os'] == 'chromeos') os = 'X11; U; CrOS i686 0.13.507';
if (localStorage['useragentspoof'] == 'chrome62')
if (localStorage['useragentspoof'] == 'chrome63')
userAgent = 'Mozilla/5.0 ('+os+') AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36';
else if (localStorage['useragentspoof'] == 'chrome62')
userAgent = 'Mozilla/5.0 ('+os+') AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36';
else if (localStorage['useragentspoof'] == 'chrome55')
userAgent = 'Mozilla/5.0 ('+os+') AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36';
Expand Down
Loading

0 comments on commit 4d6d9ab

Please sign in to comment.