« get me outta code hell

instagram support and more credits - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2020-10-31 11:50:18 -0300
committer(quasar) nebula <towerofnix@gmail.com>2020-10-31 11:50:18 -0300
commit2d09ffc296a9e2de770ca0a28112aec6e638d11d (patch)
tree5ee2288661dfb43bd5bb1d47e1b13552a36f8afc /upd8.js
parent9e51f23a4786b523d3af4d6688b4c181f9aa273a (diff)
instagram support and more credits
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js2
1 files changed, 2 insertions, 0 deletions
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
     }</a>`;
 }
@@ -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`<a href="${url}" class="icon"><svg><title>${msg}</title><use href="${C.STATIC_DIRECTORY}/icons.svg#icon-${id}"></use></svg></a>`;