Update test page

This commit is contained in:
Kevin Röbert 2020-02-05 20:02:36 +01:00
parent 9aaf7eeb2e
commit f1c6599638
4 changed files with 16 additions and 5 deletions

View File

@ -43,7 +43,7 @@
<iframe src="https://kevinroebert.gitlab.io/ClearUrls/void/index.html?ref=gitlab&test=test" <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> height="1" width="1" id="void_roebert_eu_iframe" style="border:0; border:none;"></iframe>
<iframe src="https://kevinroebert.gitlab.io/ClearUrls/void/index.html?url=https%3A%2F%2Fkevinroebert.gitlab.io%2FClearUrls%2Fvoid%2Fbla.html" <iframe src="https://kevinroebert.gitlab.io/ClearUrls/void/index.html?url=https%3A%2F%2Fkevinroebert.gitlab.io%2FClearUrls%2Fvoid%2Findex.html"
height="1" width="1" id="redirect_roebert_eu_iframe" style="border:0; border:none;"></iframe> height="1" width="1" id="redirect_roebert_eu_iframe" style="border:0; border:none;"></iframe>
<iframe src="https://kevinroebert.gitlab.io/ClearUrls/void/index.html?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"

View File

@ -27,7 +27,7 @@ function checkRule() {
let segment = $('#rules_filter_test'); let segment = $('#rules_filter_test');
if(resURL === 'about:blank') { if(resURL === 'https://kevinroebert.gitlab.io/ClearUrls/void/index.html') {
segment.addClass('positive'); segment.addClass('positive');
segment.append('<i class="large smile outline icon"></i>'); 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>'); 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'); let segment = $('#redirection_filter_test');
if(resURL === 'https://kevinroebert.gitlab.io/ClearUrls/void/bla.html') { if(resURL === 'https://kevinroebert.gitlab.io/ClearUrls/void/index.html') {
segment.addClass('positive'); segment.addClass('positive');
segment.append('<i class="large smile outline icon"></i>'); segment.append('<i class="large smile outline icon"></i>');
segment.append('<div class="content"><p>The redirection function of ClearURLs works correctly.</p></div>'); 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('<i class="large smile outline icon"></i>');
segment.append('<div class="content"><p>The block function of ClearURLs works correctly.</p></div>'); segment.append('<div class="content"><p>The block function of ClearURLs works correctly.</p></div>');
}) })
.attr("src", 'https://kevinroebert.gitlab.io/ClearUrls/void/index.html'); .attr("src", 'https://kevinroebert.gitlab.io/ClearUrls/void/block.html');
} }
function checkIssue253() { function checkIssue253() {

View File

@ -0,0 +1 @@
This site should be blocked by ClearURLs

View File

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