File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,16 @@ function updateTrackerMessage(url) {
53
53
}
54
54
55
55
async function resolveTracker ( url ) {
56
+ //special case for out.reddit.com
57
+ const urlObj = new URL ( url ) ;
58
+ if ( urlObj . host === 'out.reddit.com' ) {
59
+ const newUrl = urlObj . searchParams . get ( 'url' ) ;
60
+ if ( newUrl ) updateTrackerMessage ( newUrl ) ;
61
+ else showError ( ) ;
62
+ }
63
+
56
64
url = url . replace ( / ( ^ \w + : | ^ ) \/ \/ / , '' ) ;
65
+
57
66
try {
58
67
const response = await fetch ( `https://unshorten.me/json/${ url } ` ) ;
59
68
const data = await response . json ( ) ;
Original file line number Diff line number Diff line change 287
287
" *://*.disq.us/url?url=*" ,
288
288
" *://rebrand.ly/*" ,
289
289
" *://rb.gy/*" ,
290
- " *://buff.ly/*"
290
+ " *://buff.ly/*" ,
291
+ " *://out.reddit.com/*"
291
292
],
292
293
"tracker_force_http" : [
293
294
" ow.ly" ,
You can’t perform that action at this time.
0 commit comments