diff --git a/academyFIVE__AddSelectBox.user.js b/academyFIVE__AddSelectBox.user.js index 159e9cc..8901a9d 100644 --- a/academyFIVE__AddSelectBox.user.js +++ b/academyFIVE__AddSelectBox.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name academyFIVE::AddSelectBox // @namespace dakp/academyfive -// @version 2026.04.003 +// @version 2026.04.005 // @description Füge Selectbox für Kohorten/Planungsgruppen hinzu // @author Dims Akpan // @match https://a5.fhdw-hannover.de/* @@ -15,25 +15,10 @@ (function() { 'use strict'; - function getDropdownSelector() { - const url = window.location.href; - if (url.includes('/course/planning-group/list')) { - return 'select[name="cohort-ids[]"]'; - } - if (url.includes('/course/list')) { - return 'select[name="planningGroupIds[]"]'; - } - return null; - } + // ─── Gemeinsame Hilfsfunktionen ─────────────────────────────────────────── - function tryInsertButtons() { - const selector = getDropdownSelector(); - if (!selector) return false; - - // Bootstrap Select wraps the