diff --git a/README.md b/README.md index 13f5fb3..ec1a472 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,20 @@ You can use the [Redirector](https://github.com/einaregilsson/Redirector) extens * Include pattern: `^https?://i?.?imgur.com(/.*)?$` * Redirect to: `https://rimgo.example.com$1` * Pattern type: Regular Expression +* Advanced options: + * Apply to: + * [x] Main window (address bar) + * [x] Images + +For Stack Overflow images: +* Description: Stack Overflow Imgur -> rimgo +* Example URL: https://i.stack.imgur.com/BTKqD.png?s=128&g=1 +* Include pattern: `^https?://i\.stack\.imgur\.com(/.*)?$` +* Redirect to: `https://rimgo.example.com/stack$1` +* Pattern type: Regular Expression +* Advanced options: + * Apply to: + * [x] Images ## Install rimgo can run on any platform Go compiles on. diff --git a/views/frontpage.hbs b/views/frontpage.hbs index efe7e4f..ca701a8 100644 --- a/views/frontpage.hbs +++ b/views/frontpage.hbs @@ -95,6 +95,17 @@
^https?://i?.?imgur.com(/.*)?$
{{proto}}://{{domain}}$1
For Stack Overflow Images:
+^https?://i\.stack\.imgur\.com(/.*)?$
{{proto}}://{{domain}}/stack$1