Skip to content

Commit

Permalink
tried excluding edit-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Jan 21, 2025
1 parent 509fbf8 commit 602a641
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fuglane.user.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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}`;
Expand Down

0 comments on commit 602a641

Please sign in to comment.