Version 1.9.0

- Added #284
- Added #56
- Fixed #241
- Possible fix & workaround for #203
- Fixed bug in "history tracking injection protection". This option was not disabled, when the global filter switch are on off
- Added an option to im-/export the log (requires the `downloads` permission)
- Added an option to im-/export the settings (requires the `downloads` permission)
- Added information page for blocked sites, when they are called in the `main_frame`
- Added "multiple times URL encodes" recognition
- Refactoring
- Changed background script loading sequence to prevent that required functions are not yet loaded.
This commit is contained in:
Kevin Röbert
2019-10-23 01:16:12 +02:00
parent 9df322a49a
commit d064537c07
23 changed files with 839 additions and 272 deletions

View File

@@ -32,10 +32,27 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<link rel="stylesheet" href="../css/dataTables.bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../css/core.css">
<style>
td {
word-wrap: break-word;
max-width: 200px;
}
td {
word-wrap: break-word;
max-width: 200px;
}
.fileinput-button {
position: relative;
overflow: hidden;
display: inline-block;
}
.fileinput-button input {
position: absolute;
top: 0;
right: 0;
margin: 0;
opacity: 0;
-ms-filter: 'alpha(opacity=0)';
direction: ltr;
cursor: pointer;
}
</style>
</head>
<body>
@@ -58,7 +75,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div class="col-md-10 col-md-offset-1">
<p class="text-center">
<button type="button" id="reset_log_btn"
class="btn btn-danger" title="Reset the global log"></button>
class="btn btn-danger" title="Reset the global log">
</button>
<button type="button" id="export_log_btn"
class="btn btn-success" title="Export the global log">
<i class="glyphicon glyphicon-save"></i>
<span id="export_log_btn_text"></span>
</button>
<span id="import_log_btn"
class="btn btn-success fileinput-button" title="Import the global log">
<i class="glyphicon glyphicon-open"></i>
<span id="import_log_btn_text"></span>
<input type="file" name="file" id="importLog"/>
</span>
</p>
<div class="table-responsive">
<table class="table table-striped table-bordered"

View File

@@ -37,6 +37,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
word-wrap: break-word;
max-width: 200px;
}
.fileinput-button {
position: relative;
overflow: hidden;
display: inline-block;
}
.fileinput-button input {
position: absolute;
top: 0;
right: 0;
margin: 0;
opacity: 0;
-ms-filter: 'alpha(opacity=0)';
direction: ltr;
cursor: pointer;
}
</style>
</head>
<body>
@@ -60,6 +77,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<p class="text-center">
<button type="button" id="reset_settings_btn"
class="btn btn-danger" title="Reset everything settings"></button>
<button type="button" id="export_settings_btn"
class="btn btn-success" title="Export the settings">
<i class="glyphicon glyphicon-save"></i>
<span id="export_settings_btn_text"></span>
</button>
<span id="import_settings_btn"
class="btn btn-success fileinput-button" title="Import the settings">
<i class="glyphicon glyphicon-open"></i>
<span id="import_settings_btn_text"></span>
<input type="file" name="file" id="importSettings"/>
</span>
</p>
<br />
<p>
@@ -80,9 +110,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<p>
<label id="types_label"></label><br />
<input type="text" id="types" value="" name="types" class="form-control" />
<br />
</p>
<br />
<p>
<label id="logLimit_label"></label><br />
<input type="number" id="logLimit" value="" name="logLimit" class="form-control" min="-1">
</p>
<br />
<p>
<label id="context_menu_enabled" style="font-weight: bold;"></label><br />
<label class="switch">
<input type="checkbox" id="contextMenuEnabled">
@@ -106,6 +141,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</label>
</p>
<br />
<p>
<label id="referral_marketing_enabled" style="font-weight: bold;"></label><br />
<label class="switch">
<input type="checkbox" id="referralMarketing">
<span class="slider round"></span>
</label>
</p>
<br />
<p class="text-center">
<button type="button" id="save_settings_btn"
class="btn btn-success" title="Save the settings"></button>

View File

@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<!DOCTYPE html>
<html lang="en">
<head>
<title>This site or element was blocked by ClearURLs Add-on</title>
<title>This site was blocked by ClearURLs Add-on</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@@ -53,12 +53,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div class="container content">
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<h1 class="text-center">This site or element was blocked by <b>ClearURLs</b> Add-on</h1>
<h1 class="text-center" id="title"></h1>
<p class="text-center" id="body"></p>
<p class="text-center">
This site or element was blocked by <b>ClearURLs</b> Add-on, because we identify this site as an
advertising and/or tracking service.
<br>
To visit this site, you must temporarily deactivate the Add-on.
<a class="btn btn-warning" id="page"></a>
</p>
</div>
</div>
@@ -66,13 +64,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<footer class="navbar-fixed-bottom">
<div class="navbar-inverse text-center">
<small class="text-muted">Version 1.1.2.5</small>
<small class="text-muted">v.<span id="version"></span></small>
</div>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="../browser-polyfill.js"></script>
<script src="../external_js/jquery-3.2.1.min.js"></script>
<script src="../external_js/bootstrap.min.js"></script>
<script src="../core_js/siteBlockedAlert.js"></script>
<script src="../core_js/write_version.js"></script>
</body>
</html>