diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 3aba28d..e1013c0 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -419,6 +419,7 @@ function redirect(url, type, initiator, forceRedirection, incognito) { } case "gothub": { if (url.hostname == "gist.github.com") return `${randomInstance}/gist${url.pathname}${url.search}` + if (url.hostname == "raw.githubusercontent.com") return `${randomInstance}/raw${url.pathname}${url.search}` return `${randomInstance}${url.pathname}${url.search}` } case "mikuInvidious": { diff --git a/src/config.json b/src/config.json index 4029d53..567fcb1 100644 --- a/src/config.json +++ b/src/config.json @@ -637,7 +637,8 @@ }, "targets": [ "^https?:\\/{2}github\\.com\\/", - "^https?:\\/{2}gist\\.github\\.com\\/[^\\/]+\\/[^\\/]+\\/?" + "^https?:\\/{2}gist\\.github\\.com\\/[^\\/]+\\/[^\\/]+\\/?", + "^https?:\\/{2}raw\\.githubusercontent\\.com\\/[^\\/]+\\/[^\\/]+\\/?" ], "name": "GitHub", "options": {