Skip to content
Snippets Groups Projects

Update after changes settings 2024 05 06

Merged Jan Seipel requested to merge update-after-changes-settings-2024-05-06 into main
1 file
+ 7
23
Compare changes
  • Side-by-side
  • Inline
// ==UserScript==
// ==UserScript==
 
// @name test-ap-ux-improver
// @name test-ap-ux-improver
// @namespace https://test-anfragen-pool.swrapp.net/*
// @namespace https://test-anfragen-pool.swrapp.net/*
// @version 2024-05-07_11-01
// @version 2024-05-07_15-46
// @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 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 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 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 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
// @description passt den IDA-Anfragen-Pool an die Anforderungen von IDA-Desk an
// @author Jan Seipel
// @author Jan Seipel
@@ -22,8 +15,8 @@
@@ -22,8 +15,8 @@
// @grant GM_getResourceText
// @grant GM_getResourceText
// @grant GM_addStyle
// @grant GM_addStyle
// ==/UserScript==
 
// ==/UserScript==
window.addEventListener('load', function() {
window.addEventListener('load', function() {
'use strict';
'use strict';
@@ -35,16 +28,9 @@ window.addEventListener('load', function() {
@@ -35,16 +28,9 @@ window.addEventListener('load', function() {
// Alle verfügbaren Stylesheets & deren URL-Identifier
// Alle verfügbaren Stylesheets & deren URL-Identifier
const stylings = [
const stylings = [
//{"id": "AgentDashboard", "stylesheet": "DASHBOARD_CSS"},
{"id": "AgentTicketZoom", "stylesheet": "TICKETZOOM_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": "AgentTicketFreeText", "stylesheet": "TICKETFREETEXT_CSS"},
{"id": "AgentTicketNote", "stylesheet": "TICKETNOTE_CSS"},
{"id": "AgentTicketPhone", "stylesheet": "TICKETPHONE_CSS"},
{"id": "AgentTicketPhone", "stylesheet": "TICKETPHONE_CSS"},
{"id": "AgentTicketPhoneOutbound", "stylesheet": "TICKETPHONEOUTBOUND_CSS"},
{"id": "AgentTicketPhoneInbound", "stylesheet": "TICKETPHONEINBOUND_CSS"}
]
]
// Dashboard-Stylesheet auf allen Seiten laden,
// Dashboard-Stylesheet auf allen Seiten laden,
@@ -62,11 +48,9 @@ window.addEventListener('load', function() {
@@ -62,11 +48,9 @@ window.addEventListener('load', function() {
// im neuen Fenster öffnen
// im neuen Fenster öffnen
document.querySelector("#ToolBar li.PhoneTicket > a").setAttribute("target","_blank")
document.querySelector("#ToolBar li.PhoneTicket > a").setAttribute("target","_blank")
// ====== AgentTicketClose ======
// Einhorn hinter Lorenz' Namen
if (URL.includes("AgentTicketClose")) {
const lorenz = [...document.querySelectorAll("div[title='Lorenz Bockisch']")]
 
lorenz.map((e)=>e.innerText += " 🦄")
 
// Subject und Content vorausfüllen
$("#Subject").val("Ticket geschlossen");
$("iframe")[0].contentWindow.document.getElementsByTagName("body")[0].append("Ticket geschlossen")
}
}, false);
}, false);
\ No newline at end of file
Loading