Greasy Fork

Greasy Fork is available in English.

Scratch Stats Links

Quick links on profiles to ScratchStats.com and my Scratch Stats.

当前为 2022-05-08 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Scratch Stats Links
// @namespace    Hans5958
// @version      1
// @description  Quick links on profiles to ScratchStats.com and my Scratch Stats.
// @author       Hans5958
// @license      MIT
// @match        https://scratch.mit.edu/users/*
// @grant        none
// @homepageURL  https://github.com/Hans5958/userscripts
// @supportURL   https://github.com/Hans5958/userscripts/issues
// ==/UserScript==

var css = ".header-text .profile-details .group{border-right:1px solid #ccc;margin:0 5px;padding:0}"
if("undefined"!=typeof GM_addStyle)GM_addStyle(css);else if("undefined"!=typeof PRO_addStyle)PRO_addStyle(css);else if("undefined"!=typeof addStyle)addStyle(css);else{var node=document.createElement("style");node.type="text/css",node.appendChild(document.createTextNode(css));var heads=document.getElementsByTagName("head");0<heads.length?heads[0].appendChild(node):document.documentElement.appendChild(node)}

var x = $(".profile-details")
var y = x.children()
var a = y[0].innerHTML.match(/\w+/g)[0]
var b = y[1].outerHTML
var c = y[2].innerHTML
var d = $("h2").html()
x.html(a + "<span class=\"group\"><\/span>Joined " + b + " ago<span class=\"group\"><\/span>" + c + "<br><a href=\"https:\/\/scratchstats.com#" + d + "\">ScratchStats.com<\/a><span class=\"group\"><\/span><a href=\"https:\/\/hans5958.github.io\/mini-htmls\/scratch-stats#" + d + "\">My Scratch Stats<\/a>")