From 9aaf7eeb2ec5a67556bf770159e6e1ae3a1de973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Wed, 5 Feb 2020 18:54:11 +0100 Subject: [PATCH] Update test page --- GitLabPages/index.html | 6 +++--- GitLabPages/js/scripts.js | 8 ++++---- data/data.min.json | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/GitLabPages/index.html b/GitLabPages/index.html index 50cbdfa..b7499af 100644 --- a/GitLabPages/index.html +++ b/GitLabPages/index.html @@ -40,13 +40,13 @@
- - - diff --git a/GitLabPages/js/scripts.js b/GitLabPages/js/scripts.js index cd21a05..62a914d 100644 --- a/GitLabPages/js/scripts.js +++ b/GitLabPages/js/scripts.js @@ -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(''); segment.append('

The tracking filter function of ClearURLs works correctly.

'); @@ -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(''); segment.append('

The redirection function of ClearURLs works correctly.

'); @@ -76,7 +76,7 @@ function checkBlock() { segment.append(''); segment.append('

The block function of ClearURLs works correctly.

'); }) - .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(''); segment.append('

Your ClearURLs version is not vulnerable to the problem from Issue 253.

'); }) - .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 () { diff --git a/data/data.min.json b/data/data.min.json index 0186b32..ef3c1de 100644 --- a/data/data.min.json +++ b/data/data.min.json @@ -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 } } }