display_anime_names: merge two regexes

This commit is contained in:
Lukáš Kucharczyk 2022-10-09 11:28:28 +02:00
parent 291fe94aea
commit 3edc211c41
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,7 @@
// @match https://animebytes.tv/company.php
// @match https://animebytes.tv/
// @grant none
// @version 1.3
// @version 1.4
// @author Lukáš Kucharczyk
// @description Displays anime titles underneath posters on the collage page.
// @downloadURL https://git.kucharczyk.xyz/lukas/userscripts/raw/branch/main/animebytes_display_anime_names/display_anime_names.js
@ -14,8 +14,7 @@
// ==/UserScript==
let url_selectors = {
"^(https?://)?animebytes.tv/?$": ".aot_inner",
"^(https?://)?animebytes.tv/collage.php": "#collage_table tbody tr td",
"^(https?://)?animebytes.tv/company.php": "#collage_table tbody tr td"
"^(https?://)?animebytes.tv/(collage|company).php": "#collage_table tbody tr td"
}
let selectors_as_array = Object.entries(url_selectors)
let selector = selectors_as_array.filter(([key, value]) => {