Skip to content

Commit

Permalink
Merge branch 'main' of git.ntnu.no:M365-Drift/MonkeyMagic
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Oct 28, 2024
2 parents c990b0c + e25207c commit 0391aad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions topdesk-highlight-summary.user.js
Original file line number Diff line number Diff line change
@@ -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/*
Expand All @@ -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
Expand Down

0 comments on commit 0391aad

Please sign in to comment.