Furvilla - User Links

Adds some useful link icons in your user info area.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Furvilla - User Links
// @namespace   Shaun Dreclin
// @description Adds some useful link icons in your user info area.
// @include     /^https?://www\.furvilla\.com/.*$/
// @version     1.3
// @grant       none
// ==/UserScript==

if(document.querySelector(".user-info")) {
	var userLink = document.querySelector(".user-info h4 a").href;
	var userID = userLink.split("/").pop();
	
	document.querySelector(".user-info").innerHTML += '<div style="position: absolute; top: 185px; left: 47px;">' +
	'<a href="http://www.furvilla.com/stall/manage"><i class="fa fa-shopping-cart" style="padding: 5px;"></i></a>' +
	'<a href="http://www.furvilla.com/inventory/quickstock"><i class="fa fa-list" style="padding: 5px;"></i></a>' +
	'<a href="http://www.furvilla.com/menagerie/' + userID + '"><i class="fa fa-paw" style="padding: 5px;"></i></a>' +
	'<a href="http://www.furvilla.com/forums/posts/recent/' + userID + '"><i class="fa fa-reply-all" style="padding: 5px;"></i></a>' +
	'<a href="http://www.furvilla.com/forums/threads/recent/' + userID + '"><i class="fa fa-quote-left" style="padding: 5px;"></i></a>' +
	'</div>';
}