Jump to content
Toggle menu
  • 6 articles
  • 6 users
  • 196 edits
Adventure Builder 2 Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js

MediaWiki interface page
Revision as of 17:51, 27 August 2026 by Maintenance script (talk | contribs) (Load live Roblox profile pictures)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
$(function () {
	var userId = mw.config.get('abRobloxUserId');
	if (!userId) {
		return;
	}
	var $img = $('.profile-avatar-image');
	if (!$img.length) {
		return;
	}
	var fallback = $img.attr('src');
	$img.on('error', function () {
		$img.attr('src', fallback);
	});
	$img.attr(
		'src',
		'https://adventure-builder.net/api/roblox-proxy?service=profile-picture&userId=' +
			encodeURIComponent(userId)
	);
});