commit
eb008c724d
|
@ -2,6 +2,12 @@ const oldReddit = "https://old.reddit.com"
|
||||||
|
|
||||||
chrome.webRequest.onBeforeRequest.addListener(
|
chrome.webRequest.onBeforeRequest.addListener(
|
||||||
function(details) {
|
function(details) {
|
||||||
|
|
||||||
|
// Exclude poll pages
|
||||||
|
if (details.url.match(/^https?:\/\/(www.)*reddit.com\/poll/)){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
return {redirectUrl: oldReddit + details.url.match(/^https?:\/\/[^\/]+([\S\s]*)/)[1]}
|
return {redirectUrl: oldReddit + details.url.match(/^https?:\/\/[^\/]+([\S\s]*)/)[1]}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue