r18dev_remove_duplicates.user.js: improve regex
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
// @namespace Violentmonkey Scripts
|
// @namespace Violentmonkey Scripts
|
||||||
// @match https://r18.dev/videos/vod/movies/list/*
|
// @match https://r18.dev/videos/vod/movies/list/*
|
||||||
// @grant none
|
// @grant none
|
||||||
// @version 1.12
|
// @version 1.13
|
||||||
// @author Lukáš Kucharczyk
|
// @author Lukáš Kucharczyk
|
||||||
// @description Removes duplicate entries in the list of movies on r18.dev.
|
// @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
|
// @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)
|
// 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
|
let removedCount = 0; // Changed to 'let' so it can be incremented
|
||||||
|
|
||||||
videos.forEach(video => {
|
videos.forEach(video => {
|
||||||
|
|||||||
Reference in New Issue
Block a user