Improve Redirector extension instructions

This specifies advanced options for configuring the Redirector
extension. If everything is let on (like images) things will break
(like images). It also improves the regular expression a bit to account
for the image CDN

Co-authored-by: Austin Huang <im@austinhuang.me>
main
Edward Loveall 2022-01-04 20:57:41 -05:00
rodzic d8d4913913
commit 6ea0586423
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 789A4AE983AC8901
1 zmienionych plików z 28 dodań i 2 usunięć

Wyświetl plik

@ -34,19 +34,45 @@ class Faq::IndexPage < MainLayout
end
li do
strong "Include pattern: "
code "^https?://(?:.*\\.)*(?<!link\\.)medium\\.com(/.*)?$"
code "^https?://(?:.*\\.)*(?<!(link\\.|cdn\\-images\\-\\d+\\.))medium\\.com(/.*)?$"
end
li do
strong "Redirect to: "
code "https://"
code app_domain
code "$1"
code "/$2"
end
li do
strong "Pattern type: "
code "( ) Wildcard (•) Regular Expression"
end
end
h3 "Advanced options"
ul do
li do
strong "Exclude pattern: "
text "(leave blank)"
end
li do
strong "Process matches: "
code "No Processing"
end
li do
strong "Apply to: "
ul do
li { code "[x] Main window (address bar)" }
li { code "[x] IFrames" }
li { code "[ ] Stylesheets" }
li { code "[ ] Scripts" }
li { code "[ ] Images" }
li { code "[ ] Responsive images" }
li { code "[ ] Objects" }
li { code "[x] XMLHttpRequests" }
li { code "[x] History State" }
li { code "[x] Other" }
end
end
end
para "Visiting any medium.com site (including user.medium.com subdomains) should now redirect to Scribe instead!"
end
end