Skip to content

Instantly share code, notes, and snippets.

@omkelderman
Last active December 9, 2016 08:51
Show Gist options
  • Save omkelderman/e04b09cfa7763f5eb2d872b3f6617685 to your computer and use it in GitHub Desktop.
Save omkelderman/e04b09cfa7763f5eb2d872b3f6617685 to your computer and use it in GitHub Desktop.
osu! user-id resolver
// ==UserScript==
// @name osu! user-id resolver
// @namespace https://github.com/omkelderman/
// @version 1.0
// @description Display the user-id on the profile page
// @author Olle Kelderman
// @match https://osu.ppy.sh/u/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var style = {
color: '#c7c7c7',
fontStyle: 'italic'
};
console.log(userId);
$(document).ready(function() {
$('.profile-username').after($('<a>').text(userId).attr('href', 'https://osu.ppy.sh/u/' + userId).css(style));
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment