Glowers Club

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

include:jukebox [2024/03/16 02:32]
jon created
include:jukebox [2024/03/16 02:46] (current)
jon
Line 3: Line 3:
 class GWMediaPlayer { class GWMediaPlayer {
     static JSON_VERSION = 8;     static JSON_VERSION = 8;
-    static JSON_ENDPOINT = 'https://web.archive.org/web/20240105181546/https://code.glowers.club/jon/glowers-radio/raw/branch/master/data/songs.json'+    static JSON_ENDPOINT = 'https://code.glowers.club/jon/glowers-radio/raw/branch/master/data/songs.json'
  
     static EDisplayType = ({     static EDisplayType = ({
Line 47: Line 47:
         let args = string.slice(slicePoint+3)         let args = string.slice(slicePoint+3)
         switch (protocol) {         switch (protocol) {
-            case "mxc":     return `https://web.archive.org/web/20240105181546/https://glowers.club/_matrix/media/r0/download/${args}` +            case "mxc":     return `https://glowers.club/_matrix/media/r0/download/${args}` 
-            case "x-gwm":   return `https://web.archive.org/web/20240105181546/https://glowers.club/wiki/lib/exe/fetch.php?media=${args.replace(/\//g, ":")}` +            case "x-gwm":   return `https://glowers.club/wiki/lib/exe/fetch.php?media=${args.replace(/\//g, ":")}` 
-            case "x-yt":    return `https://web.archive.org/web/20240105181546/https://youtu.be/${args}` +            case "x-yt":    return `https://youtu.be/${args}` 
-            case "x-nn":    return `https://web.archive.org/web/20240105181546/https://www.nicovideo.jp/watch/${args}` +            case "x-nn":    return `https://www.nicovideo.jp/watch/${args}` 
-            case "x-ia":    return `https://web.archive.org/web/20240105181546/https://archive.org/details/${args}` +            case "x-ia":    return `https://archive.org/details/${args}` 
-            case "x-bs":    return `https://web.archive.org/web/20240105181546/https://booru.soy/post/view/${args}` +            case "x-bs":    return `https://booru.soy/post/view/${args}` 
-            case "x-wp":    return `https://web.archive.org/web/20240105181546/https://wikipedia.org/wiki/${args}` +            case "x-wp":    return `https://wikipedia.org/wiki/${args}` 
-            case "x-wc":    return `https://web.archive.org/web/20240105181546/https://commons.wikimedia.org/wiki/${args}` +            case "x-wc":    return `https://commons.wikimedia.org/wiki/${args}` 
-            case "x-sz":    return `https://web.archive.org/web/20240105181546/https://www.shazam.com/track/${args}` +            case "x-sz":    return `https://www.shazam.com/track/${args}` 
-            case "x-tt":    { args = args.split("/"); return `https://web.archive.org/web/20240105181546/https://www.tiktok.com/@${args[0]}/video/${args[1]}`; }+            case "x-tt":    { args = args.split("/"); return `https://www.tiktok.com/@${args[0]}/video/${args[1]}`; }
             case "x-bc":    { args = args.split("/"); return `https://${args[0]}.bandcamp.com/track/${args[1]}`; }             case "x-bc":    { args = args.split("/"); return `https://${args[0]}.bandcamp.com/track/${args[1]}`; }
-            case "x-sc":    { args = args.split("/"); return `https://web.archive.org/web/20240105181546/https://soundcloud.com/${args[0]}/${args[1]}`; }+            case "x-sc":    { args = args.split("/"); return `https://soundcloud.com/${args[0]}/${args[1]}`; }
             case "x-am":    { args = args.split("/"); return args[1]             case "x-am":    { args = args.split("/"); return args[1]
-              ? `https://web.archive.org/web/20240105181546/https://music.apple.com/album/${args[1]}?i=${args[0]}` +              ? `https://music.apple.com/album/${args[1]}?i=${args[0]}` 
-              : `https://web.archive.org/web/20240105181546/https://music.apple.com/song/${args[0]}`; }+              : `https://music.apple.com/song/${args[0]}`; }
             case "https":   return string             case "https":   return string
             default:        throw new TypeError(`Invalid URI protocol of '${protocol}'!`)             default:        throw new TypeError(`Invalid URI protocol of '${protocol}'!`)