From e5965104e57895ca679700fcd1531ed8ba961bc8 Mon Sep 17 00:00:00 2001
From: Jan Seipel <Jan.Seipel@swr.de>
Date: Tue, 7 May 2024 15:19:53 +0200
Subject: [PATCH] =?UTF-8?q?=C3=9Cberfl=C3=BCssigen=20Code=20entfernt?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 test-ap-ux-imporver.user.js | 26 +++-----------------------
 1 file changed, 3 insertions(+), 23 deletions(-)

diff --git a/test-ap-ux-imporver.user.js b/test-ap-ux-imporver.user.js
index 3253a31..15882a6 100644
--- a/test-ap-ux-imporver.user.js
+++ b/test-ap-ux-imporver.user.js
@@ -1,20 +1,14 @@
 // ==UserScript==
+
 // @name         test-ap-ux-improver
 // @namespace    https://test-anfragen-pool.swrapp.net/*
-// @version      2024-05-07_11-01
+// @version      2024-05-07_15-14
 
 // @require      https://code.jquery.com/jquery-1.12.4.min.js#sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=
-
 // @resource     DASHBOARD_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-dashboard.css
 // @resource     TICKETZOOM_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketzoom.css
-// @resource     TICKETCLOSE_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketclose.css
-// @resource     TICKETCOMPOSE_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketcompose.css
-// @resource     TICKETEMAILOUTBOUND_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketemailoutbound.css
 // @resource     TICKETFREETEXT_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketfreetext.css
-// @resource     TICKETNOTE_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketnote.css
 // @resource     TICKETPHONE_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketphone.css
-// @resource     TICKETPHONEOUTBOUND_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketphoneoutbound.css
-// @resource     TICKETPHONEINBOUND_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketphoneinbound.css
 
 // @description  passt den IDA-Anfragen-Pool an die Anforderungen von IDA-Desk an
 // @author       Jan Seipel
@@ -22,8 +16,8 @@
 
 // @grant        GM_getResourceText
 // @grant        GM_addStyle
-// ==/UserScript==
 
+// ==/UserScript==
 window.addEventListener('load', function() {
     'use strict';
 
@@ -35,16 +29,9 @@ window.addEventListener('load', function() {
 
     // Alle verfügbaren Stylesheets & deren URL-Identifier
     const stylings = [
-        //{"id": "AgentDashboard", "stylesheet": "DASHBOARD_CSS"},
         {"id": "AgentTicketZoom", "stylesheet": "TICKETZOOM_CSS"},
-        {"id": "AgentTicketClose", "stylesheet": "TICKETCLOSE_CSS"},
-        {"id": "AgentTicketCompose", "stylesheet": "TICKETCOMPOSE_CSS"},
-        {"id": "AgentTicketEmailOutbound", "stylesheet": "TICKETEMAILOUTBOUND_CSS"},
         {"id": "AgentTicketFreeText", "stylesheet": "TICKETFREETEXT_CSS"},
-        {"id": "AgentTicketNote", "stylesheet": "TICKETNOTE_CSS"},
         {"id": "AgentTicketPhone", "stylesheet": "TICKETPHONE_CSS"},
-        {"id": "AgentTicketPhoneOutbound", "stylesheet": "TICKETPHONEOUTBOUND_CSS"},
-        {"id": "AgentTicketPhoneInbound", "stylesheet": "TICKETPHONEINBOUND_CSS"}
     ]
 
     // Dashboard-Stylesheet auf allen Seiten laden,
@@ -62,11 +49,4 @@ window.addEventListener('load', function() {
     // im neuen Fenster öffnen
     document.querySelector("#ToolBar li.PhoneTicket > a").setAttribute("target","_blank")
 
-    // ====== AgentTicketClose ======
-    if (URL.includes("AgentTicketClose")) {
-
-        // Subject und Content vorausfüllen
-        $("#Subject").val("Ticket geschlossen");
-        $("iframe")[0].contentWindow.document.getElementsByTagName("body")[0].append("Ticket geschlossen")
-    }
 }, false);
\ No newline at end of file
-- 
GitLab