diff --git a/fuglane.user.js b/fuglane.user.js index a5428ef..f03012e 100644 --- a/fuglane.user.js +++ b/fuglane.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Fuglane - Issue links // @namespace http://tampermonkey.net/ -// @version 1.3 +// @version 1.3.1 // @description Replace NTNU issue numbers, change numbers and upn's with clickable links to TopDesk // @author on@ntnu.no // @match https://fuglane.it.ntnu.no/* @@ -49,6 +49,10 @@ } } - // Run the function on the entire document body - replaceTextWithLinks(document.body); + // Run the function on the 'main-content' div. + const mainContent = document.getElementById('main-content'); + if (mainContent) { + replaceTextWithLinks(mainContent); + } + })(); \ No newline at end of file