From 10289cde51cb639a49fd67f430b494b439ac00f6 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Fri, 18 Nov 2022 11:57:21 -0500 Subject: [PATCH] Improve redirector configuration --- README.md | 14 ++++++++++++++ views/frontpage.hbs | 11 +++++++++++ 2 files changed, 25 insertions(+) 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 @@
  • Include pattern: ^https?://i?.?imgur.com(/.*)?$
  • Redirect to: {{proto}}://{{domain}}$1
  • Pattern type: Regular Expression
  • +
  • Advanced Options > Apply to: Check Images
  • + + +

    For Stack Overflow Images:

    +

    Notice