Last active
June 8, 2021 02:57
-
-
Save devxan/d32e5aeff1980f72f425ecc54a4bbfa9 to your computer and use it in GitHub Desktop.
Originally from https://github.com/Hans5958/userscripts/blob/master/Scratch/Shorter%20Scratch%20Stats%20Links.user.js. Made better by me. Now with working (hopefully? It doesn't seem too. Userscript developers, please help!) update link and a better name! Make sure to follow me on Scratch if you like it: https://scratch.mit.edu/users/-Xanimation-/
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 Quick links to Scratcher's statistics | |
// @namespace https://scratch.mit.edu/users/-Xanimation- | |
// @version 5.1 | |
// @description Quick links on profiles to ScratchStats.com and Hans5958's Scratch Stats for that specific user. | |
// @author @devxan & @Hans5958 on github | |
// @license MIT | |
// @match https://scratch.mit.edu/users/* | |
// @grant none | |
// @updateURL https://gist.github.com/devxan/d32e5aeff1980f72f425ecc54a4bbfa9/raw/Scratch-Stats-Link.user.js | |
// ==/UserScript== | |
var u = $("h2").html(), t1 = $("span.location"), t2 = t1[0] | |
t1.addClass("group") | |
t1.css("display", "inline") | |
t2.outerHTML = `<br />${t2.outerHTML}<a class="group" href="https://scratchstats.com/${u}" target="_blank">Simple Stats</a><a href="https://hans5958.github.io/mini-htmls/scratch-stats#${u}" target="_blank">Advanced Stats</a>` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment