From 47986f346b8e11b47dac2ff9d6e0a97e259b817c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20B=C3=B8rnes?= Date: Thu, 24 Oct 2024 11:28:53 +0200 Subject: [PATCH 1/2] Update topdesk-highlight-summary.user.js Changed what the script matches on --- topdesk-highlight-summary.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From e25207ce98cf6b5775938daa3abb0d4748b6fdfd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 24 Oct 2024 09:29:11 +0000 Subject: [PATCH 2/2] Generated Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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