Skip to content

Created a redirector plugin but it did not work. #133

@thelastfantasy

Description

@thelastfantasy

My plugin:

{
	"type": "redirector",
	"ns": "nonymous",
	"author": "pks",
	"prefix": "tumblr large image",
	"match": "^http://\d+\\.media\\.tumblr\\.com/.*(?:jpg|png|gif)/i",
	"pattern": "_500\\.(jpg|png|gif)",
	"replacement": "_1280.$1"
}

Match URL: http://66.media.tumblr.com/6b667f014d83a46bc71d1e51827e99bd/tumblr_oglaj2Ytsp1sfv6buo1_500.jpg
Hoped Result: http://66.media.tumblr.com/6b667f014d83a46bc71d1e51827e99bd/tumblr_oglaj2Ytsp1sfv6buo1_1280.jpg

2016-11-15_01
But I only got this, I only know something about regular expression but nothing about coding, can you tell me where is the error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions