hoothin / UserScripts

Greasemonkey scripts ( Pagetual / Picviewer CE+ / DownloadAllContent ) 油猴腳本集 ユーザースクリプト集
https://greasyfork.org/users/8227-hoothin
3k stars 511 forks source link

Moddb.com HD Images #540

Open Madnessday2006 opened 6 months ago

Madnessday2006 commented 6 months ago

I did this:

{
    "name": "Image 8 - The Thing Remaster mod for Half-Life 2 - ModDB",
    "url": "^https?://www\\.moddb\\.com/mods/the-thing-remaster/images/",
    "example": "https://www.moddb.com/mods/the-thing-remaster/images/image-8#imagebox",
    "pageElement": "#body > div.container > div.column.span-all.tabimages > div.normalbox > div.inner > div.mediaviewer.clear > div.media > div.holder > img:nth-of-type(1)",
"nextLink": "#body > div.container > div.column.span-all.tabimages > div.normalbox > div.inner > div.mediaviewer.clear > div.media > a.medianext"
}

doesn't work

hoothin commented 6 months ago

Your regExp is wrong, try

"nextLinkByUrl": [
        "image-(\\d+)",
        "image-{$1-1}"
    ]