Skip to content

fuglane - now only searches in the main-content div (was body before)… #6

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions fuglane.user.js
Original file line number Diff line number Diff line change
@@ -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/*
Expand Down Expand Up @@ -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);
}

})();