Battlelog Friend Requests Auto-Fold

Install the script in Google Chrome with Tampermonkey or in Firefox with Greasemonkey.
If you had a Battlelog tab open prior to installing the script then refresh the page to see the effects.
You can download the script over at

Battlelog Friends Requests Auto-Fold

// ==UserScript==
// @name           Battlelog Friend Requests Auto-Fold
// @namespace
// @version        0.1
// @description    Folds the friend requests list by default
// @include*
// ==/UserScript==

var div = document.getElementById("comcenter-friendrequests-separator");

if(div.className == "comcenter-separator showing-friendrequests") {
	var arrow = div.getElementsByClassName("dropdownicon")[0];;