From 602a64123614a9c7c058d3a3f8555e7a528e939f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Andreas=20Nilsen?= Date: Tue, 21 Jan 2025 13:12:38 +0100 Subject: [PATCH] tried excluding edit-mode --- fuglane.user.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fuglane.user.js b/fuglane.user.js index 0f220e2..923410e 100644 --- a/fuglane.user.js +++ b/fuglane.user.js @@ -1,11 +1,12 @@ // ==UserScript== // @name Fuglane - Issue links // @namespace http://tampermonkey.net/ -// @version 1.3.3 +// @version 1.3.4 // @description Replace NTNU issue numbers, change numbers and upn's with clickable links to TopDesk // @author Øyvind Nilsen (on@ntnu.no) // @match https://fuglane.it.ntnu.no/display/* // @match https://fuglane.it.ntnu.no/pages/* +// @exclude /.*resumedraft\.*/ // @grant none // @icon https://www.google.com/s2/favicons?sz=64&domain=ntnu.no // @updateURL https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/fuglane.user.js @@ -23,7 +24,7 @@ const emailRegex = /([a-z0-9-_]{2,40})(?:@ntnu\.no)/gi; const text = node.textContent; - console.log("TEXT: " + text); + //console.log("TEXT: " + text); let replacedText = text.replace(incidentRegex, (match) => { const url = `https://hjelp.ntnu.no/tas/secure/incident?action=lookup&lookup=naam&lookupValue=${match}`;