diff --git a/README.md b/README.md index 5636ebb..cbca256 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ TamperMonkey scripts for å gjøre websider bedre. (Fuglane, Innsida osv.) - **Description:** `Alt` + `/` to search on Innsida ### TOPdesk - Highlight Summary - - **Install:** [![](https://img.shields.io/badge/topdesk--highlight--summary.user.js-1.3-green.svg)](https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/topdesk-highlight-summary.user.js) + - **Install:** [![](https://img.shields.io/badge/topdesk--highlight--summary.user.js-1.4-green.svg)](https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/topdesk-highlight-summary.user.js) - **Author:** Magnus Børnes (magnborn@ntnu.no) - **Match:** `https://hjelp.ntnu.no/*` - **Description:** Highlight the summary section in a box with rounded corners and white background diff --git a/topdesk-highlight-summary.user.js b/topdesk-highlight-summary.user.js index 68d92f5..530e0e1 100644 --- a/topdesk-highlight-summary.user.js +++ b/topdesk-highlight-summary.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name TOPdesk - Highlight Summary // @namespace http://tampermonkey.net/ -// @version 1.3 +// @version 1.4 // @description Highlight the summary section in a box with rounded corners and white background // @author Magnus Børnes (magnborn@ntnu.no) // @match https://hjelp.ntnu.no/* @@ -17,7 +17,7 @@ // Function to highlight the summary function highlightSummary() { // Find the first div element with an ID ending in "_Y7" - const div = document.querySelector('div[id$="_Y7"]'); + const div = document.querySelector('div[guielement$="crt-content-label"]'); if (div) { // Get the inner HTML of the div