Skip to content

Commit

Permalink
v1.0.9.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
andryou committed Dec 12, 2017
1 parent eea9eb1 commit eecbf7d
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 2,348 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/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</head>
<body>
<div id="container">
<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>
<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>
<table border="0" cellpadding="0" cellspacing="0">
<tr><th id="currentdomain"></th></tr>
<tr><td id="parent"></td></tr>
Expand Down
6 changes: 3 additions & 3 deletions html/updated.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
</div>
<hr>
<div class="panel panel-success">
<div class="panel-heading"><h3>Updated to v<span id="versionno"></span>! (Friday, December 8, 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">
<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>
<p>In this release you will find the following updates:</p>
<ul>
<li><strong>v1.0.9.3 BETA:</strong><ul>
<li>Added ability to temporarily disable ScriptSafe via the panel</li>
<li><strong>v1.0.9.3:</strong><ul>
<li>Added ability to temporarily disable ScriptSafe for a set time via the panel (useful if buying something online)</li>
<li>Added ability to selectively allow Browser Plugins Enumeration</li>
<li>Added ability to randomize user agents: on every request or every x minutes</li>
<li>Minor panel tweaks</li>
Expand Down
6 changes: 3 additions & 3 deletions js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,13 @@ function saveCheckbox(id) {
localStorage[id] = document.getElementById(id).checked;
}
function saveElement(id) {
localStorage[id] = $("#"+id).val().replace(/\|/g, '');
localStorage[id] = $("#"+id).val().replace(/[~|]/g, '');
}
function saveList(id) {
localStorage[id] = JSON.stringify($("#"+id).val().split("\n"));
}
function loadOptions() {
$("#title").html("ScriptSafe v"+version+" BETA");
$("#title").html("ScriptSafe v"+version);
loadCheckbox("enable");
loadCheckbox("syncenable");
if (!$("#syncenable").prop('checked')) $("#syncbuttons").hide();
Expand Down Expand Up @@ -494,7 +494,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 eecbf7d

Please sign in to comment.