Skip to content

Commit

Permalink
name des Ticket-Authors mit ausgeben
Browse files Browse the repository at this point in the history
  • Loading branch information
AlterTobi committed Sep 14, 2023
1 parent a81c2db commit e327384
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions wayfarer-ticket-saver.user.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// ==UserScript==
// @name Wayfarer Ticket Saver
// @version 0.2.2
// @version 0.2.3
// @description Saves interactions with Niantic Support initiated through Wayfarer.
// @namespace https://github.com/tehstone/wayfarer-addons
// @downloadURL https://github.com/tehstone/wayfarer-addons/raw/main/wayfarer-ticket-saver.user.js
// @downloadURL https://altertobi.github.io/tehstone-wayfarer-addons/wayfarer-ticket-saver.user.js
// @homepageURL https://github.com/tehstone/wayfarer-addons
// @match https://wayfarer.nianticlabs.com/*
// @match https://webchat.helpshift.com/*
Expand Down Expand Up @@ -321,7 +321,11 @@
case 'Text Input Response':
case 'Text Message with Text Input':
case 'Text':
bubble.innerHTML = highlightSearch(msg.body);
if (msg.author.name) {
bubble.innerHTML = highlightSearch("<b>" + msg.author.name + ": </b><br>" + msg.body);
} else {
bubble.innerHTML = highlightSearch(msg.body);
}
break;

case 'Text Message with Option Input':
Expand Down

0 comments on commit e327384

Please sign in to comment.