From 674cf4504c01f97f8abe52419ff2a249e7789da3 Mon Sep 17 00:00:00 2001 From: Sebastian Hirnschall Date: Sun, 21 Nov 2021 23:50:54 +0100 Subject: [PATCH 1/3] fixed exam date support -fixed an issue where all exams on the correct date were valid, ignoring exam name --- tiss_quick_registration_script.user.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tiss_quick_registration_script.user.js b/tiss_quick_registration_script.user.js index 6fc0156..dbcdee2 100755 --- a/tiss_quick_registration_script.user.js +++ b/tiss_quick_registration_script.user.js @@ -10,6 +10,8 @@ /* Changelog: + v.1.6.3 [21.11.2021] + ~ Fix: previously all exams on the correct date were valid, ignoring exam name v.1.6.3 [18.12.2020] + Added: date of exam support @@ -596,7 +598,8 @@ var examData = $(this).text().trim(); var examLabel = self.getExamLabel(nameOfExam).first().text().trim() + " "; var examDate = examData.replace(examLabel, ''); - return examDate.match(dateOfExam); + var examRemainder = examDate.replace(dateOfExam, ''); + return !examRemainder && examData; }); }; From f4a120d33c529848cbe169416dacfb8ac20d8998 Mon Sep 17 00:00:00 2001 From: Sebastian Hirnschall Date: Sun, 21 Nov 2021 23:52:19 +0100 Subject: [PATCH 2/3] Update tiss_quick_registration_script.user.js --- tiss_quick_registration_script.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiss_quick_registration_script.user.js b/tiss_quick_registration_script.user.js index dbcdee2..674f8b7 100755 --- a/tiss_quick_registration_script.user.js +++ b/tiss_quick_registration_script.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name TISS Quick Registration Script // @namespace http://www.manuelgeier.com/ -// @version 1.6.3 +// @version 1.6.4 // @description Script to help you to get into the group you want. Opens automatically the right panel, registers automatically and confirms your registration automatically. If you don't want the script to do everything automatically, the focus is already set on the right button, so you only need to confirm. There is also an option available to auto refresh the page, if the registration button is not available yet, so you can open the site and watch the script doing its work. You can also set a specific time when the script should reload the page and start. // @match https://tiss.tuwien.ac.at/* // @copyright 2012+, Manuel Geier, THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -10,7 +10,7 @@ /* Changelog: - v.1.6.3 [21.11.2021] + v.1.6.4 [21.11.2021] ~ Fix: previously all exams on the correct date were valid, ignoring exam name v.1.6.3 [18.12.2020] From a04808546412d33ab74e0ee39752d0bab019f8e7 Mon Sep 17 00:00:00 2001 From: Sebastian Hirnschall Date: Tue, 1 Mar 2022 12:34:13 +0100 Subject: [PATCH 3/3] Update tiss_quick_registration_script.user.js --- tiss_quick_registration_script.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tiss_quick_registration_script.user.js b/tiss_quick_registration_script.user.js index 674f8b7..c867247 100755 --- a/tiss_quick_registration_script.user.js +++ b/tiss_quick_registration_script.user.js @@ -82,7 +82,7 @@ registrationType: "group", // name of you the group you want to join (only for registrationType 'group') [String] - nameOfGroup: "Gruppe 001", + nameOfGroup: "K2", // name of the exam which you want to join (only for registrationType 'exam') [String] nameOfExam: "Name Of Exam", @@ -94,7 +94,7 @@ lvaCheckEnabled: true, // only if the number is right, the script is enabled [String] - lvaNumber: "123.456", + lvaNumber: "104.398", // if you have multiple study codes, enter here the study code number you want // to register for eg. '123456' (no blanks). Otherwise leave empty. [String] @@ -106,7 +106,7 @@ lvaSemesterCheckEnabled: true, // only if the semester is right, the script is enabled [String] - lvaSemester: "2019W", + lvaSemester: "2022S", // autoGoToSemester: true, // coming soon @@ -138,7 +138,7 @@ // define the specific time the script should start [Date] // new Date(year, month, day, hours, minutes, seconds, milliseconds) // note: months start with 0 - specificStartTime: new Date(2020, 1 - 1, 9, 20, 27, 0, 0), + specificStartTime: new Date(2022, 3 - 1, 1, 13, 30, 0, 0), // if a specific time is defined, the script will refresh some ms sooner to adjust a delay [Integer] delayAdjustmentInMs: 300,