最近搜索
没有最近搜索

Benjamin Dietrich
已加入2024年8月09日
·
最后活动2024年8月09日
关注
0
关注者
0
活动总数
2
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Benjamin Dietrich
Benjamin Dietrich 进行了评论,
社区评论 Feedback - Ticketing system (Support)
You can use the following tampermonkey script:
// ==UserScript==
// @name Remove Internal Note Comments
// @namespace https://*.zendesk.com/
// @version 1.0
// @description Removes any comments that are internal notes on Zendesk ticket print pages
// @author Benjamin Dietrich
// @match https://*.zendesk.com/tickets/*/print
// @icon https://d1eipm3vz40hy0.cloudfront.net/images/logos/favicons/favicon.ico
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Select all comment divs
const comments = document.querySelectorAll('div.comment');
comments.forEach(comment => {
// Check if this comment contains a div.mast with a span.internal_note
const mast = comment.querySelector('div.mast');
if (mast) {
const internalNote = mast.querySelector('span.internal_note');
if (internalNote && internalNote.textContent.trim() === 'Internal note') {
// If it does, remove the entire comment div
comment.remove();
}
}
});
})();
查看评论 · 已于 2024年8月09日 编辑 · Benjamin Dietrich
0
关注者
0
投票
0
评论