From 2d09ffc296a9e2de770ca0a28112aec6e638d11d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 31 Oct 2020 11:50:18 -0300 Subject: instagram support and more credits --- upd8.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'upd8.js') diff --git a/upd8.js b/upd8.js index 3589e7db..d86cc022 100644 --- a/upd8.js +++ b/upd8.js @@ -2359,6 +2359,7 @@ function fancifyURL(url, {album = false} = {}) { url.includes('deviantart.com') ? 'DeviantArt' : url.includes('wikipedia.org') ? 'Wikipedia' : url.includes('poetryfoundation.org') ? 'Poetry Foundation' : + url.includes('instagram.com') ? 'Instagram' : new URL(url).hostname }`; } @@ -2374,6 +2375,7 @@ function iconifyURL(url) { url.includes('tumblr.com') ? ['tumblr', 'Tumblr'] : url.includes('twitter.com') ? ['twitter', 'Twitter'] : url.includes('deviantart.com') ? ['deviantart', 'DeviantArt'] : + url.includes('instagram.com') ? ['instagram', 'Instagram'] : ['globe', `External (${new URL(url).hostname})`] ); return fixWS`${msg}`; -- cgit 1.3.0-6-gf8a5