Update test page

This commit is contained in:
Kevin Röbert 2020-02-05 18:54:11 +01:00
parent 4b2b528248
commit 9aaf7eeb2e
3 changed files with 21 additions and 7 deletions

View File

@ -40,13 +40,13 @@
<div class="ui icon message" id="block_filter_test"></div>
<div class="ui icon message" id="issue_253_test"></div>
<iframe src="https://kevinroebert.gitlab.io/ClearUrls/void/index.html?ref=gitlab"
<iframe src="https://kevinroebert.gitlab.io/ClearUrls/void/index.html?ref=gitlab&test=test"
height="1" width="1" id="void_roebert_eu_iframe" style="border:0; border:none;"></iframe>
<iframe src="https://youtube.com/redirect?q=https%3A%2F%2Fkevinroebert.gitlab.io%2FClearUrls%2Fvoid%2Findex.html%3Fref%3Dgitlab"
<iframe src="https://kevinroebert.gitlab.io/ClearUrls/void/index.html?url=https%3A%2F%2Fkevinroebert.gitlab.io%2FClearUrls%2Fvoid%2Fbla.html"
height="1" width="1" id="redirect_roebert_eu_iframe" style="border:0; border:none;"></iframe>
<iframe src="https://www.google.com/url?rct=j&url=https%3A%2F%2Fkevinroebert.gitlab.io%2FClearUrls%2Fi253.html"
<iframe src="https://kevinroebert.gitlab.io/ClearUrls/void/index.html?url=https%3A%2F%2Fkevinroebert.gitlab.io%2FClearUrls%2Fi253.html"
height="1" width="1" id="i253_roebert_eu_iframe" style="border:0; border:none;"></iframe>
<img id="i253_roebert_eu_img" height="1" width="1"/>

View File

@ -27,7 +27,7 @@ function checkRule() {
let segment = $('#rules_filter_test');
if(resURL === 'https://kevinroebert.gitlab.io/ClearUrls/void/index.html') {
if(resURL === 'about:blank') {
segment.addClass('positive');
segment.append('<i class="large smile outline icon"></i>');
segment.append('<div class="content"><p>The tracking filter function of ClearURLs works correctly.</p></div>');
@ -49,7 +49,7 @@ function checkRedirection() {
let segment = $('#redirection_filter_test');
if(resURL === 'https://kevinroebert.gitlab.io/ClearUrls/void/index.html') {
if(resURL === 'https://kevinroebert.gitlab.io/ClearUrls/void/bla.html') {
segment.addClass('positive');
segment.append('<i class="large smile outline icon"></i>');
segment.append('<div class="content"><p>The redirection function of ClearURLs works correctly.</p></div>');
@ -76,7 +76,7 @@ function checkBlock() {
segment.append('<i class="large smile outline icon"></i>');
segment.append('<div class="content"><p>The block function of ClearURLs works correctly.</p></div>');
})
.attr("src", 'https://www.contentpass.de/img/logo.svg');
.attr("src", 'https://kevinroebert.gitlab.io/ClearUrls/void/index.html');
}
function checkIssue253() {
@ -94,7 +94,7 @@ function checkIssue253() {
segment.append('<i class="large smile outline icon"></i>');
segment.append('<div class="content"><p>Your ClearURLs version is not vulnerable to the problem from Issue 253.</p></div>');
})
.attr("src", 'https://www.google.com/url?rct=j&url=https%3A%2F%2Fkevinroebert.gitlab.io%2FClearUrls%2Fi253.html');
.attr("src", 'https://kevinroebert.gitlab.io/ClearUrls/void/index.html?url=https%3A%2F%2Fkevinroebert.gitlab.io%2FClearUrls%2Fi253.html');
}
$(window).on('load', function () {

View File

@ -1286,6 +1286,20 @@
"exceptions": [],
"redirections": [],
"forceRedirection": false
},
"ClearURLsTest": {
"urlPattern": "(https:\\/\\/|http:\\/\\/)(kevinroebert\\.gitlab\\.io)\\/ClearUrls\\/void\\/index\\.html.*",
"completeProvider": true,
"rules": [
"test"
],
"referralMarketing": [],
"rawRules": [],
"exceptions": [],
"redirections": [
".*url=([^&]*)"
],
"forceRedirection": false
}
}
}