Update ImageUtilities.plugin.js

This commit is contained in:
Mirco Wittrien 2023-12-21 14:29:28 +01:00
parent ea2a330974
commit 170da9dcd6
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name ImageUtilities
* @author DevilBro
* @authorId 278543574059057154
* @version 5.3.9
* @version 5.4.0
* @description Adds several Utilities for Images/Videos (Gallery, Download, Reverse Search, Zoom, Copy, etc.)
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -1700,7 +1700,7 @@ module.exports = (_ => {
}
removeFormatInUrl (url) {
return (url || "").replace(/[\&\?]format\=[A-z]+/g, "");
return (url || "").replace(/\&format\=[A-z]+/g, "").replace(/\?format\=[A-z]+\&/g, "?").replace(/\?format\=[A-z]+/g, "");
}
addListener (eventType, type, callback) {