Skip to content

Commit 4d6d9ab

Browse files
committed
v1.0.9.8 release
2 parents 273c52c + eecbf7d commit 4d6d9ab

File tree

5 files changed

+60
-2344
lines changed

5 files changed

+60
-2344
lines changed

html/options.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ <h4 id="sectionname">General Settings</h4>
172172
<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">
173173
<option value="off" class="i18_off">-Off-</option>
174174
<option value="custom" class="i18_custom">Custom</option>
175+
<option value="chrome63">Chrome 63.0.3239.84</option>
175176
<option value="chrome62">Chrome 62.0.3202.94</option>
176177
<option value="chrome55">Chrome 55.0.2883.87</option>
177178
<option value="chrome50">Chrome 50.0.2661.102</option>

html/updated.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</div>
3232
<hr>
3333
<div class="panel panel-success">
34-
<div class="panel-heading"><h3>Updated to v<span id="versionno"></span>! (Tuesday, December 5, 2017)</h3></div>
34+
<div class="panel-heading"><h3>Updated to v<span id="versionno"></span>! (Tuesday, December 12, 2017)</h3></div>
3535
<div class="panel-body">
3636
<p>In this release you will find the following updates:</p>
3737
<ul>

js/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ function saveCheckbox(id) {
334334
bkg.saveSetting(id, document.getElementById(id).checked);
335335
}
336336
function saveElement(id) {
337-
bkg.saveSetting(id, $("#"+id).val().replace(/\|/g, ''));
337+
bkg.saveSetting(id, $("#"+id).val().replace(/[~|]/g, ''));
338338
}
339339
function saveList(id) {
340340
localStorage[id] = JSON.stringify($("#"+id).val().split("\n"));
@@ -499,7 +499,7 @@ function saveOptions() {
499499
userAgents = userAgents.split("\n");
500500
var sanitizedAgent;
501501
for (var i=0, userAgentNum=userAgents.length; i<userAgentNum; i++) {
502-
sanitizedAgent = $.trim(userAgents[i].replace(/\|/g, ''));
502+
sanitizedAgent = $.trim(userAgents[i].replace(/[~|]/g, ''));
503503
if (sanitizedAgent) validUserAgents.push(sanitizedAgent);
504504
}
505505
$("#useragent").val(validUserAgents.join("\n"));

js/scriptsafe.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ function genUserAgent(force) {
159159
else if (localStorage['useragentspoof_os'] == 'openbsd64') os = 'X11; U; OpenBSD i686';
160160
else if (localStorage['useragentspoof_os'] == 'openbsd32') os = 'X11; U; OpenBSD i686';
161161
else if (localStorage['useragentspoof_os'] == 'chromeos') os = 'X11; U; CrOS i686 0.13.507';
162-
if (localStorage['useragentspoof'] == 'chrome62')
162+
if (localStorage['useragentspoof'] == 'chrome63')
163+
userAgent = 'Mozilla/5.0 ('+os+') AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36';
164+
else if (localStorage['useragentspoof'] == 'chrome62')
163165
userAgent = 'Mozilla/5.0 ('+os+') AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36';
164166
else if (localStorage['useragentspoof'] == 'chrome55')
165167
userAgent = 'Mozilla/5.0 ('+os+') AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36';

0 commit comments

Comments
 (0)