Highlight added and removed tags in Ticket Events view

2 Kommentare

  • Tal Admon
    Aktionen für Kommentare Permalink

    If you are uncomfortable with adding Tampermonkey script, you can use a bookmarklet:

    Add a bookmark to your browser called "Highlight Tags" and add the following as a URL:

    javascript:jQuery(".audit-events .Change .info").each(function(){if("Tags"==jQuery(this).find("label").text().trim()){var e=jQuery(this).find("label").html(),t=jQuery(this).clone().children().remove().end().html(),i=jQuery(this).find("del").html(),n=jQuery(this).find("div.via").html(),l=jQuery(this).clone().children().remove().end().text().trim().split(" ");l=l.filter(function(e){return""!=e});var r=jQuery(this).find("del").text().trim().split(" "),c=l.filter(function(e){return!r.includes(e)}),d=r.filter(function(e){return!l.includes(e)});c.forEach(function(e){t=t.replace(e,'<b style="color:green;">'+e+"</b>")}),d.forEach(function(e){i=i.replace(e,'<b style="color:red;">'+e+"</b>")}),console.log(e),jQuery(this).html("<label>"+e+"</label>"+t+"<del>"+i+'</del><div class="via">'+n+"</div>")}})

    When you open a ticket events page, click the bookmarklet in the bookmarks toolbar and the tags will get highlighted.

     

    1
  • Brett - Community Manager
    Aktionen für Kommentare Permalink

    This is awesome!

    Thanks for sharing Tal :) 

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk