Skip to content
Snippets Groups Projects
Commit e5965104 authored by Jan Seipel's avatar Jan Seipel
Browse files

Überflüssigen Code entfernt

parent b6658ea5
No related branches found
No related tags found
1 merge request!1Update after changes settings 2024 05 06
// ==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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment