Reviews for Image Max URL
Image Max URL by qsniyg
Review by CODE
Rated 5 out of 5
by CODE, 4 years agohow to create manual rule ?
I want to create rule like this :
/123-small.jpg
/128-small.jpg
/225-small.jpg
to
/123-original.jpg
/128-original.jpg
/225-original.jpg
I want to create rule like this :
/123-small.jpg
/128-small.jpg
/225-small.jpg
to
/123-original.jpg
/128-original.jpg
/225-original.jpg
Developer response
posted 4 years agoSorry, there's currently no way to add manual rules. This is something I'd really like to add in the future (see https://github.com/qsniyg/maxurl/issues/41), but currently there are a few technical problems with implementing this for the moment (see the linked issue for a bit more detail on why).
If you want to request a new site to be added to the script, feel free to use any of the contact links listed at the bottom of the script's description, whichever you're most comfortable with. I'm more than happy to add any new website to the script, and if I'm online, I usually add them within minutes of being notified :)
If you'd rather add it to the script yourself (note that this will require sideloading the addon), I've written a bit of a guide here: https://github.com/qsniyg/maxurl/blob/master/CONTRIBUTING.md#websiterule-contributions. In your case, a rule like this should work: if (domain === "subdomain.your-website.com") return src.replace(/(\/[0-9]+-)small(\.[^/.]+)(?:[?#].*)?$/, "$1original$2");
By the way, while the github issue hasn't seen much activity for a while, this does not mean it's been forgotten or ignored, the script is already getting restructured in many areas, which will facilitate the implementation of this. It's just that it is pretty a massive project (currently requires rewriting >70,000 lines of source code - much of which will be automatically handled, but even that requires a very significant amount of work).
If you want to request a new site to be added to the script, feel free to use any of the contact links listed at the bottom of the script's description, whichever you're most comfortable with. I'm more than happy to add any new website to the script, and if I'm online, I usually add them within minutes of being notified :)
If you'd rather add it to the script yourself (note that this will require sideloading the addon), I've written a bit of a guide here: https://github.com/qsniyg/maxurl/blob/master/CONTRIBUTING.md#websiterule-contributions. In your case, a rule like this should work: if (domain === "subdomain.your-website.com") return src.replace(/(\/[0-9]+-)small(\.[^/.]+)(?:[?#].*)?$/, "$1original$2");
By the way, while the github issue hasn't seen much activity for a while, this does not mean it's been forgotten or ignored, the script is already getting restructured in many areas, which will facilitate the implementation of this. It's just that it is pretty a massive project (currently requires rewriting >70,000 lines of source code - much of which will be automatically handled, but even that requires a very significant amount of work).