Skip to content

Commit

Permalink
Prepare for v1.0.7.12 release
Browse files Browse the repository at this point in the history
  • Loading branch information
andryou committed Jun 14, 2016
1 parent ffe6196 commit b507926
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
<tr><td class="rowtitle"><label for="referrer">Block Click-Through Referrer</label>:</td><td><select id="referrer" class="savechange">
<option value="false">Disabled</option>
<option value="true">Only on Unwhitelisted Domains</option>
<option value="everywhere">Everywhere</option>
</select><br /><i>(Default: Only on Unwhitelisted Domains; blocks referrer information when clicking on third-party links (note: setting this to "Everywhere" may cause issues (e.g. thumbnails in Tweetdeck))</i></td></tr>
<option value="alldomains">On All Domains</option>
</select><br /><i>(Default: Only on Unwhitelisted Domains; blocks referrer information when clicking on third-party links (note: setting this to "All Domains" may cause issues (e.g. thumbnails in Tweetdeck))</i></td></tr>
<tr><td class="rowtitle"><label for="useragentspoof">User-Agent Spoof</label>:</td><td><select id="useragentspoof" class="savechange">
<option value="off">-Off-</option>
<option value="chrome50">Chrome 50.0.2661.102</option>
Expand Down
12 changes: 8 additions & 4 deletions html/updated.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@
<div id="message"></div>
<div id="main">
<div id="header"><span id="title">ScriptSafe</span><br /><br />
<h1>Updated to v<span id="versionno"></span>! (__, June __, 2016)</h1>
<h1>Updated to v<span id="versionno"></span>! (Tuesday, June 14, 2016)</h1>
<br />
<hr>
<div style="text-align: left; line-height: 18px; font-size: 13px;"><br />
I am pushing this update out because it fixes some important issues with other extensions, as well as blocking behaviour if using "Allow" as "Default Mode".<br /><br />
Starting from v1.0.7.11, you will experience consistently fast page load times and the update notifications that many of you found to be annoying have been completely removed.<br /><br />
Over the past two weeks, significant updates have been made to ScriptSafe to bring more granular control, protection against WebRTC leaks, significant performance improvements, and most importantly, stronger security.<br /><br />
With this release you can expect stability and some peace and quiet, as I don't intend on pushing out another update unless absolutely required.<br /><br />
In this version you will find the following updates:
<ul>
<li><b>v1.0.7.12-DEV:</b><ul>
<li><b>v1.0.7.12:</b><ul>
<li>Updated options for "Block Click-Through Referrer", whichs blocks referrer information when clicking on third-party links:<ul>
<li>Disabled - feature is disabled</li>
<li>Only on Unwhitelisted Domains - only applies to pages on unwhitelisted domains</li>
<li>Everywhere - applies to third-party links on every domain, even if whitelisted</li>
<li><b>Default</b>: "Only on Unwhitelisted Domains" (as setting it to "Everywhere" may cause issues (e.g. thumbnails in Tweetdeck))</li>
<li>All Domains - applies to third-party links on every domain, even if whitelisted</li>
<li><b>Default</b>: "Only on Unwhitelisted Domains" (as setting it to "All Domains" may cause issues (e.g. thumbnails in Tweetdeck))</li>
</ul></li>
<li>Corrected blocking behaviour if using "Allow" as "Default Mode"</li>
<li>Improve compatibility with other Chrome extensions</li>
Expand Down
11 changes: 6 additions & 5 deletions js/ss.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function block(event) {
var elementStatusCheck;
var domainCheckStatus;
var absoluteUrl = relativeToAbsoluteUrl(elSrc);
if (absoluteUrl.substr(0,4) == 'http') return;
var elWidth = $(el).attr('width');
var elHeight = $(el).attr('height');
var elStyle = $(el).attr('style');
Expand All @@ -62,7 +63,7 @@ function block(event) {
elementStatusCheck = true;
else elementStatusCheck = false;
}
if (absoluteUrl.substr(0,4) == 'http' && elementStatusCheck && (
if (elementStatusCheck && (
(
(
(
Expand All @@ -74,7 +75,7 @@ function block(event) {
|| (elType == "VIDEO" && SETTINGS['VIDEO'] == 'true')
|| (elType == "AUDIO" && SETTINGS['AUDIO'] == 'true')
|| (elType == "IMG" && SETTINGS['IMAGE'] == 'true')
|| (elType == "A" && (SETTINGS['REFERRER'] == 'everywhere' || (SETTINGS['REFERRER'] == 'true' && SETTINGS['DOMAINSTATUS'] != '0')))
|| (elType == "A" && (SETTINGS['REFERRER'] == 'alldomains' || (SETTINGS['REFERRER'] == 'true' && SETTINGS['DOMAINSTATUS'] != '0')))
)
&& (
(SETTINGS['PRESERVESAMEDOMAIN'] != 'false' && (thirdPartyCheck || domainCheckStatus == '1' || baddiesCheck))
Expand All @@ -93,9 +94,9 @@ function block(event) {
)
)
|| (
(SETTINGS['REFERRER'] == 'everywhere' || (SETTINGS['REFERRER'] == 'true' && SETTINGS['DOMAINSTATUS'] != '0')) && elType == "A" && (thirdPartyCheck || domainCheckStatus == '1' || baddiesCheck)
(SETTINGS['REFERRER'] == 'alldomains' || (SETTINGS['REFERRER'] == 'true' && SETTINGS['DOMAINSTATUS'] != '0')) && elType == "A" && (thirdPartyCheck || domainCheckStatus == '1' || baddiesCheck)
))) {
if ((SETTINGS['REFERRER'] == 'everywhere' || (SETTINGS['REFERRER'] == 'true' && SETTINGS['DOMAINSTATUS'] != '0')) && elType == "A" && (thirdPartyCheck || domainCheckStatus == '1' || baddiesCheck)) {
if ((SETTINGS['REFERRER'] == 'alldomains' || (SETTINGS['REFERRER'] == 'true' && SETTINGS['DOMAINSTATUS'] != '0')) && elType == "A" && (thirdPartyCheck || domainCheckStatus == '1' || baddiesCheck)) {
$(el).attr("rel","noreferrer");
} else {
event.preventDefault();
Expand Down Expand Up @@ -230,7 +231,7 @@ function loaded() {
ScriptSafe();
$('body').unbind('DOMNodeInserted.ScriptSafe');
$('body').bind('DOMNodeInserted.ScriptSafe', ScriptSafe);
if (SETTINGS['REFERRER'] == 'everywhere' || (SETTINGS['REFERRER'] == 'true' && SETTINGS['DOMAINSTATUS'] != '0')) {
if (SETTINGS['REFERRER'] == 'alldomains' || (SETTINGS['REFERRER'] == 'true' && SETTINGS['DOMAINSTATUS'] != '0')) {
$('body').unbind('DOMNodeInserted.ScriptSafeReferrer');
$('body').bind('DOMNodeInserted.ScriptSafeReferrer', blockreferrer);
blockreferrer();
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ A Chrome extension that gives users control of the web and more secure browsing

**Install from the Chrome Web Store: https://chrome.google.com/webstore/detail/scriptsafe/oiigbmnaadbkfbmpbfijlflahbdbdgdf**

**More information (quick start, feature list, domain expressions/examples, and more) here: https://github.com/andryou/scriptsafe/wiki**
More information (quick start, feature list, domain expressions/examples, and more) here: **https://github.com/andryou/scriptsafe/wiki**

0 comments on commit b507926

Please sign in to comment.