r18dev_remove_duplicates.user.js: improve regex

This commit is contained in:
2025-12-03 09:48:04 +01:00
parent d46986edfc
commit ee696e72a2
+2 -2
View File
@@ -3,7 +3,7 @@
// @namespace Violentmonkey Scripts
// @match https://r18.dev/videos/vod/movies/list/*
// @grant none
// @version 1.12
// @version 1.13
// @author Lukáš Kucharczyk
// @description Removes duplicate entries in the list of movies on r18.dev.
// @downloadURL https://git.kucharczyk.xyz/lukas/userscripts/raw/branch/main/r18dev_remove_duplicates.user.js
@@ -21,7 +21,7 @@ function filterVideos() {
}
// Regex to match "Letters-Numbers" (e.g., AAA-111)
const regex = /[a-zA-Z]+-[0-9]+/;
const regex = /^[a-zA-Z]+-[0-9]+$/;
let removedCount = 0; // Changed to 'let' so it can be incremented
videos.forEach(video => {