diff surugaya-fixes.user.js @ 106:42fbeb68c0e5

Product id may contain uppercase letters
author nanaya <me@nanaya.net>
date Sun, 15 Jan 2023 23:13:33 +0900
parents 6b354277f2d1
children 4bc5a633437c
line wrap: on
line diff
--- a/surugaya-fixes.user.js	Sun Jan 08 00:02:28 2023 +0900
+++ b/surugaya-fixes.user.js	Sun Jan 15 23:13:33 2023 +0900
@@ -1,7 +1,7 @@
 // ==UserScript==
 // @name         suruga-ya fixes
 // @namespace    https://myconan.net
-// @version      2.0.0
+// @version      2.0.1
 // @description  Show all products with fast image
 // @author       nanaya
 // @match        https://www.suruga-ya.jp/*
@@ -24,7 +24,7 @@
 
 // skip loading image through php which seems to take forever
 ;(function () {
-  const itemImageRegexp = /photo\.php\?shinaban=(\d+)/
+  const itemImageRegexp = /photo\.php\?shinaban=([0-9A-Z]+)/
   function fix (image) {
     const origSrc = image.getAttribute('src')
     if (origSrc == null) return