Last active
December 9, 2016 08:51
-
-
Save omkelderman/e04b09cfa7763f5eb2d872b3f6617685 to your computer and use it in GitHub Desktop.
osu! user-id resolver
This file contains 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 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