Skip to content

Commit

Permalink
Changed hover cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Aug 26, 2024
1 parent 21daf47 commit cc1af53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions topdesk.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name TopDesk - Copy Issuenumber
// @namespace http://tampermonkey.net/
// @version 1.1.0
// @namespace https://git.ntnu.no/M365-Drift/MonkeyMagic/
// @version 1.1.1
// @author Øyvind Nilsen (on@ntnu.no)
// @description Copies the issue number if you click it in TopDesk. It copies plain text and a clickable HTML version. So if the place you paste supports HTML, you can paste a clickable link to the issue.
// @match https://hjelp.ntnu.no/*
Expand Down Expand Up @@ -69,6 +69,7 @@
if (firstDiv && firstDiv.id) {
const modifiedId = firstDiv.id.slice(0, -1) + '8';
const targetDiv = document.getElementById(modifiedId);
targetDiv.style.cursor = "copy";
if (targetDiv) {

targetDiv.addEventListener('click', function() {
Expand Down

0 comments on commit cc1af53

Please sign in to comment.