Created
September 2, 2023 09:05
-
-
Save frozenpandaman/8cd8e66757d3478f3aa3839a38ddaa1e to your computer and use it in GitHub Desktop.
Userscript for enabling in-browser usage of SplatNet 3. For use with s3s: https://github.com/frozenpandaman/s3s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name s3s Use SplatNet 3 in-browser | |
// @namespace https://github.com/frozenpandaman/s3s | |
// @version 0.1 | |
// @description Allows you to load the SplatNet 3 homepage in your browser. | |
// @author eli fessler (frozenpandaman) | |
// @match https://api.lp1.av5ja.srv.nintendo.net/ | |
// @match https://api.lp1.av5ja.srv.nintendo.net/?lang=* | |
// @icon https://splatoon.nintendo.com/favicons/apple-touch-icon.png | |
// @grant none | |
// ==/UserScript== | |
window.addEventListener('load', function() { | |
(() => { | |
let token = prompt("Enter your gtoken (from config.txt) here:"); | |
if (token == null || token.length != 926) { | |
alert("Invalid token - length should be 926 characters.\nRefresh the page and try again."); | |
} | |
window.requestGameWebToken = function () { | |
Promise.resolve().then(() => window.onGameWebTokenReceive?.call(null, token)); | |
}; | |
})(); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment