From 1c84d5701d82846d5c2385c28e84d55c9b3296b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Mon, 26 Apr 2021 05:14:43 +0200 Subject: [PATCH] Covert mouse to pointer on menu entry hover (#18) The custom menu entry misses the href attribute which is responsible for converting the mouse to a pointer on hover. In order to make it more consistent we can add the style manually. --- douki.user.js | 2 +- src/Dom.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/douki.user.js b/douki.user.js index 50c9f72..0e6d9a3 100644 --- a/douki.user.js +++ b/douki.user.js @@ -224,7 +224,7 @@ class DomMethods { const selector = '.header-menu-dropdown > ul > li:last-child'; const dropdown = document.querySelector(selector); if (dropdown) { - const html = `
  • Import from Anilist
  • `; + const html = `
  • Import from Anilist
  • `; dropdown.insertAdjacentHTML('afterend', html); const link = document.querySelector(Util_1.id(const_1.DROPDOWN_ITEM_ID)); link && link.addEventListener('click', function (e) { diff --git a/src/Dom.ts b/src/Dom.ts index a2a3e5b..61f285f 100644 --- a/src/Dom.ts +++ b/src/Dom.ts @@ -86,7 +86,7 @@ export class DomMethods implements IDomMethods { const selector = '.header-menu-dropdown > ul > li:last-child'; const dropdown = document.querySelector(selector); if (dropdown) { - const html = `
  • Import from Anilist
  • `; + const html = `
  • Import from Anilist
  • `; dropdown.insertAdjacentHTML('afterend', html); const link = document.querySelector(id(DROPDOWN_ITEM_ID)); link && link.addEventListener('click', function (e) {