From 49eccbf3d6decf3ef4195ce4a07e9a1441c348c0 Mon Sep 17 00:00:00 2001 From: ae Date: Tue, 12 Nov 2024 19:18:14 +0200 Subject: [PATCH] fix: wildcard uri for multipage support (closes #1) --- .prettierrc | 7 +++++++ iltapulu.fi/ip-highlight.js | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..22120f8 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "useTabs": false, + "tabWidth": 2, + "bracketSpacing": true, + "semi": false, + "proseWrap": "always" +} diff --git a/iltapulu.fi/ip-highlight.js b/iltapulu.fi/ip-highlight.js index 43c5022..d069558 100644 --- a/iltapulu.fi/ip-highlight.js +++ b/iltapulu.fi/ip-highlight.js @@ -3,7 +3,7 @@ // @description TV catalog item highlighter // @author ae // @namespace Violentmonkey Scripts -// @match *://www.iltapulu.fi/ +// @match *://www.iltapulu.fi/* // @version 1.0 // ==/UserScript== @@ -15,11 +15,11 @@ const channelTags = [ "#channel-6", // MTV Sub "#channel-5", // TV5 "#channel-7", // Jim - "#channel-62" // 6 + "#channel-62", // 6 ] const highlightCodes = { - sport: "#186f37" + sport: "#186f37", } const findSportsItems = () => {