changeset 107:4bc5a633437c

The urls need to be lowercased
author nanaya <me@nanaya.net>
date Sun, 15 Jan 2023 23:15:45 +0900
parents 42fbeb68c0e5
children 2c4470b73ad9
files surugaya-fixes.user.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/surugaya-fixes.user.js	Sun Jan 15 23:13:33 2023 +0900
+++ b/surugaya-fixes.user.js	Sun Jan 15 23:15:45 2023 +0900
@@ -1,7 +1,7 @@
 // ==UserScript==
 // @name         suruga-ya fixes
 // @namespace    https://myconan.net
-// @version      2.0.1
+// @version      2.0.2
 // @description  Show all products with fast image
 // @author       nanaya
 // @match        https://www.suruga-ya.jp/*
@@ -31,7 +31,7 @@
     const found = origSrc.match(itemImageRegexp)
     if (found == null) return
 
-    const src = `https://www.suruga-ya.jp/database/pics_light/game/${found[1]}.jpg`
+    const src = `https://www.suruga-ya.jp/database/pics_light/game/${found[1].toLowerCase()}.jpg`
     const setNotFound = () => {
       image.removeEventListener('error', setNotFound)
       image.setAttribute('src', 'https://www.suruga-ya.jp/database/images/no_photo.jpg')