From 17286e3bdc85088d59c71e0113b3ecf8de7d9850 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Sat, 25 Apr 2020 22:23:02 +0200 Subject: [PATCH 01/14] #1 Change star color to primary color when a request is followed --- enhancements/animeRequests.js | 11 +++++++++++ manifest.json | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 enhancements/animeRequests.js diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js new file mode 100644 index 0000000..2844115 --- /dev/null +++ b/enhancements/animeRequests.js @@ -0,0 +1,11 @@ +const starIcon = "star"; + +executeAfterPreload(changeFollowedStarColor); + +function changeFollowedStarColor() { + // find stars + let followedItems = Array.from(document.querySelectorAll("i")).filter(i => i.innerText == starIcon); + + // change color + followedItems.forEach(item => item.style.color = aniBlue); +} \ No newline at end of file diff --git a/manifest.json b/manifest.json index 33f02aa..d4623e9 100644 --- a/manifest.json +++ b/manifest.json @@ -15,6 +15,15 @@ "utils/aniwatchCore.js" ], "run_at": "document_start" + }, + { + "matches": [ + "*://aniwatch.me/requests" + ], + "js": [ + "enhancements/animeRequests.js" + ], + "run_at": "document_end" } ] } \ No newline at end of file -- 2.45.3 From 604db7a723e31ee97f5f11c7e17caf2b7c07c200 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Sat, 25 Apr 2020 22:43:36 +0200 Subject: [PATCH 02/14] #1 Change border color of own requests --- enhancements/animeRequests.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index 2844115..3423382 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -1,6 +1,7 @@ const starIcon = "star"; executeAfterPreload(changeFollowedStarColor); +executeAfterPreload(changeOwnBorderColor); function changeFollowedStarColor() { // find stars @@ -8,4 +9,18 @@ function changeFollowedStarColor() { // change color followedItems.forEach(item => item.style.color = aniBlue); +} + +function changeOwnBorderColor() { + // find items -> all + let requestItems = document.querySelectorAll("md-list-item"); + + // change border color if profile link is not "false" + requestItems.forEach(item => { + let profileLink = item.querySelectorAll("a[href*='/profile/']:not([href='/profile/false'])"); + + if (profileLink.length > 0) { + item.style.borderColor = aniBlue + } + }); } \ No newline at end of file -- 2.45.3 From 5c8a2d45fbe2e2cf8797d2d9f48bd9e8aa3d4ef2 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Sat, 25 Apr 2020 23:23:13 +0200 Subject: [PATCH 03/14] #1 Fix for lateloading in the list --- enhancements/animeRequests.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index 3423382..50ab210 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -1,7 +1,23 @@ const starIcon = "star"; +const scripts = [ + changeFollowedStarColor, + changeOwnBorderColor, +] -executeAfterPreload(changeFollowedStarColor); -executeAfterPreload(changeOwnBorderColor); +executeAfterPreload(initScripts); + +function initScripts() { + // run the scripts + runScripts(); + + // because of late loading in the request list we have to run the codes each time the list changes + document.querySelector("md-list").addEventListener("DOMNodeInserted", event => runScripts(event), false); +} + +function runScripts() { + scripts.forEach(script => script()); + console.log("DDS") +} function changeFollowedStarColor() { // find stars -- 2.45.3 From 677ef8d233cac61bc46bcddd302411ee6c016e9a Mon Sep 17 00:00:00 2001 From: Serraniel Date: Sun, 26 Apr 2020 12:33:31 +0200 Subject: [PATCH 04/14] Fixed wrong console log --- enhancements/animeRequests.js | 1 - 1 file changed, 1 deletion(-) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index 50ab210..f8cb9c3 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -16,7 +16,6 @@ function initScripts() { function runScripts() { scripts.forEach(script => script()); - console.log("DDS") } function changeFollowedStarColor() { -- 2.45.3 From d522f7c96f1dbf1fc81babc30e687f9b5434770a Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 10:03:25 +0200 Subject: [PATCH 05/14] =?UTF-8?q?Old=20codes=20I=20do=20not=20remember=20b?= =?UTF-8?q?ut=20better=20commit=20them=20than=20loosing=20it=20?= =?UTF-8?q?=F0=9F=98=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enhancements/animeRequests.js | 19 +++++++------------ manifest.json | 2 +- utils/aniwatchCore.js | 23 ++++++++++++++++++++--- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index f8cb9c3..c89cb0e 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -1,21 +1,16 @@ const starIcon = "star"; -const scripts = [ - changeFollowedStarColor, - changeOwnBorderColor, -] -executeAfterPreload(initScripts); - -function initScripts() { +registerScript(() => { // run the scripts - runScripts(); + handleListAfterLoad(); // because of late loading in the request list we have to run the codes each time the list changes - document.querySelector("md-list").addEventListener("DOMNodeInserted", event => runScripts(event), false); -} + //document.querySelector("md-list").addEventListener("DOMNodeInserted", event => handleListAfterLoad(event), false); +}); -function runScripts() { - scripts.forEach(script => script()); +function handleListAfterLoad() { + changeFollowedStarColor(); + changeOwnBorderColor(); } function changeFollowedStarColor() { diff --git a/manifest.json b/manifest.json index d4623e9..3eda9fe 100644 --- a/manifest.json +++ b/manifest.json @@ -18,7 +18,7 @@ }, { "matches": [ - "*://aniwatch.me/requests" + "*://aniwatch.me/*" ], "js": [ "enhancements/animeRequests.js" diff --git a/utils/aniwatchCore.js b/utils/aniwatchCore.js index 263247a..b0e9ba4 100644 --- a/utils/aniwatchCore.js +++ b/utils/aniwatchCore.js @@ -1,10 +1,27 @@ -function executeAfterPreload(func){ +let __scripts = []; + +function registerScript(func){ + __scripts.push(func); +} + +function runScripts(){ + console.log("RUN"); + __scripts.forEach(script => script()); +} + +function awaitPageLoaded(){ let preLoader = document.getElementById('preloader'); let loop = setInterval(() => { if(preLoader.style.display==="none"){ clearInterval(loop); - func(); + runScripts(); } }, 100); -} \ No newline at end of file +} + +// RUN AT INITIALIZATION +window.addEventListener("hashchange", event => runScripts(), false); +document.addEventListener("DOMContentLoaded", event => awaitPageLoaded(), false); + +document.querySelector('.main-section'). \ No newline at end of file -- 2.45.3 From 3de1e3443a7ab91a7b78d021156a68c9ae691b3e Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 10:35:57 +0200 Subject: [PATCH 06/14] #7 Added mutation observer --- enhanced-aniwatch.code-workspace | 8 +++++ enhancements/animeRequests.js | 23 ++++++-------- manifest.json | 54 ++++++++++++++++---------------- utils/aniwatchCore.js | 31 +++++++----------- utils/helpers.js | 3 ++ 5 files changed, 58 insertions(+), 61 deletions(-) create mode 100644 enhanced-aniwatch.code-workspace create mode 100644 utils/helpers.js diff --git a/enhanced-aniwatch.code-workspace b/enhanced-aniwatch.code-workspace new file mode 100644 index 0000000..876a149 --- /dev/null +++ b/enhanced-aniwatch.code-workspace @@ -0,0 +1,8 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index c89cb0e..861b7b1 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -1,29 +1,24 @@ const starIcon = "star"; -registerScript(() => { +registerScript(node => { // run the scripts - handleListAfterLoad(); - - // because of late loading in the request list we have to run the codes each time the list changes - //document.querySelector("md-list").addEventListener("DOMNodeInserted", event => handleListAfterLoad(event), false); + if (isHtmlElement(node)) { + changeFollowedStarColor(node); + changeOwnBorderColor(node); + } }); -function handleListAfterLoad() { - changeFollowedStarColor(); - changeOwnBorderColor(); -} - -function changeFollowedStarColor() { +function changeFollowedStarColor(node) { // find stars - let followedItems = Array.from(document.querySelectorAll("i")).filter(i => i.innerText == starIcon); + let followedItems = Array.from(node.querySelectorAll("i")).filter(i => i.innerText == starIcon); // change color followedItems.forEach(item => item.style.color = aniBlue); } -function changeOwnBorderColor() { +function changeOwnBorderColor(node) { // find items -> all - let requestItems = document.querySelectorAll("md-list-item"); + let requestItems = node.querySelectorAll("md-list-item"); // change border color if profile link is not "false" requestItems.forEach(item => { diff --git a/manifest.json b/manifest.json index 3eda9fe..7a8508d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,29 +1,29 @@ { - "name": "Enhanced Aniwatch", - "version": "0.1.0.0", - "description": "Contains several enhancments for https://aniwatch.me", - "manifest_version": 2, - "author": "Serraniel", - "homepage_url": "https://github.com/Serraniel/EnhancedAniwatch", - "content_scripts": [ - { - "matches": [ - "*://aniwatch.me/*" - ], - "js": [ - "utils/colors.js", - "utils/aniwatchCore.js" - ], - "run_at": "document_start" - }, - { - "matches": [ - "*://aniwatch.me/*" - ], - "js": [ - "enhancements/animeRequests.js" - ], - "run_at": "document_end" - } - ] + "name": "Enhanced Aniwatch", + "version": "0.1.0.0", + "description": "Contains several enhancments for https://aniwatch.me", + "manifest_version": 2, + "author": "Serraniel", + "homepage_url": "https://github.com/Serraniel/EnhancedAniwatch", + "content_scripts": [{ + "matches": [ + "*://aniwatch.me/*" + ], + "js": [ + "utils/colors.js", + "utils/helpers.js", + "utils/aniwatchCore.js" + ], + "run_at": "document_start" + }, + { + "matches": [ + "*://aniwatch.me/*" + ], + "js": [ + "enhancements/animeRequests.js" + ], + "run_at": "document_end" + } + ] } \ No newline at end of file diff --git a/utils/aniwatchCore.js b/utils/aniwatchCore.js index b0e9ba4..81a0c13 100644 --- a/utils/aniwatchCore.js +++ b/utils/aniwatchCore.js @@ -1,27 +1,18 @@ let __scripts = []; -function registerScript(func){ +function registerScript(func) { __scripts.push(func); } -function runScripts(){ - console.log("RUN"); - __scripts.forEach(script => script()); -} - -function awaitPageLoaded(){ - let preLoader = document.getElementById('preloader'); - - let loop = setInterval(() => { - if(preLoader.style.display==="none"){ - clearInterval(loop); - runScripts(); +let observer = new MutationObserver(mutations => { + mutations.forEach(mutation => { + for (let i = 0; i < mutation.addedNodes.length; i++) { + __scripts.forEach(script => script(mutation.addedNodes[i])); } - }, 100); -} + }); +}); -// RUN AT INITIALIZATION -window.addEventListener("hashchange", event => runScripts(), false); -document.addEventListener("DOMContentLoaded", event => awaitPageLoaded(), false); - -document.querySelector('.main-section'). \ No newline at end of file +observer.observe(document.documentElement || document.body, { + childList: true, + subtree: true +}); \ No newline at end of file diff --git a/utils/helpers.js b/utils/helpers.js new file mode 100644 index 0000000..cb18055 --- /dev/null +++ b/utils/helpers.js @@ -0,0 +1,3 @@ +function isHtmlElement(object) { + return object instanceof HTMLElement; +} \ No newline at end of file -- 2.45.3 From 3b145e2d4e1cd64965f635d1ef9c53962c998bb0 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 10:44:03 +0200 Subject: [PATCH 07/14] Some fixes for requests Page --- enhancements/animeRequests.js | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index 861b7b1..1ae0126 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -17,15 +17,26 @@ function changeFollowedStarColor(node) { } function changeOwnBorderColor(node) { - // find items -> all - let requestItems = node.querySelectorAll("md-list-item"); + const targetTagName = "MD-LIST-ITEM"; // tagName is upper case - // change border color if profile link is not "false" - requestItems.forEach(item => { + let updateFunc = item => { let profileLink = item.querySelectorAll("a[href*='/profile/']:not([href='/profile/false'])"); if (profileLink.length > 0) { item.style.borderColor = aniBlue } - }); + } + + // are we target tag? + if (node.tagName === targetTagName) { + updateFunc(node); + } else { + // find items -> all + let requestItems = node.querySelectorAll("md-list-item"); + + // change border color if profile link is not "false" + requestItems.forEach(item => { + updateFunc(item); + }); + } } \ No newline at end of file -- 2.45.3 From 3d309ae88ae43584278fca3e6a58c29d62c92f53 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 11:14:38 +0200 Subject: [PATCH 08/14] #7 Fixes in core and star coloring --- enhancements/animeRequests.js | 6 +++--- utils/aniwatchCore.js | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index 1ae0126..d51f342 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -1,5 +1,3 @@ -const starIcon = "star"; - registerScript(node => { // run the scripts if (isHtmlElement(node)) { @@ -9,8 +7,10 @@ registerScript(node => { }); function changeFollowedStarColor(node) { + const starIcon = "star"; + // find stars - let followedItems = Array.from(node.querySelectorAll("i")).filter(i => i.innerText == starIcon); + let followedItems = Array.from(node.querySelectorAll("i")).filter(i => i.innerText.trim() === starIcon); // change color followedItems.forEach(item => item.style.color = aniBlue); diff --git a/utils/aniwatchCore.js b/utils/aniwatchCore.js index 81a0c13..e274d01 100644 --- a/utils/aniwatchCore.js +++ b/utils/aniwatchCore.js @@ -4,15 +4,20 @@ function registerScript(func) { __scripts.push(func); } +function runScripts(node) { + __scripts.forEach(script => script(node)); +} + let observer = new MutationObserver(mutations => { mutations.forEach(mutation => { for (let i = 0; i < mutation.addedNodes.length; i++) { - __scripts.forEach(script => script(mutation.addedNodes[i])); + runScripts(mutation.addedNodes[i]); } }); }); observer.observe(document.documentElement || document.body, { childList: true, - subtree: true + subtree: true, + attributes: true }); \ No newline at end of file -- 2.45.3 From 7e21fbdf05f1840e00ab4f46ed48e349bcb5a40b Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 11:35:51 +0200 Subject: [PATCH 09/14] #6 Changed " to ' --- enhancements/animeRequests.js | 12 ++++++------ utils/colors.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index d51f342..1fa6827 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -7,20 +7,20 @@ registerScript(node => { }); function changeFollowedStarColor(node) { - const starIcon = "star"; + const starIcon = 'star'; // find stars - let followedItems = Array.from(node.querySelectorAll("i")).filter(i => i.innerText.trim() === starIcon); + let followedItems = Array.from(node.querySelectorAll('i')).filter(i => i.innerText.trim() === starIcon); // change color followedItems.forEach(item => item.style.color = aniBlue); } function changeOwnBorderColor(node) { - const targetTagName = "MD-LIST-ITEM"; // tagName is upper case + const targetTagName = 'MD-LIST-ITEM'; // tagName is upper case let updateFunc = item => { - let profileLink = item.querySelectorAll("a[href*='/profile/']:not([href='/profile/false'])"); + let profileLink = item.querySelectorAll('a[href*="/profile/"]:not([href="/profile/false"])'); if (profileLink.length > 0) { item.style.borderColor = aniBlue @@ -32,9 +32,9 @@ function changeOwnBorderColor(node) { updateFunc(node); } else { // find items -> all - let requestItems = node.querySelectorAll("md-list-item"); + let requestItems = node.querySelectorAll('md-list-item'); - // change border color if profile link is not "false" + // change border color if profile link is not 'false' requestItems.forEach(item => { updateFunc(item); }); diff --git a/utils/colors.js b/utils/colors.js index a3c864b..536b09f 100644 --- a/utils/colors.js +++ b/utils/colors.js @@ -1 +1 @@ -const aniBlue = "#348fff"; \ No newline at end of file +const aniBlue = '#348fff'; \ No newline at end of file -- 2.45.3 From 199c9db5c5f03de158dbeaf0ac49dfe30720d53d Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 11:39:09 +0200 Subject: [PATCH 10/14] #6 Remove unknown users --- enhancements/animeRequests.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index 1fa6827..839a581 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -3,6 +3,7 @@ registerScript(node => { if (isHtmlElement(node)) { changeFollowedStarColor(node); changeOwnBorderColor(node); + removeUnknownUsers(node); } }); @@ -28,6 +29,31 @@ function changeOwnBorderColor(node) { } // are we target tag? + if (node.tagName === targetTagName) { + updateFunc(node); + } else { + // find items -> all + let requestItems = node.querySelectorAll('md-list-item'); + + // change border color if profile link is not 'false' + requestItems.forEach(item => { + updateFunc(item); + }); + } +} + +function removeUnknownUsers(node) { + const targetTagName = 'MD-LIST-ITEM'; // tagName is upper case + + let updateFunc = item => { + let upperDiv = node.querySelector('[layout-align="start center"][flex]') + let lowerDiv = upperDiv.parentElement.nextElementSibling; + + let anime = lowerDiv.innerText; + upperDiv.innerHTML = `${anime}`; + lowerDiv.innerHTML = ' '; + } + if (node.tagName === targetTagName) { updateFunc(node); } else { -- 2.45.3 From 2b08f5a5596890831ea2827a30ef0622d6448276 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 11:42:11 +0200 Subject: [PATCH 11/14] #6 Remember user for own requests --- enhancements/animeRequests.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index 839a581..3f55c2d 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -46,12 +46,28 @@ function removeUnknownUsers(node) { const targetTagName = 'MD-LIST-ITEM'; // tagName is upper case let updateFunc = item => { + // find user profile link -> own request + let profileLink = item.querySelectorAll('a[href*="/profile/"]:not([href="/profile/false"])'); + + // find divs let upperDiv = node.querySelector('[layout-align="start center"][flex]') let lowerDiv = upperDiv.parentElement.nextElementSibling; + // remember Data let anime = lowerDiv.innerText; + let profileData = upperDiv.innerHTML; + + // exchange data upperDiv.innerHTML = `${anime}`; - lowerDiv.innerHTML = ' '; + + // add user note if own request + if (profileLink.length > 0) { + lowerDiv.innerHTML = profileData; + } + // remove if foreign request. + else { + lowerDiv.innerHTML = ' '; + } } if (node.tagName === targetTagName) { -- 2.45.3 From 7e703ec1c35e7677b2833cb06fa2a19ce9c4b373 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 11:55:02 +0200 Subject: [PATCH 12/14] #6 Add border as horizontal seperator --- enhancements/animeRequests.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index 3f55c2d..f03e7ea 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -2,7 +2,7 @@ registerScript(node => { // run the scripts if (isHtmlElement(node)) { changeFollowedStarColor(node); - changeOwnBorderColor(node); + changeBorderColor(node); removeUnknownUsers(node); } }); @@ -17,15 +17,19 @@ function changeFollowedStarColor(node) { followedItems.forEach(item => item.style.color = aniBlue); } -function changeOwnBorderColor(node) { +function changeBorderColor(node) { const targetTagName = 'MD-LIST-ITEM'; // tagName is upper case let updateFunc = item => { let profileLink = item.querySelectorAll('a[href*="/profile/"]:not([href="/profile/false"])'); + // highlight left border for own request if (profileLink.length > 0) { item.style.borderColor = aniBlue } + + // add border as horizontal seperator + item.style.borderBottom = "1px solid rgba(155,155,155, 0.2)"; } // are we target tag? @@ -35,7 +39,7 @@ function changeOwnBorderColor(node) { // find items -> all let requestItems = node.querySelectorAll('md-list-item'); - // change border color if profile link is not 'false' + // update borders requestItems.forEach(item => { updateFunc(item); }); -- 2.45.3 From bbecb5884fd6945c2e5d277b9f0fe961551b1cb2 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 12:12:16 +0200 Subject: [PATCH 13/14] #9 Added pattern parameter when registering scripts --- utils/aniwatchCore.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/utils/aniwatchCore.js b/utils/aniwatchCore.js index e274d01..fb7587a 100644 --- a/utils/aniwatchCore.js +++ b/utils/aniwatchCore.js @@ -1,11 +1,15 @@ let __scripts = []; -function registerScript(func) { - __scripts.push(func); +function registerScript(func, pattern = '.*') { + __scripts.push({ "function": func, "pattern": pattern }); } function runScripts(node) { - __scripts.forEach(script => script(node)); + __scripts.forEach(script => { + if (window.location.pathname.match(script.pattern)) { + script.function(node); + } + }); } let observer = new MutationObserver(mutations => { -- 2.45.3 From 7b61cf09b1e7b75925aa0c984bb5a20ce688dd01 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 29 Jul 2020 12:14:25 +0200 Subject: [PATCH 14/14] #9 added Pattern for requests script --- enhancements/animeRequests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js index f03e7ea..f4f6fbd 100644 --- a/enhancements/animeRequests.js +++ b/enhancements/animeRequests.js @@ -5,7 +5,7 @@ registerScript(node => { changeBorderColor(node); removeUnknownUsers(node); } -}); +}, "/requests"); function changeFollowedStarColor(node) { const starIcon = 'star'; -- 2.45.3