Skip to content

Commit eecbf7d

Browse files
committed
v1.0.9.3 release
1 parent eea9eb1 commit eecbf7d

File tree

6 files changed

+64
-2348
lines changed

6 files changed

+64
-2348
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/popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</head>
1111
<body>
1212
<div id="container">
13-
<div id="header"><a href="javascript:;" id="pop_webstore">ScriptSafe v<span id="version"></span> BETA</a><div><a href="javascript:;" id="pop_options">Options</a> | <a href="javascript:;" id="pop_log">Log</a> | <span class="box box3" id="pop_refresh"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></span> | <span class="box box4 closebtn" id="pop_close"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></span></div></div>
13+
<div id="header"><a href="javascript:;" id="pop_webstore">ScriptSafe v<span id="version"></span></a><div><a href="javascript:;" id="pop_options">Options</a> | <a href="javascript:;" id="pop_log">Log</a> | <span class="box box3" id="pop_refresh"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></span> | <span class="box box4 closebtn" id="pop_close"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></span></div></div>
1414
<table border="0" cellpadding="0" cellspacing="0">
1515
<tr><th id="currentdomain"></th></tr>
1616
<tr><td id="parent"></td></tr>

html/updated.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
</div>
3232
<hr>
3333
<div class="panel panel-success">
34-
<div class="panel-heading"><h3>Updated to v<span id="versionno"></span>! (Friday, December 8, 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
<div class="alert alert-warning"><p><strong>ScriptSafe is on <a href="https://chrome.google.com/webstore/detail/scriptsafe/oiigbmnaadbkfbmpbfijlflahbdbdgdf" target="_blank">Chrome</a>, <a href="https://addons.opera.com/en/extensions/details/scriptsafe-2/" target="_blank">Opera</a>, and now: <a href="https://addons.mozilla.org/firefox/addon/script-safe/" target="_blank">Firefox</a>!</strong></p><p>My sincere thanks to all testers, translators, and users for your support over the past 6 years.</p></div>
3737
<p>In this release you will find the following updates:</p>
3838
<ul>
39-
<li><strong>v1.0.9.3 BETA:</strong><ul>
40-
<li>Added ability to temporarily disable ScriptSafe via the panel</li>
39+
<li><strong>v1.0.9.3:</strong><ul>
40+
<li>Added ability to temporarily disable ScriptSafe for a set time via the panel (useful if buying something online)</li>
4141
<li>Added ability to selectively allow Browser Plugins Enumeration</li>
4242
<li>Added ability to randomize user agents: on every request or every x minutes</li>
4343
<li>Minor panel tweaks</li>

js/options.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ function saveCheckbox(id) {
329329
localStorage[id] = document.getElementById(id).checked;
330330
}
331331
function saveElement(id) {
332-
localStorage[id] = $("#"+id).val().replace(/\|/g, '');
332+
localStorage[id] = $("#"+id).val().replace(/[~|]/g, '');
333333
}
334334
function saveList(id) {
335335
localStorage[id] = JSON.stringify($("#"+id).val().split("\n"));
336336
}
337337
function loadOptions() {
338-
$("#title").html("ScriptSafe v"+version+" BETA");
338+
$("#title").html("ScriptSafe v"+version);
339339
loadCheckbox("enable");
340340
loadCheckbox("syncenable");
341341
if (!$("#syncenable").prop('checked')) $("#syncbuttons").hide();
@@ -494,7 +494,7 @@ function saveOptions() {
494494
userAgents = userAgents.split("\n");
495495
var sanitizedAgent;
496496
for (var i=0, userAgentNum=userAgents.length; i<userAgentNum; i++) {
497-
sanitizedAgent = $.trim(userAgents[i].replace(/\|/g, ''));
497+
sanitizedAgent = $.trim(userAgents[i].replace(/[~|]/g, ''));
498498
if (sanitizedAgent) validUserAgents.push(sanitizedAgent);
499499
}
500500
$("#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)